Foenix IDE

Description of your first forum.
User avatar
tomxp411
Posts: 6
Joined: Thu May 09, 2019 11:19 pm
Location: California, USA

Re: Foenix IDE

Post by tomxp411 » Mon May 13, 2019 8:59 pm

Thanks, Stef. I'll check it out tonight.
User avatar
techristian
Posts: 10
Joined: Mon Apr 15, 2019 1:39 am
Location: Windsor, Ontario
Contact:

Re: Foenix IDE

Post by techristian » Mon May 13, 2019 9:42 pm

Just curious. Does this system locate files the same as Commodore. In other words, the first 2 (or in the case of 16 bit the first 4 bytes are the DESTINATION ADDRESS of the file ?) In other words is the --cbm-prg flag necessary ? Totally relocatable in 65816 , but in 6502 mode ?
64tass -T -a may2019foenix.asm -L aaassem.txt --cbm-prg
Dan
User avatar
tomxp411
Posts: 6
Joined: Thu May 09, 2019 11:19 pm
Location: California, USA

Re: Foenix IDE

Post by tomxp411 » Mon May 13, 2019 11:37 pm

Actually, the 65816 has a 24 bit address bus, so it only uses 3 bytes for addressing. But the complicated part is that the CPU uses a banked address scheme, so simply specifying a 24-bit start address is inefficient, as multi-bank programs will have wasted space.

I wrote the emulator to consume HEX files, which look like this:

Start Code (: character)
Length (2 bytes)
Address (2 bytes)
Record Type (0=data, 1=end of file, 2=segment)
Data (n bytes)
Checksum (1 byte)

Normally, this is encoded in ASCII, with two hexadecimal digits per byte. But you could also encode that as binary data. If the file is prefixed with something that's not usable by the simple PRG loader (ie: the first two bytes are something like $FF FF C2 56), then the kernel would know to read record data, rather than simple binary data.
User avatar
techristian
Posts: 10
Joined: Mon Apr 15, 2019 1:39 am
Location: Windsor, Ontario
Contact:

Re: Foenix IDE

Post by techristian » Tue May 14, 2019 3:25 pm

I like working in pure Machine Language. Is there any advantage using a custom IDE over 64TASS when programming in ML ?

Dan
User avatar
stef
Posts: 44
Joined: Thu Jan 01, 1970 12:00 am
Location: Somewhere in the Universe
Contact:

Re: Foenix IDE

Post by stef » Tue May 14, 2019 5:03 pm

techristian wrote:
Tue May 14, 2019 3:25 pm
I like working in pure Machine Language. Is there any advantage using a custom IDE over 64TASS when programming in ML ?

Dan
Dan,

64Tass is the compiler, FoenixIDE is the emulator and debugger.

You need to compile your in 64Tass before you can use it in FoenixIDE.
Mistress of All Villainy
User avatar
techristian
Posts: 10
Joined: Mon Apr 15, 2019 1:39 am
Location: Windsor, Ontario
Contact:

Re: Foenix IDE

Post by techristian » Wed May 15, 2019 3:24 pm

Thanks for the clarification. I have used MPLAB X IDE before to program PIC chips...and come to think of it, yes it does test my code.
Dan
Post Reply