I am reading the documentation here but not sure to understand completely how to use them.
Could be something like the following? I.e. for calling ALL_SEG:
- Get mapper support routine address:
set A = 0, D = 4, E = 2. With this I suppose the memory mapper device for extended BIOS has assigned number 4, and 2 is the function to get the support routine address.
CALL EXTBIO. EXTBIO is FFCAh.
HL = mapper support routine address
mapper_routines = HL. Save value.
- Calling ALL_SEG:
all_seg = mapper_routines + 0h. Looking at table definition: +0H ALL_SEG Allocate a 16k segment.
For user segment:
set A = 0, B = 0. On primary mapper, the easy way ;)
CALL (all_seg)
Check result values, in this case the carry and A register.
Is this OK or am I doing it wrong?
Thanks.
