2019-06-11 05:13:46 +10:00
|
|
|
; 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.
|
|
|
|
;
|
2019-10-31 07:59:35 +11:00
|
|
|
; How it works is simple. From its designated RAMSTART, it calls PutB until it
|
2019-06-11 05:13:46 +10:00
|
|
|
; 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 ***
|
2019-10-31 07:59:35 +11:00
|
|
|
; sdcPutB
|
|
|
|
; sdcGetB
|
2019-06-11 05:13:46 +10:00
|
|
|
; printstr
|
|
|
|
; printHexPair
|
|
|
|
;
|
|
|
|
; *** Includes ***
|
|
|
|
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "user.h"
|
2019-06-11 05:13:46 +10:00
|
|
|
.equ SDCT_RAMSTART USER_RAMSTART
|
|
|
|
|
|
|
|
jp sdctMain
|
|
|
|
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "sdct/main.asm"
|
2019-11-16 02:33:13 +11:00
|
|
|
USER_RAMSTART:
|