ret\r
\r
?init:\r
- ld hl,0100000000000000b ; assign console to ASCI1:\r
+ ld hl,1000000000000000b ; assign console to AVRCON:\r
ld (@civec),hl\r
ld (@covec),hl\r
ld hl,0000000000000000b ; assign printer to nothing:\r
ld (@aovec),hl\r
\r
\r
- ld c,2\r
- call gs_rtc ; get time and date\r
call intinit ; setup interrupts and vectors\r
call prt0ini ; init timer\r
ei\r
+ ld c,2\r
+ call gs_rtc ; get time and date\r
\r
xor a\r
ld (@cbnk),a ; right now in bank 0\r
db 13,10,13,10,'CP/M Version 3.0, Z180-Stamp BIOS',13,10,0\r
\r
call pr.inln\r
- db 'CPU clock [Hz]: ',0\r
+ db 'Estimated CPU clock [Hz]: ',0\r
\r
ld hl,(f_cpu)\r
ld de,(f_cpu+2)\r
rl$1:\r
ld a,2\r
call ?bnksl ; select extra bank\r
- ld a,(hl)\r
- push af ; get a byte\r
+ ld a,(hl) ; get a byte\r
+ ex af,af'\r
ld a,tpa$bank\r
call ?bnksl ; select TPA\r
- pop af\r
+ ex af,af'\r
ld (hl),a ; save the byte\r
- inc hl\r
- dec bc ; bump pointer, drop count\r
- ld a,b\r
- or c ; test for done\r
- jp nz,rl$1\r
+ cpi ; bump pointer, drop count\r
+ jp pe,rl$1\r
ret\r
\r
\r