From 55cea9c4d6de27c9f775411cff147fc88b2689e0 Mon Sep 17 00:00:00 2001 From: Stephen Toth Date: Wed, 27 Jun 2018 13:22:20 -0400 Subject: [PATCH] added Word.asm added wordcpy cleaned up Byte.asm renamed jobBuild to Build --- .gitlab-ci.yml | 2 +- includes/Byte.asm | 3 --- includes/Word.asm | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 includes/Word.asm 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