Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DUART   EQU $00C001
  2. IPR EQU $1A
  3. OPR_SET EQU $1C
  4. OPR_CLR EQU $1E
  5. SRA EQU 2
  6. RBA EQU 6
  7.  
  8.     ORG $8000
  9. WIRE681 MOVEA.L #DUART,A0
  10.  
  11. LOOP    MOVE.B  SRA(A0),D7
  12.     ANDI.B  #1,D7
  13.     BEQ LOOP
  14.  
  15.     MOVE.B  RBA(A0),D0
  16.     CMP.B   #113,D0
  17.     BEQ EXIT
  18.     BSR OUT681
  19.     BRA LOOP
  20.  
  21. OUT681  MOVE.B  D0,OPR_CLR(A0)
  22.     NOT.B   D0
  23.     MOVE.B  D0,OPR_SET(A0)
  24.     RTS
  25. EXIT    TRAP    #14
  26.     END WIRE681
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement