X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/00573fd53c3dc0b2aca146f085d30801a3aed576..fe3dc8909a6c72ce4208cb5b8b64bc6b2f8cebd6:/diag.asm diff --git a/diag.asm b/diag.asm index 8d6aec8..e3afaa4 100644 --- a/diag.asm +++ b/diag.asm @@ -1,3 +1,6 @@ + section "end",HOME[1024] + nop + SECTION "a",HOME[$00] start: jp main @@ -13,11 +16,9 @@ start: jp main main: ld a, $FF - ld [$FF51],a + ld c, $51 + ld [c], a -; ld a, $04 -; ld [$FFFF], a - ld sp, $DFF0 ld a, $04 ;start timer, 4.096KHz @@ -50,11 +51,13 @@ signon: vbl: lcdc: PUSH AF + PUSH BC xor a ld c, $0F ld [c], a + POP BC POP AF reti @@ -76,10 +79,8 @@ tmro: ld a, $41 ; print A call putc .noprint: - ld hl, $DF81 + inc [hl] ld a, [hl] - add 1 - ld [hl], a ld c, $51 ld [c], a @@ -340,3 +341,4 @@ puts: ret z call putc jr puts +