Download super-extended-basic..
Transcript
SUPER EXTENDED BASIC UNRAVELLED II APPENDIX G SUPER EXTENDED BASIC ROM ROUTINES ORIGIN:SPECTRAL ASSOC REVISED:12/26/1999 WALTER K ZYDHEK EXIT CONDITIONS INIT0 and the video control registers are modified. All CPU registers, except CC are preserved. PRGMMU = [E006] Program the MMU registers with their RAM images. ENTRY CONDITIONS None EXIT CONDITIONS The MMU registers are modifed. All CPU registers, except CC are preserved. GETTEXT = [E008] Place block 6.6 into the RAM image of the Task Register 0 MMU register which controls logical block 1. Then copy the RAM image of the MMU registers to the MMU registers. Finally, replace block 6.6 (as saved above) with block 7.1 in the RAM image of the MMU registers. This is a very special purpose routine used by Basic to replace the hi-res text screen into the logical address space so that they may be modified. ENTRY CONDITIONS None EXIT CONDIIIONS The RAM image of MMU register one of task register 0 and the MMU registers are modified. All CPU registers, except CC, are preserved. GETBLOK0 = [E00A] Place a block into the RAM image of Task Register 0 MMU register which controls logical block 0. Then copy the RAM image of the MMU registers to the MMU registers. Finally, replace the block (as saved above) with block 7.0 in the RAM image of the MMU registers. This is a very special purpose routine used by Basic to place any block into the logical address space so that it may be modified. ENTRY CONDITIONS B contains the block (0-$3F) to be loaded. EXIT CONDITIONS The RAM image of the MMU register 0 of task register 0 and the MMU registers are modifed. Akk CPU registers, except CC, are preserved. GETTASK0 = [E00C] Restore task register 0 as the active task register. ENTRY CONDITIONS G2