initctc: ld a,3eh ;set mode 3, channel 0 out (0f3h),a ;used for motor time out ld a,0FFh ;set to maximum delay out (0f0h),a ld a,0FFH out (0f0h),a ld a,7eh ;set mode 3, channel 1 out (0f3h),a ;set to 9600 baud ld a,0D0h ;this is Console port out (0f1h),a ld a,00h out (0f1h),a ld a,0beh ;set mode 3, channel 2 out (0f3h),a ;set to 1200 baud ld a,082h ;this is printer port out (0f2h),a ld a,06h out (0f2h),a ; channel two set to 1200 baud ret