Post #2564124
2026-04-25 13:08 UTC
@Retrograde@oldbytes.space Now when we're at it, my biggest problem with 65816 is the difficulty in making a disassembler for it due to the dependency on a processor flag state to determine the length of instructions.
Replies (1)
-
@Retrograde@oldbytes.space 2026-04-25 13:34
@bjonte@oldbytes.space I understand it gives good flexibility to jump in and out of 8/16 bits modes as needed, while maintaining tight code density. But it *is* pretty annoying, also when writing code. Either you need to defensively set modes in code, or carefully document (and adhere to) assumptions for each routine. And constantly having to give the assembler cues as well, as it cannot be trusted (nor expected, really) to keep track of what's going on. And while the states can be pushed and popped at runtime in the CPU, ca65, which I use, can only set the states to explicit values. Other assemblers may be better in this respect...