1985-02-07 22:06:32 +00:00
|
|
|
.define .outch1,.outch2,.inch1,.inch2
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
! a0,d0 used
|
1985-02-07 22:06:32 +00:00
|
|
|
! character in d1
|
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
.inch1:
|
|
|
|
move.l #acia1,a0
|
|
|
|
bra .inch
|
|
|
|
.inch2:
|
|
|
|
move.l #acia2,a0
|
|
|
|
.inch:
|
|
|
|
move.b (a0),d1
|
|
|
|
asr #1,d1
|
|
|
|
bcc .inch
|
|
|
|
move.b 2(a0),d1
|
|
|
|
and #0x7f,d1
|
|
|
|
rts
|
|
|
|
|
|
|
|
.outch1:
|
|
|
|
move.l #acia1,a0
|
|
|
|
bra .outch
|
|
|
|
.outch2:
|
|
|
|
move.l #acia2,a0
|
|
|
|
.outch:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.b (a0),d0
|
|
|
|
asr #2,d0
|
1985-02-07 22:06:32 +00:00
|
|
|
bcc .outch
|
|
|
|
move.b d1,2(a0)
|
|
|
|
rts
|
|
|
|
|
|
|
|
.align 2
|