Also, your program starts at $0400, if you start it at $0408, you'll execute wackiness starting in the middle of the code. Specifically:voidstar wrote: ↑Tue Aug 08, 2023 5:03 pm Yep, I forgot that line at the top, forgot we're back in 1980 again
Ok, I put " *=$0400" at the top. Now it passes validation. Yeehaw!
Also beware when you generate code, if the file already exists it might not overwrite it - not sure if a way to force overwrite. But I missed that warning and was running old PRG by accident (I had to manually delete it first).
BUT.. then I tried SYS $0408 and I'm not sure if the program is running correctly (not seeing values written back to $B000 like I expected). Will try again later, gotta drive for a bit [ tried $2000 instead, same issue - maybe instead of treating it as a PRG to LOAD we gotta treat is a .BIN and load it via the monitor? ]
ora ($b0,x)
nop
jsr $fecc
Note that this neatly bypasses all your writes to $B000.