mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-08 13:48:06 +11:00
92a04f4627
Needed if we want to compile the kernel and zasm from within a SD card. I didn't go straight for 32-bit because it was significantly more complex and 24-bit give us 16M. Enough to go on for a while...
35 lines
903 B
C
35 lines
903 B
C
.equ USER_CODE 0xa000
|
|
.equ USER_RAMSTART USER_CODE+0x1800
|
|
.equ FS_HANDLE_SIZE 6
|
|
.equ BLOCKDEV_SIZE 8
|
|
|
|
; *** JUMP TABLE ***
|
|
.equ strncmp 0x03
|
|
.equ addDE 0x06
|
|
.equ addHL 0x09
|
|
.equ upcase 0x0c
|
|
.equ unsetZ 0x0f
|
|
.equ intoDE 0x12
|
|
.equ intoHL 0x15
|
|
.equ writeHLinDE 0x18
|
|
.equ findchar 0x1b
|
|
.equ parseHex 0x1e
|
|
.equ parseHexPair 0x21
|
|
.equ blkSel 0x24
|
|
.equ blkSet 0x27
|
|
.equ fsFindFN 0x2a
|
|
.equ fsOpen 0x2d
|
|
.equ fsGetC 0x30
|
|
.equ cpHLDE 0x33
|
|
|
|
.equ parseArgs 0x3b
|
|
.equ printstr 0x3e
|
|
.equ _blkGetC 0x41
|
|
.equ _blkPutC 0x44
|
|
.equ _blkSeek 0x47
|
|
.equ _blkTell 0x4a
|
|
.equ printHexPair 0x4d
|
|
.equ sdcGetC 0x50
|
|
.equ sdcPutC 0x53
|
|
.equ blkGetC 0x56
|