Mirror of CollapseOS
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

28 Zeilen
675B

  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. ; blkGetB
  12. ;
  13. ; *** Includes ***
  14. .inc "user.h"
  15. .inc "err.h"
  16. .equ AT28W_RAMSTART USER_RAMSTART
  17. jp at28wMain
  18. .inc "core.asm"
  19. .inc "lib/util.asm"
  20. .inc "lib/parse.asm"
  21. .inc "lib/args.asm"
  22. .inc "at28w/main.asm"
  23. USER_RAMSTART: