2019-06-15 04:15:30 +10:00
|
|
|
; at28w - Write to AT28 EEPROM
|
|
|
|
;
|
|
|
|
; Write data from the active block device into an eeprom device geared as
|
|
|
|
; regular memory. Implements write polling to know when the next byte can be
|
|
|
|
; written and verifies that data is written properly.
|
|
|
|
;
|
|
|
|
; Optionally receives a word argument that specifies the number or bytes to
|
|
|
|
; write. If unspecified, will write until max bytes (0x2000) is reached or EOF
|
|
|
|
; is reached on the block device.
|
|
|
|
|
|
|
|
; *** Requirements ***
|
2019-10-31 07:59:35 +11:00
|
|
|
; blkGetB
|
2019-06-15 04:15:30 +10:00
|
|
|
; parseArgs
|
|
|
|
;
|
|
|
|
; *** Includes ***
|
|
|
|
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "user.h"
|
|
|
|
.inc "err.h"
|
2019-06-15 04:15:30 +10:00
|
|
|
.equ AT28W_RAMSTART USER_RAMSTART
|
|
|
|
|
|
|
|
jp at28wMain
|
|
|
|
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "at28w/main.asm"
|
2019-11-16 02:33:13 +11:00
|
|
|
USER_RAMSTART:
|