54 lines
482 B
NASM
54 lines
482 B
NASM
RAM equ 0000h
|
|
EEPROM equ 0014h
|
|
org RAM
|
|
RAMSTART equ *
|
|
bcc prdone ; this generates incorrect offset for the branch
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
rmdone:
|
|
; org EEPROM
|
|
EESTART equ *
|
|
bcc prdone ; this generates correct offset for the branch
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
;prdone:
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
inx
|
|
prdone:
|
|
ldab 01h
|
|
cmpb 01h
|
|
beq prdone
|
|
|
|
|
|
|
|
|
|
|
|
|