This pull request extends the mapper support routines with four new routines:
CALLRAM: call a routine in another slot and segment, pass parameters in registers
READRAM: read a byte from an address in a slot+segment combination
CALLRAM2: call a routine in another slot and segment, pass parameters in stack
WRITERAM: write a byte to an address in a slot+segment combination
The first three are compatible with the UNAPI RAM Helper, including the extended BIOS based detection mechanism.
WARNING: BREAKING CHANGE
The entry points for these routines go right after GET_P3 in the jump table for the mapper support routines. In previous versions this area contained entry points for ALL_BK and FR_BK, which were routines for simple "malloc" style block allocation. There two routines have been removed from Nextor, but their source file (source/kernel/bank4/bkalloc.mac) has been left in place so that it can be examined and reused in application programs if necessary.
This pull request extends the mapper support routines with four new routines:
CALLRAM
: call a routine in another slot and segment, pass parameters in registersREADRAM
: read a byte from an address in a slot+segment combinationCALLRAM2
: call a routine in another slot and segment, pass parameters in stackWRITERAM
: write a byte to an address in a slot+segment combinationThe first three are compatible with the UNAPI RAM Helper, including the extended BIOS based detection mechanism.
WARNING: BREAKING CHANGE
The entry points for these routines go right after
GET_P3
in the jump table for the mapper support routines. In previous versions this area contained entry points forALL_BK
andFR_BK
, which were routines for simple "malloc" style block allocation. There two routines have been removed from Nextor, but their source file (source/kernel/bank4/bkalloc.mac
) has been left in place so that it can be examined and reused in application programs if necessary.