Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
691B

  1. ; sdct
  2. ;
  3. ; We want to test reading and writing random data in random sequences of
  4. ; sectors. Collapse OS doesn't have a random number generator, so we'll simply
  5. ; rely on initial SRAM value, which tend is random enough for our purpose.
  6. ;
  7. ; How it works is simple. From its designated RAMSTART, it calls PutB until it
  8. ; reaches the end of RAM (0xffff). Then, it starts over and this time it reads
  9. ; every byte and compares.
  10. ;
  11. ; If there's an error, prints out where.
  12. ;
  13. ; *** Requirements ***
  14. ; sdcPutB
  15. ; sdcGetB
  16. ; printstr
  17. ; stdioPutC
  18. ;
  19. ; *** Includes ***
  20. .inc "user.h"
  21. .equ SDCT_RAMSTART USER_RAMSTART
  22. jp sdctMain
  23. .inc "lib/ari.asm"
  24. .inc "lib/fmt.asm"
  25. .inc "sdct/main.asm"
  26. USER_RAMSTART: