mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-17 07:58:10 +11:00
cdd0b64570
Instead of expecting a `USER_CODE` symbol to be set, we expect `.org` to be set in all userspace glue code. This gives us more flexibility with regards to how we manage that. Moreover, instead of making `USER_RAMSTART` mandatory, we make it default to the end of the binary, which is adequate in a majority of cases. Will be useful for my upcoming mega-commit... :)
25 lines
610 B
NASM
25 lines
610 B
NASM
; 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 ***
|
|
; blkGetB
|
|
; parseArgs
|
|
;
|
|
; *** Includes ***
|
|
|
|
.inc "user.h"
|
|
.inc "err.h"
|
|
.equ AT28W_RAMSTART USER_RAMSTART
|
|
|
|
jp at28wMain
|
|
|
|
.inc "at28w/main.asm"
|
|
USER_RAMSTART:
|