Which program can you use to convert float into 5 bytes for ASM?
Re: Which program can you use to convert float into 5 bytes for ASM?
Is there a way to write an assembler macro that takes a float constant and a name and emits "name .byte $00 $00 $00 $00 $00" where "name" is the name specified and the bytes are the float constant?
Re: Which program can you use to convert float into 5 bytes for ASM?
Or even better, bake into one of the 6502 assembler a datatype called ".float" into which you put a float constant and it emits 5 bytes?
-
- Posts: 17
- Joined: Tue Mar 12, 2024 3:12 am
Re: Which program can you use to convert float into 5 bytes for ASM?
Mine has .df that does just that.
Re: Which program can you use to convert float into 5 bytes for ASM?
Which assembler is yours? Sounds like it might become mine too....
-
- Posts: 17
- Joined: Tue Mar 12, 2024 3:12 am
Re: Which program can you use to convert float into 5 bytes for ASM?
It’s my own project, github.com/PaulForgey/xasm
It’s very picky about petscii source, so be sure you are either natively on the system (I developed it on hardware) or converting your source files.
It’s very picky about petscii source, so be sure you are either natively on the system (I developed it on hardware) or converting your source files.