Mirror of CollapseOS
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
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: