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.

25 lines
622B

  1. ; at28w - Write to AT28 EEPROM
  2. ;
  3. ; Write data from the active block device into an eeprom device geared as
  4. ; regular memory. Implements write polling to know when the next byte can be
  5. ; written and verifies that data is written properly.
  6. ;
  7. ; Optionally receives a word argument that specifies the number or bytes to
  8. ; write. If unspecified, will write until max bytes (0x2000) is reached or EOF
  9. ; is reached on the block device.
  10. ; *** Requirements ***
  11. ; blkGetC
  12. ; parseArgs
  13. ;
  14. ; *** Includes ***
  15. #include "user.h"
  16. #include "err.h"
  17. .org USER_CODE
  18. .equ AT28W_RAMSTART USER_RAMSTART
  19. jp at28wMain
  20. #include "at28w/main.asm"