#Assembly sections (set starting address for instructions)

1 messages · Page 1 of 1 (latest)

calm plinth
#

Hello there, I asked around and apparently this is not a feature, yet.

Some older CPUs expect specific interrupt handlers to be at very specific addresses. In order to have instructions at these handler addresses, you can set the address at which the following instructions will live in memory by defining a section.

In the example screenshot from tetris: The GameBoy VBlank interrupt always jumps to 0x40. The section ensures that the jump to the VBlank interrupt handler will always be at address 0x40, for example.

I have not yet found a way to make this happen with the ISA, however, the documentation also is incomplete as of now

snow umbra
#

Yes please! The architecture I'm working on emulating also has specific addresses, where code execution starts at 0x200, and memory below that is generally populated with some sprites and likely the stack.