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
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 [c], a
+ ld a, $41
+ call putc
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