cdd0b64570
Instead of expecting a `USER_CODE` symbol to be set, we expect `.org` to be set in all userspace glue code. This gives us more flexibility with regards to how we manage that. Moreover, instead of making `USER_RAMSTART` mandatory, we make it default to the end of the binary, which is adequate in a majority of cases. Will be useful for my upcoming mega-commit... :)
23 lines
599 B
C
23 lines
599 B
C
.org 0x4800 ; in sync with USER_CODE in glue.asm
|
|
.equ USER_RAMSTART 0x6000
|
|
.equ FS_HANDLE_SIZE 8
|
|
.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 _blkGetB @+3
|
|
.equ _blkPutB @+3
|
|
.equ _blkSeek @+3
|
|
.equ _blkTell @+3
|
|
.equ printstr @+3
|