]> cloudbase.mooo.com Git - z180-stamp-cpm3.git/blobdiff - cbios/boot.180
baudrate configurable
[z180-stamp-cpm3.git] / cbios / boot.180
index 0e36bcda38fe61bcde10d0d9858ccfbd7c936f9c..fe11486838fb6ca5501f9870d970acc272228255 100644 (file)
@@ -4,8 +4,10 @@
 \r
        public  hwinit,?init,?ldccp,?rlccp\r
 \r
+       public  f_cpu\r
+\r
        extrn   ?boot,?pmsg,?conin\r
-       extrn   ioini1l,msginit,mmuinit,intinit\r
+       extrn   ioini1l,msginit,mmuinit,intinit,cpu_frq\r
        extrn   @civec,@covec,@aivec,@aovec,@lovec\r
        extrn   @cbnk,?bnksl\r
 \r
@@ -39,6 +41,9 @@ hwinit:
 hwini_skip:\r
        call    mmuinit         ; setup mmu registers\r
        call    msginit\r
+       call    cpu_frq\r
+       ld      (f_cpu),de\r
+       ld      (f_cpu+2),hl\r
        ret\r
 \r
 ?init:\r
@@ -165,6 +170,7 @@ ccp$fcb:db  1,'CCP     ','COM',0,0,0,0
 fcb$nr:        db      0,0,0\r
 \r
 \r
+       dseg\r
 hwini_tab:\r
        db      (hwini0_e-$)/2  ;count\r
        db      rcr,CREFSH      ;configure DRAM refresh\r
@@ -175,5 +181,7 @@ hwini_tab:
 hwini0_e:\r
        db      0               ;stop mark\r
 \r
+       cseg\r
+f_cpu  dw      0,0             ;detected CPU clock frequency [Hz]\r
 \r
        end\r