Rev 1149 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
macro asmgetchar
ld a,(de)
;or 0x20
endm
macro asmnextchar
inc de
endm
;╨┐╨╛╨┤╨┤╨╡╤А╨╢╨░╤В╤М ╨╛╤В╨║╤А╤Г╤З╨╕╨▓╨░╨╜╨╕╨╡ ╨╜╨░ 2 ╨▒╨░╨╣╤В╨░ ╨╜╨░╨╖╨░╨┤ (╤З╤В╨╛╨▒╤Л ╨┐╤А╨╛╨▓╨╡╤А╨╕╤В╤М ╨║╨╛╨╜╨╡╤Ж ╤Б╨╗╨╛╨▓╨░ ╨┐╨╛╤Б╨╗╨╡ rp, ╨╕ ╨╡╤Б╨╗╨╕ ╨╜╨╡ ╨║╨╛╨╜╨╡╤Ж, ╤В╨╛ ╨┐╤А╨╛╨▓╨╡╤А╤П╤В╤М ╨╝╨╡╤В╨║╤Г). ╨Х╤Б╨╗╨╕ ╨╝╤Л ╨╜╨╡ ╨▓ ╨╜╨░╤З╨░╨╗╨╡ ╨▒╤Г╤Д╨╡╤А╨░, ╤В╨╛ ╤В╤А╨╕╨▓╨╕╨░╨╗╤М╨╜╨╛. ╨Р ╨▓ ╨╜╨░╤З╨░╨╗╨╡ ╨╛╤Б╤В╨░╨▓╨╕╤В╤М ╨║╨╛╨┐╨╕╤О ╨║╨╛╨╜╤Ж╨░ ╨┐╤А╨╛╤И╨╗╨╛╨│╨╛ ╨▒╤Г╤Д╨╡╤А╨░
macro asmbackchar
dec de
ld a,(de)
endm
macro asmback2chars
dec de
dec de
ld a,(de)
endm
macro asmputbyte_a
ld (hl),a
inc hl
endm
macro asmputbyte_c
ld (hl),c
inc hl
endm
macro asmputbyte_b
ld (hl),b
inc hl
endm
macro asmputbyte data
ld (hl),data
inc hl
endm
macro asmputbyteOK data
;Z
ld (hl),data
inc hl ;for true asm (to know command size)
;Z
endm
;size optimization for debugger:
macro ASMNEXTCHAR_LAST
;asmnextchar ;for true asm
endm
macro ASMGETCHAR_LAST
;asmgetchar ;for true asm
endm
macro ASMCMD_MATCHENDWORD
;jp matchendword_back1 ;for true asm
ret ;for debugger
endm