?? pmstruct.s
字號:
; block copy src from FLASH
;
; this routine cannot use R18/R19 w/o saving them because the compiler
; will not save them
; asgncblk
; size in R16/R17
; stack:
; dst
; src
.area text
asgncblk::
st -Y,R26
st -Y,R27
st -Y,R30
st -Y,R31
st -Y,R0
ldd R26,y+5+2 ; X dst
ldd R27,y+5+3
ldd R30,y+5+0 ; Z src
ldd R31,y+5+1
loop:
cpi R16,0
cpc R16,R17
breq done
notdone:
lpm
st X+,R0
adiw R30,1
subi R16,1
sbci R17,0
rjmp loop
done:
ld R0,Y+
ld R31,Y+
ld R30,Y+
ld R27,Y+
ld R26,Y+
adiw R28,4 ; deallocate argument
ret
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -