mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-07 08:48:45 +10:00
Most of register fiddling routines (which is now the only thing contained in care.asm) are used by almost all userspace apps, often in inner loops. That makes the penalty of using jump tables for those a bit too high. Moreover, it burdens jump tables needlessly. Because this unit is very small (now that string routines are out), it makes sense to always include it in binaries.
29 lines
703 B
C
29 lines
703 B
C
.equ USER_CODE 0x8700
|
|
.equ USER_RAMSTART USER_CODE+0x1900
|
|
.equ FS_HANDLE_SIZE 6
|
|
.equ BLOCKDEV_SIZE 8
|
|
|
|
; *** JUMP TABLE ***
|
|
.equ strncmp 0x03
|
|
.equ upcase @+3
|
|
.equ findchar @+3
|
|
.equ parseHex @+3
|
|
.equ parseHexPair @+3
|
|
.equ blkSel @+3
|
|
.equ blkSet @+3
|
|
.equ fsFindFN @+3
|
|
.equ fsOpen @+3
|
|
.equ fsGetB @+3
|
|
.equ parseArgs @+3
|
|
.equ printstr @+3
|
|
.equ _blkGetB @+3
|
|
.equ _blkPutB @+3
|
|
.equ _blkSeek @+3
|
|
.equ _blkTell @+3
|
|
.equ printHexPair @+3
|
|
; now at 0x36
|
|
|
|
.equ sdcGetB 0x3b
|
|
.equ sdcPutB @+3
|
|
.equ blkGetB @+3
|