X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp-cpm3.git/blobdiff_plain/573b9c257400ca4c610eff4e48b12cc347ee5f25..7c72cfe363cdc89093e62ddcd47fc2e1df98e5cf:/cbios/boot.180?ds=sidebyside diff --git a/cbios/boot.180 b/cbios/boot.180 index 7e8c063..8e41728 100644 --- a/cbios/boot.180 +++ b/cbios/boot.180 @@ -3,7 +3,7 @@ public hwinit,?init,?ldccp,?rlccp - + public signon public f_cpu extrn boot,?conin @@ -13,8 +13,9 @@ extrn @civec,@covec,@aivec,@aovec,@lovec extrn @cbnk,?move,?xmove - include config.inc - include z180reg.inc + maclib z180reg.inc + maclib config.inc + maclib version.inc ccpsize equ 0c80h @@ -53,11 +54,12 @@ hwini_skip: call cpu_frq ld (f_cpu),hl ld (f_cpu+2),de + call intinit ; setup interrupts and vectors ret ?init: ; ld hl,1000000000000000b ; assign console to AVRCON: - ld hl,0100000000000000b ; assign console to ASCI0: + ld hl,0010000000000000b ; assign console to ASCI1: ld (@civec),hl ld (@covec),hl ld hl,0000000000000000b ; assign printer to nothing: @@ -67,7 +69,6 @@ hwini_skip: ld (@aovec),hl - call intinit ; setup interrupts and vectors call prt0ini ; init timer ei ld c,2 @@ -77,9 +78,10 @@ hwini_skip: ld (@cbnk),a ; right now in bank 0 call pr.inln ; print signon message - db 13,10,13,10,'CP/M Version 3.0, Z180-Stamp BIOS',13,10,0 - - call pr.inln +signon: + db 13,10,13,10,'CP/M Version 3.0, Z180-Stamp BIOS v' + defvers + db 13,10 db 'Estimated CPU clock [Hz]: ',0 ld hl,(f_cpu) @@ -154,7 +156,7 @@ hwini_tab: db dcntl,CWAITIO ;wait states db ccr,M_NCD ;No Clock Divide db cmr,PHI_X2 ;X2 Clock Multiplier -;TODO: db omr, ;Operation Mode Control Register + db omcr,~M_IOC ;Operation Mode Control Register hwini0_e: db 0 ;stop mark