diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c39947a..0ebc82d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,6 @@ before_script: - make install - popd -jobBuild: +Build: stage: build script: ./build diff --git a/includes/Byte.asm b/includes/Byte.asm index 51f45db..d5f3347 100644 --- a/includes/Byte.asm +++ b/includes/Byte.asm @@ -20,9 +20,6 @@ bytecmp: ;; Inputs: ;; HL: Byte pointer ;; 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: push de push hl diff --git a/includes/Word.asm b/includes/Word.asm new file mode 100644 index 0000000..1d9b796 --- /dev/null +++ b/includes/Word.asm @@ -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