X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/298e8085b4f8f70121204fa4aed3a188034f6879..refs/heads/master:/fpgaboot.asm diff --git a/fpgaboot.asm b/fpgaboot.asm index 0a714b1..dfb4ec9 100644 --- a/fpgaboot.asm +++ b/fpgaboot.asm @@ -98,20 +98,26 @@ bootcmd: .data: call getc ; byte count ld c, a -.dl: call getc +.dl: dec c + jr z, .done + call getc ld [$FF63], A - dec c - jp nz, .dl - ld A, $44 ;D - ret + jr .dl +.done: ld A, $44 ;D + jr putc + .prog: - ld hl, $FF80 - ld c, $7F + ld hl, $D800 + ld c, $00 .pl: dec c - jp z, $FF80 + jp z, .progboot call getc ld [hli], a jr .pl +.progboot: + ld a, $50 ;P + call putc + jp $D800 SECTION "a", HOME[$100] nop ; Make sure we don't overflow.