1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-30 06:28:06 +11:00
collapseos/apps/at28w/glue.asm
Virgil Dupras 817636242a Add at28w app and recipe
This allows us to write to an AT28 EEPROM from within collapse os.
2019-06-14 14:15:30 -04:00

25 lines
622 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 ***
; blkGetC
; parseArgs
;
; *** Includes ***
#include "user.h"
#include "err.h"
.org USER_CODE
.equ AT28W_RAMSTART USER_RAMSTART
jp at28wMain
#include "at28w/main.asm"