ld c, $51 ; Note that we are alive.
ld a, $FF
ld [c],a
-
+
ld sp, $DFFF
ld hl, signon
call puts
ld c, $07
- ld a, $07 ;start timer, 4.096KHz
+ ld a, $04 ;start timer, 4.096KHz
ld [c], a
ld c, $51
ld a, $00
ld [c],a
+ ld e, a
+
.loop1:
push bc
call testa
ret z
xor a
ld [c], a
- ld hl, $D000
- ld c, [hl]
- inc bc
- ld [hl], c
- ld a, c
- ld c, $50
+ ld a, $41
+ call putc
+ ld a, 1
+ add e
+ ld c, $51
ld [c], a
+ ld e, a
ret
; Core instruction basic acceptance tests.
putc:
ld b, 0
ld c, $50
+ push af
.waitport:
ld a,[c]
cp b
jr nz,.waitport
+ pop af
ld [c],a
ret
ld a, [hli]
ld b, $00
cp b
- ret z
+ jr z, .done
call putc
jr puts
+.done:
+ ret