03-14-2010, 06:53 PM
This has already been requested by LCD, I think. But there are two things to keep in mind:
As far as I know, no compiler does that currently. The closest approach is the INTERRUPT subroutine in Borland Turbo Pascal, as far as I can remember.
Since creating an IM2 routine does not imply the whole routine should go in a memory zone (a single JP in that memory zone should be OK), this could be left to the compiler.
Anyway, a Memory Map Report (as LCD suggested) would be nice. You can later create a routine at empty places with ASM + ORG XXX. The best way to do this could be a DIM AT @XXXXX array of bytes, with the bytes containing the machine code, at the moment, I guess.
- This applies mostly to Speccy, not to a generic machine architecture.
- This is very low level (not high level, like BASIC).
As far as I know, no compiler does that currently. The closest approach is the INTERRUPT subroutine in Borland Turbo Pascal, as far as I can remember.
Since creating an IM2 routine does not imply the whole routine should go in a memory zone (a single JP in that memory zone should be OK), this could be left to the compiler.
Anyway, a Memory Map Report (as LCD suggested) would be nice. You can later create a routine at empty places with ASM + ORG XXX. The best way to do this could be a DIM AT @XXXXX array of bytes, with the bytes containing the machine code, at the moment, I guess.