summaryrefslogtreecommitdiff
path: root/home/copy2.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-04-10 14:42:14 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-04-10 14:42:14 -0400
commitbf73772a560ddfdf0b404ba3f85eb26542031b7b (patch)
treeee3cbc2fb2be1b2353ebd4c9887de2d69a91d2f2 /home/copy2.asm
parent46ead9b8498fe7191735bd99f667dd1f9147f969 (diff)
Local labels starting with capital letters are now decorated with a trailing colon; remove trailing whitespace; globally correct line endings to UNIX style
Diffstat (limited to 'home/copy2.asm')
-rw-r--r--home/copy2.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/home/copy2.asm b/home/copy2.asm
index 538be572f..23e1eca7f 100644
--- a/home/copy2.asm
+++ b/home/copy2.asm
@@ -3,11 +3,11 @@ CopyBytes:: ; 0x3026
inc b ; we bail the moment b hits 0, so include the last run
inc c ; same thing; include last byte
jr .HandleLoop
-.CopyByte
+.CopyByte:
ld a, [hli]
ld [de], a
inc de
-.HandleLoop
+.HandleLoop:
dec c
jr nz, .CopyByte
dec b
@@ -16,7 +16,7 @@ CopyBytes:: ; 0x3026
SwapBytes:: ; 0x3034
; swap bc bytes between hl and de
-.Loop
+.Loop:
; stash [hl] away on the stack
ld a, [hl]
push af
@@ -42,9 +42,9 @@ ByteFill:: ; 0x3041
inc b ; we bail the moment b hits 0, so include the last run
inc c ; same thing; include last byte
jr .HandleLoop
-.PutByte
+.PutByte:
ld [hli], a
-.HandleLoop
+.HandleLoop:
dec c
jr nz, .PutByte
dec b