xa65 cross assembler - ROM binaries?

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
philpem
Posts: 16
Joined: 10 Dec 2002
Location: West Yorkshire, UK
Contact:

xa65 cross assembler - ROM binaries?

Post by philpem »

Hi,
Has anyone managed to get Andre Fachat's "XA65" assembler to produce a binary file?
I'm trying to write an OS loader for my 6502 computer project. The catch is, I can't see how to get xa65 to produce a raw binary file as output. ATM it seems to be producing C64 PRG files.

Thanks.
Phil.
Phil "Philpem" Pemberton
http://www.philpem.me.uk/
schidester
Posts: 57
Joined: 04 Sep 2002
Location: Iowa

Post by schidester »

I'm not 100% certain of this, but I believe that the C64's PRG format simply allows for the start address of the program to be specified in the first two bytes (this is the address where the program is to be loaded in memory, not necessarily the start vector for the program). Following these two bytes is a raw binary image of the program, suitable for EPROM programming or whatever. If you can't figure out how to get the assembler to do a raw binary, simply strip these two bytes off the front of your program in a hex editor.
swiety
Posts: 10
Joined: 04 Jun 2003
Location: Poland
Contact:

Post by swiety »

Look at http://www.atariarea.histeria.pl/x-asm/
It's good atari xl assembler for DOS , but ca generate binary files good as rom , and can fill area between 2 orgs !
I use it to assembly my rom files
Post Reply