X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/f4d5b4febbffab80cb06bd18564d4c326756fad7..69988dc1f60ce27d2192eb2aa579962f585fffc8:/z180/r3init.180?ds=sidebyside diff --git a/z180/r3init.180 b/z180/r3init.180 index 83bdbe5..7ba9a0c 100644 --- a/z180/r3init.180 +++ b/z180/r3init.180 @@ -52,7 +52,6 @@ nullbyte: dw 0-romend ;count (64k) dmct_e: - INIWAITS defl CWAITIO if ROMSYS INIWAITS defl INIWAITS+CWAITROM @@ -270,7 +269,7 @@ wstart: call prt0_init - call bufferinit +;;; call bufferinit call $coninit @@ -295,10 +294,6 @@ wstart: ;---------------------------------------------------------------------- ; - extrn msginit,msg.sout,msg_fifo - extrn tx.buf,rx.buf - - ;TODO: Make a ringbuffer module. global buf.init @@ -311,6 +306,12 @@ buf.init: ;---------------------------------------------------------------------- +.comment * + + extrn msginit,msg.sout,msg_fifo + extrn tx.buf,rx.buf + + bufferinit: call msginit @@ -354,7 +355,9 @@ bufdat: db 0 dw 0 db 0 -inimsg_e +inimsg_e: + + * ; ;---------------------------------------------------------------------- @@ -390,6 +393,7 @@ ivt_i1: djnz ivt_i1 ret +;---------------------------------------------------------------------- prt0_init: ld a,i @@ -413,6 +417,7 @@ prt0itab: db M_TIE0+M_TDE0 ;enable timer 0 interrupt and down count. prt0it_e: + ; ;---------------------------------------------------------------------- ; @@ -519,6 +524,8 @@ checkcrc_alv: pop hl ;041e ret ;041f +;---------------------------------------------------------------------- + ; ; alloc ; @@ -704,7 +711,7 @@ bnk2phys: ; ; OP: ahl = (a<<12) + (d<<8) + e ; -;out ehl: Phys. (linear) Address +;out ahl: Phys. (linear) Address log2phys: @@ -787,6 +794,7 @@ jphl: ; --------------------------------------------------------- + iprt0: push af push hl