\r
\r
global ser.init\r
- global ser.instat,ser.in\r
- global ser.out\r
+ global ser.ist,ser.in\r
+ global ser.ost,ser.out\r
\r
;TODO: define a trampoline area somewhere in top ram. \r
rtxisvjmp equ 0FF60h ;momentan frei...\r
; ei\r
ret ;\r
\r
-ser.instat:\r
+ser.ist:\r
push ix\r
ld ix,ser1.inbuf ;\r
\r
ret ; 9\r
; 153 \r
\r
-ser.outstat:\r
+ser.ost:\r
push ix\r
ld ix,ser1.outbuf ;\r
buf.full:\r
push bc\r
push ix\r
pop hl\r
+ ld a,c\r
ld c,(ix+o.in_idx) ;\r
ld b,0\r
add hl,bc\r