1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-20 19:28:06 +11:00
collapseos/apps/sdct/glue.asm
Virgil Dupras cdd0b64570 Modify userspace .org and RAMSTART expectations
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... :)
2019-11-15 10:33:13 -05:00

28 lines
656 B
NASM

; sdct
;
; We want to test reading and writing random data in random sequences of
; sectors. Collapse OS doesn't have a random number generator, so we'll simply
; rely on initial SRAM value, which tend is random enough for our purpose.
;
; How it works is simple. From its designated RAMSTART, it calls PutB until it
; reaches the end of RAM (0xffff). Then, it starts over and this time it reads
; every byte and compares.
;
; If there's an error, prints out where.
;
; *** Requirements ***
; sdcPutB
; sdcGetB
; printstr
; printHexPair
;
; *** Includes ***
.inc "user.h"
.equ SDCT_RAMSTART USER_RAMSTART
jp sdctMain
.inc "sdct/main.asm"
USER_RAMSTART: