eepstr.s
来自「cxstm8 编译器」· S 代码 · 共 26 行
S
26 行
; WRITE A STRUCTURE IN EEPROM
; Copyright (c) 2008 by COSMIC Software
; - eeprom address in X
; - structure address in Y
; - structure size in A
;
xdef c_eewstr
xref.b c_x
include "eeprom.i"
.dcall "2,0,c_eewstr"
;
c_eewstr:
ld c_x,a ; copy count
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
dec c_x
jrne bcl ; loop if more bytes
ret ; return
;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?