?? eepstrl.s
字號:
; WRITE A LARGE STRUCTURE IN EEPROM
; Copyright (c) 2008 by COSMIC Software
; - eeprom address in X extension
; - structure address in Y
; - structure size in X
;
xdef c_eewstrl
xref.b c_x, c_y
include "eeprom.i"
.dcall "2,0,c_eewstrl"
;
c_eewstrl:
addw x,c_x ; end address
ldw c_y,x ; in memory
ldw x,c_x ; eeprom address
bcl:
ld a,(y) ; get byte
ld (x),a ; and store in latch
wait:
btjt IAPSR,#EOP,wait ; wait for completion
incw y ; next byte
incw x ; next byte
cpw x,c_y
jrne bcl ; loop if more bytes
ret ; return
;
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -