Search found 55 matches

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

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: 20363

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: 20363

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: 20363

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: 20363

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 ...
by christian
Wed Apr 12, 2017 8:53 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 20363

Re: xa and o65 format (and CC65)

In co65 source file o65.h is /* The mode word as generated by the ld65 linker */ #define O65_MODE_CC65 (O65_CPU_6502 | \ O65_RELOC_BYTE | \ O65_SIZE_16BIT | \ O65_FTYPE_EXE | \ O65_ADDR_SIMPLE | \ O65_ALIGN_1) which is 0x0800 (in fact the value of O65_ADDR_SIMPLE as all flags are 0x0000) xa defines ...
by christian
Wed Apr 12, 2017 2:36 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 20363

Re: xa and o65 format (and CC65)

Hello, So you want to convert a file from o65 to xo65 and use it with cc65/cl65, right? Maybe you can try with co65 which can do some conversion, but you have to modify the byte at offset 7 from $10 to $08 in the object file created by xa for co65 to recognize the file (it's the mode type) co65 crea...
by christian
Tue Aug 02, 2016 1:26 pm
Forum: 6502 assembly coding
Topic: Invert Carry
Replies: 14
Views: 9952

Re: Invert Carry

Hi, maybe something like this: CMP #$A4 ; (2 cycles) ROL ; Put C in b0 of ACC (2 cycles) EOR #$01 ; Invert b0 (2 cycles) ROR ; Put b0 in C (2 cycles) ROR $2F ; ROR C to $2F (2 cycles) Total 10 cycles Only Carry inverted, and ACC not modified (if i'm right)
by christian
Tue Jul 14, 2015 3:09 pm
Forum: Emulators
Topic: Oricutron: BUG with .tap files
Replies: 3
Views: 5098

Oricutron: BUG with .tap files

Hi Xeron, I think i've found 2 bugs in oricutron both located in tape.c file: First bug: in function tape_load_tap // TAP else if (memcmp(oric->tapebuf, "\x16\x16\x16", 3) == 0) { oric->rawtape = SDL_FALSE; // I give up trying to do anything clever. // Just allow an extra byte for broken tape images...
by christian
Tue Jun 23, 2015 9:53 pm
Forum: Operating systems
Topic: Jasmin ROM
Replies: 8
Views: 18199

Re: Jasmin ROM

I think the last version is FT-DOS 3.2, first versions were called T-DOS without the F (for Fast), at least T-DOS 2.26
by christian
Tue Apr 07, 2015 2:23 am
Forum: Emulators
Topic: Disk conversion - with XP
Replies: 37
Views: 22536

Re: Disk conversion - with XP

I'm not sure it depends on Sedoric's version because if I format a single sided Sedoric v3 disk with 17 sectors and 21 tracks, the second bitmap at T20 S03 is filled with $00, but 16 sectors and 24 tracks single sided fill the second bitmap with last available sector number and so on. My assumption ...
by christian
Tue Apr 07, 2015 12:07 am
Forum: Emulators
Topic: Disk conversion - with XP
Replies: 37
Views: 22536

Re: Disk conversion - with XP

I answer to my own question: Track #20 Sector #03 can be filled with $00 if the disk is single sided, so I must modify OricFS accordingly. I finally succeeded in formatting a Sedoric Disk with Euphoric, Oricutron can't format Sedoric disks which is a bit strange because it can format FT-Dos disks......
by christian
Mon Apr 06, 2015 10:55 pm
Forum: Emulators
Topic: Disk conversion - with XP
Replies: 37
Views: 22536

Re: Disk conversion - with XP

What I did: tap2dsk welcome.tap test.dsk old2mfm test.dsk oricutron -d disks/sedoric3.dsk (then insert test.dsk in drive B) Oricutron can read the dsk and can save a file on it OricFS can read the dsk but can't add file, so I think there is something else. The reason why OricFs can't add a file is t...
by christian
Mon Apr 06, 2015 8:35 pm
Forum: Emulators
Topic: Disk conversion - with XP
Replies: 37
Views: 22536

Re: Disk conversion - with XP

I found 2 different versions of tap2dsk, one in http://miniserve.defence-force.org/svn/ ... n/tap2dsk/ and one in http://miniserve.defence-force.org/svn/ ... c/tap2dsk/
I think the one in odsk directory is the last, right?
by christian
Mon Apr 06, 2015 8:26 pm
Forum: Emulators
Topic: Disk conversion - with XP
Replies: 37
Views: 22536

Re: Disk conversion - with XP

Until now, I can't raise the same error.
I will test with a disk created by tap2dsk and see if it's ok or not