ack/mach/m68k4/libem/aciaio.s

37 lines
422 B
ArmAsm
Raw Normal View History

1985-02-07 22:06:32 +00:00
.define .outch1,.outch2,.inch1,.inch2
.sect .text
.sect .rom
.sect .data
.sect .bss
1985-02-07 22:06:32 +00:00
! a0,d0 used
1985-02-07 22:06:32 +00:00
! character in d1
.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:
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