Search found 50 matches

by christian
Sat Apr 22, 2017 9:21 pm
Forum: Operating systems
Topic: FT-DOS disk size
Replies: 2
Views: 1186

Re: FT-DOS disk size

Hi,

The usable size is 256 bytes * 17 sectors * 41 Tracks * 2 sides = 356 864 bytes.

But, a MFM_DISK image use 256 bytes for the header and 6400 bytes per track instead of 17*256 = 4352.
256 + 6400 * 41 *2 = 525 056 bytes or about 513Ko
by christian
Sat Apr 15, 2017 9:56 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 1695

Re: XA: * manipulations

For those interested, here is the final code for this macro (header). Its purpose is to create a header for a Forth's word ; __lfa need to be defined BEFORE the first use of the macro for 2 reasons: ; 1) Fisrt LFA must be 0 ; 2) If not defined, all LFA point to the its own NFA ; __lfa=0 #define head...
by christian
Sat Apr 15, 2017 5:54 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 1695

Re: XA: * manipulations

@Dbug: Yes it works :D #define pstring(s) .( : -_start=* : .byte _len,s : len=* - _start -1 : .) pstring("TEST") pstring("TEST2") pstring("TEST33") Result ----------\/-------------\/-----------------\/ 00000000 04 54 45 53 54 05 54 45 53 54 32 06 54 45 53 54 |.TEST.TEST2.TEST| 00000010 33 33 |33| Th...
by christian
Sat Apr 15, 2017 5:40 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 1695

Re: XA: * manipulations

@iss: yes, it's the idea I've already tried something like your macro but it's not really working: #define pstring(s) -_start=* : .byte _len,s : -_end=* : -_len=_end - _start -1 pstring("TEST") pstring("TEST2") pstring("TEST33") The result is ----------\/-------------\/-----------------\/ 00000000 0...
by christian
Fri Apr 14, 2017 6:35 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 1695

XA: * manipulations

I'm trying to translate some macros from CA65 to XA. One of them takes a string as parameter and puts the length of this string followed by the string: pstring "TEST" is expanded: .byte 4,$54,$45,$53,$54 To do so, I write this XA macro: #define pstring(s) -_start=* : .byte 0,s : -_end=* : -_len=_end...
by christian
Thu Apr 13, 2017 7:40 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

Thanks :)
by christian
Thu Apr 13, 2017 6:38 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

Yes this is the only function of this option.

As your version handles correctly ':' in comments without the '-M', I think you can remove it or lets it for compatibility only but as a "do nothing function"
by christian
Thu Apr 13, 2017 5:31 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

I'm doing some tests with your latest version (v2.2.5) Silly program: ; ; a: AUTOEXEC: 0 / 4 ; t: Nom du programme ; #define TAPE_HEADER(a,t) .db $16, $16, $16, $16, $24, $ff, $ff, $80, a, >end, <end, >start, <start, $09, t, $00 #define TAPE_HEADER_BUG(t,a) .db $16, $16, $16, $16, $24, $ff, $ff, $80...
by christian
Thu Apr 13, 2017 3:48 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

Good idea!

- The last revision is 2.3.7 dated Dec 2014 on http://www.floodgap.com/retrotech/xa/ (no more evolution)
- André put all versions up to v2.3.6 at https://github.com/fachat/xa65 as backup

I will switch to your version and make a package for my Linux distribution.
by christian
Thu Apr 13, 2017 3:06 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

Ok, thanks for clarifying.
Yes, the '.bin' command seems to be the only difference
by christian
Thu Apr 13, 2017 2:38 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

I've just realized I'm not using the same version of XA, mine is v2.3.7... :o
by christian
Thu Apr 13, 2017 2:34 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

For example, sometimes I need to have strings with last byte having the most significant bit set, or preceded by the length of the string. I can create 2 macros like: .macro string80 arg ; Place la chaine avec le bit7 du dernier caratère à 1 .repeat .strlen(arg)-1, I .byte .strat(arg,I) .endrepeat ....
by christian
Thu Apr 13, 2017 1:34 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

The '-cc' option is probably the best and easiest solution but it should be noticed this does not guarantee that dbase = tbase + tlen and bbase = dbase + dlen as required by the simple address format (I don't know the impact) I don't know why Jede need to mix XA and CC65. @Dbug: I'm used to use XA a...
by christian
Thu Apr 13, 2017 11:39 am
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

We can also fork co65, modify 1 line and we get a new tool for xa
by christian
Thu Apr 13, 2017 11:21 am
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 2812

Re: xa and o65 format (and CC65)

It will not work, in co65 source code (co65/convert.c) /* For now, we do only accept o65 files generated by the ld65 linker which ** have a specific format. */ if (!Debug && D->Header.mode != O65_MODE_CC65) { Error ("Cannot convert o65 files of this type"); } So Header.mode must be 0x0800 Xa may be ...