First implementation, blinks quite a lot due to lcd being disable while updating the automaton

This commit is contained in:
2018-12-26 12:29:48 +01:00
commit ab9debb0b3
3 changed files with 506 additions and 0 deletions

26
Code/utils.inc Normal file
View File

@@ -0,0 +1,26 @@
SECTION "Utils", ROM0
MemCopy: MACRO
ld hl, \1
ld de, \2
ld bc, \3
.memcpyloop\@
ld a, [de]
ld [hl+], a
inc de
dec bc
ld a, b
or c
jr nz, .memcpyloop\@
ENDM
StringCopy: MACRO
ld hl, \1
ld de, \2
.strcpyloop\@
ld a, [de]
ld [hl+], a
inc de
and a
jr nz, .strcpyloop\@
ENDM