added Word.asm
added wordcpy cleaned up Byte.asm renamed jobBuild to Build
This commit is contained in:
parent
fa6bcd37da
commit
55cea9c4d6
|
|
@ -10,6 +10,6 @@ before_script:
|
||||||
- make install
|
- make install
|
||||||
- popd
|
- popd
|
||||||
|
|
||||||
jobBuild:
|
Build:
|
||||||
stage: build
|
stage: build
|
||||||
script: ./build
|
script: ./build
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@ bytecmp:
|
||||||
;; Inputs:
|
;; Inputs:
|
||||||
;; HL: Byte pointer
|
;; HL: Byte pointer
|
||||||
;; DE: Destination
|
;; DE: Destination
|
||||||
;; Notes:
|
|
||||||
;; This will trample into undefined territory if you try to copy a string into some
|
|
||||||
;; allocated memory it won't fit in.
|
|
||||||
bytecpy:
|
bytecpy:
|
||||||
push de
|
push de
|
||||||
push hl
|
push hl
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
;; wordcpy [Words]
|
||||||
|
;; Copies a word.
|
||||||
|
;; Inputs:
|
||||||
|
;; HL: word pointer
|
||||||
|
;; DE: Destination
|
||||||
|
wordcpy:
|
||||||
|
push de
|
||||||
|
push hl
|
||||||
|
ex de, hl
|
||||||
|
ld a, (de)
|
||||||
|
ld (hl), a
|
||||||
|
inc de
|
||||||
|
inc hl
|
||||||
|
ld a, (de)
|
||||||
|
ld (hl), a
|
||||||
|
pop hl
|
||||||
|
pop de
|
||||||
|
ret
|
||||||
Loading…
Reference in New Issue