; H8/536 ROM disassembly
; input: ROM\M27C512@DIP28_1.BIN
; bytes: 65536
; vector mode: min
; analysis: recursive trace from vectors
;
; Notes from the manual:
; - H8/536 uses the H8/500 CPU instruction set.
; - In minimum mode the reset vector at H'0000-H'0001 is a 16-bit PC.
; - The register field is H'FE80-H'FFFF; names below come from appendix B.
; - @aa:8 short absolute operands use BR as the upper address byte.
; - SCI baud inference uses section 14.2.8 BRR formulas when SMR/BRR are known.
; - LCD inference treats E-clock H'F200/H'F201 accesses as status/control and data candidates.
; - Pass --clock-hz to convert SCI BRR settings into numeric baud rates.
; - Cycle counts use Appendix A tables A-7/A-8 for on-chip access with no external wait states.

; Memory Map
; H'0000-H'009F exception_vectors  vectors
; H'00A0-H'00FF dtc_vectors        dtc_vectors
; H'0100-H'F67F program_or_external program
; H'F680-H'FE7F on_chip_ram        ram
; H'FE80-H'FFFF register_field     registers

; Vectors
; H'0000 reset                    -> vec_reset_1000 (H'1000)
; H'0004 invalid_instruction      -> vec_reset_1000 (H'1000)
; H'0006 zero_divide              -> vec_reset_1000 (H'1000)
; H'0008 trap_vs                  -> vec_reset_1000 (H'1000)
; H'0010 address_error            -> vec_reset_1000 (H'1000)
; H'0012 trace                    -> vec_reset_1000 (H'1000)
; H'0016 nmi                      -> vec_nmi_4393 (H'4393)
; H'0020 trapa_0                  -> vec_reset_1000 (H'1000)
; H'0022 trapa_1                  -> vec_reset_1000 (H'1000)
; H'0024 trapa_2                  -> vec_reset_1000 (H'1000)
; H'0026 trapa_3                  -> vec_reset_1000 (H'1000)
; H'0028 trapa_4                  -> vec_reset_1000 (H'1000)
; H'002A trapa_5                  -> vec_reset_1000 (H'1000)
; H'002C trapa_6                  -> vec_reset_1000 (H'1000)
; H'002E trapa_7                  -> vec_reset_1000 (H'1000)
; H'0030 trapa_8                  -> vec_reset_1000 (H'1000)
; H'0032 trapa_9                  -> vec_reset_1000 (H'1000)
; H'0034 trapa_a                  -> vec_reset_1000 (H'1000)
; H'0036 trapa_b                  -> vec_reset_1000 (H'1000)
; H'0038 trapa_c                  -> vec_reset_1000 (H'1000)
; H'003A trapa_d                  -> vec_reset_1000 (H'1000)
; H'003C trapa_e                  -> vec_reset_1000 (H'1000)
; H'003E trapa_f                  -> vec_reset_1000 (H'1000)
; H'0040 irq0                     -> vec_reset_1000 (H'1000)
; H'0042 interval_timer           -> vec_interval_timer_BFC4 (H'BFC4)
; H'0048 irq1                     -> vec_reset_1000 (H'1000)
; H'0050 irq2                     -> vec_reset_1000 (H'1000)
; H'0052 irq3                     -> vec_irq3_3C30 (H'3C30)
; H'0058 irq4                     -> vec_irq4_3AC7 (H'3AC7)
; H'005A irq5                     -> vec_reset_1000 (H'1000)
; H'0062 frt1_ocia                -> vec_frt1_ocia_BEEA (H'BEEA)
; H'006A frt2_ocia                -> vec_frt2_ocia_BF23 (H'BF23)
; H'0080 sci1_eri                 -> vec_sci1_eri_BB57 (H'BB57)
; H'0082 sci1_rxi                 -> vec_sci1_rxi_BB67 (H'BB67)
; H'0084 sci1_txi                 -> vec_sci1_txi_BA84 (H'BA84)
; H'0090 ad_adi                   -> vec_ad_adi_3D99 (H'3D99)

; Unreached Data Candidates
; string H'2A52   len=11  '78785=5=5=,'
; string H'2BBA   len=7   '8*8B8Z8'
; string H'41B2   len=32  '01020304050607080910111213141516'
; string H'582A   len=6   'Z  [  '
; string H'5B55   len=10  '0123456789'
; string H'5B60   len=40  ' 0 1 2 3 4 5 6 7 8 910111213141516171819'
; string H'60F6   len=16  '0123456789ABCDEF'
; string H'630C   len=9   'm*mDm^mxm'
; string H'633E   len=6   'vpwhx6'
; string H'63D7   len=10  'OPERATION '
; string H'63F5   len=10  '  PAINT   '
; string H'6410   len=16  '            ADV~'
; string H'6443   len=10  'OPERATION '
; string H'6461   len=10  'IRIS/M.BLK'
; string H'6490   len=10  'OPERATION '
; string H'64AE   len=10  '   LOCK   '
; string H'652F   len=19  ' DYNA LATITUDE  Xe/'
; string H'6551   len=18  'HIGH       LOW~XeP'
; string H'6578   len=18  'STD        OFF~Xew'
; string H'65C9   len=18  '   BLACK STR    Xe'
; string H'6644   len=19  '   BLACK STR    XfD'
; string H'6665   len=19  ' STRETCH LEVEL  Xfe'
; string H'6683   len=18  'POINT1    POINT2Xf'
; string H'6706   len=18  '   BLACK STR    Xg'
; string H'6727   len=19  " COMPRESS LEVEL Xg'"
; string H'6745   len=19  'POINT1    POINT2XgE'
; string H'67E0   len=18  '      TLCS      Xg'
; string H'6802   len=17  'ON         OFF~Xh'
; string H'681F   len=18  ' AGC  GAIN  AE  Xh'
; string H'686A   len=136 '                         CL F16 F11 F8  F5.6F4  F2.8F2  F1.8F1.4 OP     DPR     HYP HIGHMID LOW 36dB30dB24dB18dB12dB 9dB 6dB 3dB 0dB-3dB'
; string H'693B   len=19  '   AUTO FUNC    Xi;'
; string H'695C   len=19  '      ATW       Xi\\'
; string H'6984   len=17  'ON         OFF~Xi'
; string H'6A4F   len=19  '   AUTO FUNC    XjO'
; string H'6A71   len=18  'STD     SPOT.L~Xjp'
; string H'6A8E   len=18  '  A.IRIS MODE   Xj'
; string H'6AAD   len=17  'AI      BACK.L~Xj'
; string H'6B3D   len=19  '   AUTO FUNC    Xk='
; string H'6B5E   len=19  '   AUTO FOCUS   Xk^'
; string H'6B86   len=17  'ON         OFF~Xk'
; ptrtbl H'1A1E   count=4   -> H'F6F8, H'FAFC, H'FDFE, H'FF00
; ptrtbl H'1EB0   count=4   -> H'F730, H'F727, H'2815, H'F731
; ptrtbl H'28A8   count=6   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'28B6   count=10  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'28DC   count=8   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'28F2   count=29  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'292E   count=6   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'293C   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2944   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'294C   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2954   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'295C   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2964   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'296C   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2974   count=3   -> H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2982   count=18  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'29AE   count=4   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'29B8   count=6   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'29DC   count=8   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'29FA   count=13  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'2A20   count=8   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2A34   count=15  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'2A62   count=24  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'2A98   count=4   -> H'2CA6, H'2CA6, H'2CA6, H'2CA6
; ptrtbl H'2AA2   count=18  -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'2AC8   count=115 -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'2BC4   count=113 -> H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6, H'2CA6 ...
; ptrtbl H'31FE   count=5   -> H'A11B, H'A11B, H'A11B, H'A11B, H'A110
; ptrtbl H'33A0   count=3   -> H'FF26, H'11A9, H'F726
; ptrtbl H'3478   count=3   -> H'F790, H'F727, H'441D
; ptrtbl H'35DC   count=3   -> H'FE27, H'1215, H'F717
; ptrtbl H'4698   count=3   -> H'F750, H'1627, H'10FB
; ptrtbl H'47AE   count=3   -> H'F752, H'1627, H'10FB
; ptrtbl H'48AA   count=4   -> H'FB03, H'F726, H'1215, H'F6D1
; ptrtbl H'62EE   count=4   -> H'FCE2, H'FC62, H'FA84, H'11DC
; ptrtbl H'74FC   count=3   -> H'F772, H'1627, H'12A8
; ptrtbl H'80F2   count=3   -> H'FC80, H'FC84, H'11DC
; ptrtbl H'953C   count=4   -> H'A11B, H'A11B, H'A11B, H'A11B
; ptrtbl H'B5E0   count=3   -> H'F772, H'1627, H'11A0
; ptrtbl H'B7CC   count=3   -> H'F772, H'1627, H'11A0

; Symbols
; mem_1011         H'1011 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_10FB         H'10FB program_or_external memory   r=0 w=0 width=unknown xrefs=2
; mem_1161         H'1161 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1170         H'1170 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1179         H'1179 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1188         H'1188 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1197         H'1197 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_11A0         H'11A0 program_or_external memory   r=0 w=0 width=unknown xrefs=2
; mem_11A9         H'11A9 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_11DC         H'11DC program_or_external memory   r=0 w=0 width=unknown xrefs=2
; mem_1206         H'1206 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1215         H'1215 program_or_external memory   r=0 w=0 width=unknown xrefs=3
; mem_12A8         H'12A8 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1314         H'1314 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1617         H'1617 program_or_external memory   r=0 w=0 width=unknown xrefs=2
; mem_1627         H'1627 program_or_external memory   r=0 w=0 width=unknown xrefs=5
; mem_1630         H'1630 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1647         H'1647 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1664         H'1664 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1682         H'1682 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1700         H'1700 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1819         H'1819 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_1A00         H'1A00 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_2815         H'2815 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_2CA6         H'2CA6 program_or_external memory   r=0 w=0 width=unknown xrefs=429
; mem_441D         H'441D program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_449C         H'449C program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_449E         H'449E program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_44A0         H'44A0 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_602E         H'602E program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_6030         H'6030 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_6032         H'6032 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_A110         H'A110 program_or_external memory   r=0 w=0 width=unknown xrefs=1
; mem_A11B         H'A11B program_or_external memory   r=0 w=0 width=unknown xrefs=8
; mem_E000         H'E000 program_or_external memory   r=0 w=1 width=word
; mem_E004         H'E004 program_or_external memory   r=1 w=0 width=word
; mem_E006         H'E006 program_or_external memory   r=0 w=1 width=word
; mem_E046         H'E046 program_or_external memory   r=0 w=1 width=word
; mem_E080         H'E080 program_or_external memory   r=0 w=1 width=word
; mem_E102         H'E102 program_or_external memory   r=2 w=0 width=word
; mem_E124         H'E124 program_or_external memory   r=2 w=0 width=word
; mem_E126         H'E126 program_or_external memory   r=5 w=0 width=word
; mem_E14E         H'E14E program_or_external memory   r=1 w=0 width=word
; mem_E16E         H'E16E program_or_external memory   r=1 w=0 width=word
; mem_E172         H'E172 program_or_external memory   r=3 w=0 width=word
; mem_E1EC         H'E1EC program_or_external memory   r=2 w=0 width=word
; mem_E220         H'E220 program_or_external memory   r=2 w=0 width=word
; mem_E800         H'E800 program_or_external memory   r=0 w=1 width=word
; mem_E806         H'E806 program_or_external memory   r=0 w=1 width=word
; mem_E880         H'E880 program_or_external memory   r=0 w=1 width=word
; mem_E902         H'E902 program_or_external memory   r=0 w=1 width=word
; mem_E924         H'E924 program_or_external memory   r=0 w=1 width=word
; mem_E9EC         H'E9EC program_or_external memory   r=0 w=1 width=word
; mem_F000         H'F000 program_or_external memory   r=2 w=0 width=byte
; mem_F001         H'F001 program_or_external memory   r=2 w=1 width=byte
; mem_F002         H'F002 program_or_external memory   r=2 w=1 width=mixed
; mem_F003         H'F003 program_or_external memory   r=1 w=1 width=byte
; mem_F004         H'F004 program_or_external memory   r=2 w=1 width=mixed
; mem_F005         H'F005 program_or_external memory   r=1 w=1 width=byte
; mem_F006         H'F006 program_or_external memory   r=2 w=0 width=mixed
; mem_F007         H'F007 program_or_external memory   r=1 w=0 width=byte
; mem_F008         H'F008 program_or_external memory   r=2 w=0 width=mixed
; mem_F009         H'F009 program_or_external memory   r=1 w=1 width=byte
; mem_F00A         H'F00A program_or_external memory   r=2 w=1 width=mixed
; mem_F00B         H'F00B program_or_external memory   r=0 w=1 width=byte
; mem_F00C         H'F00C program_or_external memory   r=2 w=1 width=mixed
; mem_F00D         H'F00D program_or_external memory   r=0 w=1 width=byte
; mem_F00E         H'F00E program_or_external memory   r=0 w=1 width=byte
; mem_F00F         H'F00F program_or_external memory   r=1 w=1 width=byte
; mem_F100         H'F100 program_or_external memory   r=2 w=0 width=byte
; mem_F101         H'F101 program_or_external memory   r=2 w=1 width=byte
; mem_F102         H'F102 program_or_external memory   r=2 w=1 width=mixed
; mem_F103         H'F103 program_or_external memory   r=1 w=1 width=byte
; mem_F104         H'F104 program_or_external memory   r=2 w=1 width=mixed
; mem_F105         H'F105 program_or_external memory   r=1 w=1 width=byte
; mem_F106         H'F106 program_or_external memory   r=2 w=0 width=mixed
; mem_F107         H'F107 program_or_external memory   r=1 w=0 width=byte
; mem_F108         H'F108 program_or_external memory   r=2 w=0 width=mixed
; mem_F109         H'F109 program_or_external memory   r=1 w=1 width=byte
; mem_F10A         H'F10A program_or_external memory   r=2 w=1 width=mixed
; ... 220 more symbols omitted from listing header

; Board Profile
; Board trace ties the H8/536 SCI1 pins to a MAX202 RS232 transceiver.
; H8 pin 66 P95/TXD (TXD) -> MAX202 pin 11
; H8 pin 67 P96/RXD (RXD) -> MAX202 pin 12
; SCI2 pin routing is disabled by SYSCR2.P9SCI2E=0 in the observed setup.

; Serial Protocol Reconstruction
; TX candidate: 6 bytes H'F858-H'F85D, checksum H'F85D seeded by H'005A (confidence high 0.95)
;   TX path: initial byte is written from the TX frame buffer, then subsequent bytes are sent by the TXI path when TDRE is reasserted
; RX candidate: 6 bytes capture H'F868-H'F86D, validate H'F860-H'F865 checksum H'F865 seeded by H'005A (confidence high 0.9)
;   caveat: candidate frame means six consecutive bytes within the observed RX timing/state machine, not a proven delimited packet
; Serial RAM role candidates
;   H'F9C0: post_tx_report_delay - post_tx_report_delay at H'F9C0 is a candidate/evidence-supported RAM timer role; FRT1 OCIA tick ISR H'BEEA decrements it
;   H'F9C1: secondary_tx_report_delay - secondary_tx_report_delay at H'F9C1 is a candidate/evidence-supported RAM timer role; FRT1 OCIA tick ISR H'BEEA decrements it
;   H'F9C6: periodic_report_countdown - periodic_report_countdown at H'F9C6 is a candidate/evidence-supported RAM timer role; FRT1 OCIA tick ISR H'BEEA decrements it

; LCD/Text Scan
; search 'CONNECT': not literal, hits=0
;   near: H'A025 'COMPLETED', H'8E79 'ON  CONT1  OFF~X', H'8F55 'ON  CONT2  OFF~X', H'94A9 'ON'
; LCD text regions
; region H'63D7-H'6758 count=15  'OPERATION', 'PAINT', 'OPERATION', 'IRIS/M.BLK'
; region H'67E0-H'6831 count=2   'TLCS      Xg', 'AGC  GAIN  AE  Xh'
; region H'6A4F-H'6C47 count=8   'AUTO FUNC    XjO', 'A.IRIS MODE   Xj', 'AI      BACK.L~Xj', 'AUTO FUNC    Xk='
; region H'6F84-H'6FC0 count=2   'OTHERS      Xo', 'SHUTTER     Xo'
; region H'7052-H'7477 count=15  'SET RCP', 'MASTER', 'OTHERS      Xp', 'COPY TO SLAVES~Xp'
; region H'757A-H'7824 count=14  'BARS TYPE    Xuz', 'SMPTE      Xu', 'SPLIT      Xu', 'FULLFIELD 75%  Xu'
; region H'78B5-H'792F count=4   'OTHERS      Xx', 'WHITE    BLACK~Xx', 'COMM LINK ITEM-2Xx', 'FLARE          Xy'
; region H'819C-H'87A9 count=28  'SHADING     X', 'WHITE~X', 'SHADING AUTO SETX', 'BLACK~X'
; region H'883D-H'8959 count=7   'MATRIX     X', 'STD         FL~X', 'PRESET MATRIX  X', 'H.SAT     SPCL~X'
; region H'8A0C-H'8BAC count=7   'MATRIX     X', 'ON   SKIN  OFF~X', 'SAT        HUE X', 'MATRIX     X'
; region H'8CB7-H'8CFD count=2   'FILTER     X', '1  2  3  4   X'
; region H'8E57-H'8EA7 count=3   'LENS      X', 'ON  CONT1  OFF~X', 'FOCUS      ZOOM X'
; ... 23 more LCD text regions
; LCD text candidates
; text H'41B0   len=35  medium '01020304050607080910111213141516X'
; text H'5B55   len=10  high   '0123456789'
; text H'60F6   len=16  high   '0123456789ABCDEF'
; text H'63D7   len=10  high   'OPERATION' xrefs=2
; text H'63F5   len=10  high   'PAINT' xrefs=2
; text H'6443   len=10  high   'OPERATION' xrefs=2
; text H'6461   len=10  high   'IRIS/M.BLK' xrefs=2
; text H'6490   len=10  high   'OPERATION' xrefs=2
; text H'64AE   len=10  high   'LOCK' xrefs=2
; text H'652F   len=19  high   'DYNA LATITUDE  Xe/' xrefs=1
; text H'6551   len=18  medium 'HIGH       LOW~XeP' xrefs=1
; text H'65C9   len=18  medium 'BLACK STR    Xe' xrefs=1
; text H'6644   len=19  medium 'BLACK STR    XfD' xrefs=1
; text H'6665   len=19  medium 'STRETCH LEVEL  Xfe' xrefs=1
; text H'6683   len=18  high   'POINT1    POINT2Xf' xrefs=1
; text H'6706   len=18  medium 'BLACK STR    Xg' xrefs=1
; text H'6727   len=19  medium "COMPRESS LEVEL Xg'" xrefs=1
; text H'6745   len=19  high   'POINT1    POINT2XgE' xrefs=1
; text H'67E0   len=18  medium 'TLCS      Xg' xrefs=1
; text H'681F   len=18  medium 'AGC  GAIN  AE  Xh' xrefs=1
; text H'693B   len=19  medium 'AUTO FUNC    Xi;' xrefs=1
; text H'6A4F   len=19  medium 'AUTO FUNC    XjO' xrefs=1
; text H'6A8E   len=18  medium 'A.IRIS MODE   Xj' xrefs=1
; text H'6AAD   len=17  medium 'AI      BACK.L~Xj' xrefs=1
; text H'6B3D   len=19  medium 'AUTO FUNC    Xk=' xrefs=1
; text H'6B5E   len=19  medium 'AUTO FOCUS   Xk^' xrefs=1
; text H'6BEF   len=18  medium 'DIAG      Xk' xrefs=1
; text H'6C16   len=18  medium 'DIAG DATA    Xl' xrefs=1
; text H'6C35   len=18  medium 'RESET      REQ~Xl4' xrefs=1
; text H'6F84   len=18  medium 'OTHERS      Xo' xrefs=1
; text H'6FAE   len=18  medium 'SHUTTER     Xo' xrefs=1
; text H'7052   len=14  medium 'SET RCP' xrefs=1
; text H'706F   len=14  medium 'MASTER' xrefs=1
; text H'709F   len=18  medium 'OTHERS      Xp' xrefs=1
; text H'70C0   len=18  medium 'COPY TO SLAVES~Xp' xrefs=1
; text H'7144   len=19  medium 'CAM ID SET~XqD' xrefs=1
; text H'71C9   len=18  medium 'OTHERS      Xq' xrefs=1
; text H'71F9   len=18  medium 'CAM ID IND   Xq' xrefs=1
; text H'7213   len=18  medium 'TITLE IND    Xr' xrefs=1
; text H'72A5   len=18  medium 'OTHERS      Xr' xrefs=1
; text H'72C7   len=17  medium 'CAM       BARS~Xr' xrefs=1
; text H'72E4   len=18  medium 'CLOCK IND    Xr' xrefs=1
; text H'7369   len=19  medium 'OTHERS      Xsi' xrefs=1
; text H'7393   len=18  high   'CENTER MARKER  Xs' xrefs=1
; text H'7425   len=19  medium 'OTHERS      Xt%' xrefs=1
; text H'7464   len=19  medium 'SAFETY ZONE   Xtd' xrefs=1
; text H'757A   len=19  medium 'BARS TYPE    Xuz' xrefs=1
; text H'75A4   len=18  medium 'SMPTE      Xu' xrefs=1
; ... 192 more LCD text candidates

; LCD Driver Candidates
; H'F200 lcd_status_control status/control register inferred from busy polling and command writes
; H'F201 lcd_data           data register inferred from paired data reads/writes
; LCD routines
; routine H'3F40-H'3F74 lcd_wait_and_transfer    lcd_command_or_address_write, lcd_data_read, lcd_data_write, lcd_status_read
; LCD busy loops
; loop H'3F4A->H'3F51 LCD busy-flag poll: read H'F200, test bit 7, branch until clear


vec_reset_1000:
1000: 5F FE 80       MOV:I.W #H'FE80, R7 ; dataflow R7=H'FE80; cycles=3
1003: 0C 07 00 88    LDC.W #H'0700, SR ; dataflow SR=H'0700; cycles=6
1007: 15 FE 80 06 FF MOV:G.B #H'FF, @P1DDR ; P1DDR = H'FF; cycles=9
100C: 15 FE 82 06 00 MOV:G.B #H'00, @P1DR ; P1DR = H'00; cycles=9
1011: 15 FE 89 06 F9 MOV:G.B #H'F9, @P6DDR ; P6DDR = H'F9; cycles=9
1016: 15 FE 8B 06 F1 MOV:G.B #H'F1, @P6DR ; P6DR = H'F1; cycles=9
101B: 15 FE 8C 06 00 MOV:G.B #H'00, @P7DDR ; P7DDR = H'00; cycles=9
1020: 15 FE 8E 06 00 MOV:G.B #H'00, @P7DR ; P7DR = H'00; cycles=9
1025: 15 FE FE 06 93 MOV:G.B #H'93, @P9DDR ; P9DDR = H'93; cycles=9
102A: 15 FE FF 06 00 MOV:G.B #H'00, @P9DR ; P9DR = H'00; cycles=9
102F: 15 FE FC 06 87 MOV:G.B #H'87, @SYSCR1 ; SYSCR1 = H'87 (IRQ1E=0 IRQ0E=0 NMIEG=0 BRLE=0; P12/P13 are I/O, IRQ0 disabled, IRQ1 disabled); cycles=9
1034: 15 FE FD 06 84 MOV:G.B #H'84, @SYSCR2 ; SYSCR2 = H'84 (IRQ5E=0 IRQ4E=0 IRQ3E=0 IRQ2E=0 P6PWME=1 P9PWME=0 P9SCI2E=0; enabled P6 PWM); SYSCR2 write leaves P9SCI2E=0; SCI2 pins are disabled, so SCI2 is not the traced MAX202 path; traced RS232/MAX202 remains SCI1 P95/P96; cycles=9
1039: 15 FE 90 06 02 MOV:G.B #H'02, @FRT1_TCR ; FRT1_TCR = H'02 (ICIE=0 OCIEB=0 OCIEA=0 OVIE=0 OEB=0 OEA=0 CKS1=1 CKS0=0); cycles=9
103E: 15 FE 91 06 01 MOV:G.B #H'01, @FRT1_TCSR ; FRT1_TCSR = H'01 (ICF=0 OCFB=0 OCFA=0 OVF=0 OLVLB=0 OLVLA=0 IEDG=0 CCLRA=1); cycles=9
1043: 1D FE 92 06 00 MOV:G.W #H'00, @FRT1_FRC_H ; FRT1_FRC_H = H'00; FRT1_FRC word write; TEMP byte-order hazard avoided; cycles=9
1048: 1D FE 94 07 00 9C MOV:G.W #H'009C, @FRT1_OCRA_H ; FRT1_OCRA_H = H'9C; FRT1_OCRA word write; TEMP byte-order hazard avoided; cycles=11
104E: 15 FE A0 06 02 MOV:G.B #H'02, @FRT2_TCR ; FRT2_TCR = H'02 (ICIE=0 OCIEB=0 OCIEA=0 OVIE=0 OEB=0 OEA=0 CKS1=1 CKS0=0); cycles=9
1053: 15 FE A1 06 01 MOV:G.B #H'01, @FRT2_TCSR ; FRT2_TCSR = H'01 (ICF=0 OCFB=0 OCFA=0 OVF=0 OLVLB=0 OLVLA=0 IEDG=0 CCLRA=1); cycles=9
1058: 1D FE A2 06 00 MOV:G.W #H'00, @FRT2_FRC_H ; FRT2_FRC_H = H'00; FRT2_FRC word write; TEMP byte-order hazard avoided; cycles=11
105D: 1D FE A4 07 7A 12 MOV:G.W #H'7A12, @FRT2_OCRA_H ; FRT2_OCRA_H = H'7A12; FRT2_OCRA word write; TEMP byte-order hazard avoided; cycles=9
1063: 15 FE B0 06 00 MOV:G.B #H'00, @FRT3_TCR ; FRT3_TCR = H'00 (ICIE=0 OCIEB=0 OCIEA=0 OVIE=0 OEB=0 OEA=0 CKS1=0 CKS0=0); cycles=9
1068: 15 FE B1 06 00 MOV:G.B #H'00, @FRT3_TCSR ; FRT3_TCSR = H'00 (ICF=0 OCFB=0 OCFA=0 OVF=0 OLVLB=0 OLVLA=0 IEDG=0 CCLRA=0); cycles=9
106D: 15 FE D0 06 00 MOV:G.B #H'00, @TMR_TCR ; TMR_TCR = H'00 (CMIEB=0 CMIEA=0 OVIE=0 CCLR1=0 CCLR0=0 CKS2=0 CKS1=0 CKS0=0); cycles=9
1072: 15 FE D1 06 10 MOV:G.B #H'10, @TMR_TCSR ; TMR_TCSR = H'10 (CMFB=0 CMFA=0 OVF=0 OS3=0 OS2=0 OS1=0 OS0=0); cycles=9
1077: 15 FE C0 06 38 MOV:G.B #H'38, @PWM1_TCR ; PWM1_TCR = H'38 (OE=0 OS=0 CKS2=0 CKS1=0 CKS0=0); cycles=9
107C: 15 FE C1 06 FF MOV:G.B #H'FF, @PWM1_DTR ; PWM1_DTR = H'FF; cycles=9
1081: 15 FE C4 06 38 MOV:G.B #H'38, @PWM2_TCR ; PWM2_TCR = H'38 (OE=0 OS=0 CKS2=0 CKS1=0 CKS0=0); cycles=9
1086: 15 FE C5 06 FF MOV:G.B #H'FF, @PWM2_DTR ; PWM2_DTR = H'FF; cycles=9
108B: 15 FE C8 06 3B MOV:G.B #H'3B, @PWM3_TCR ; PWM3_TCR = H'3B (OE=0 OS=0 CKS2=0 CKS1=1 CKS0=1); cycles=9
1090: 15 FE C9 06 7D MOV:G.B #H'7D, @PWM3_DTR ; PWM3_DTR = H'7D; cycles=9
1095: 15 FE D8 06 24 MOV:G.B #H'24, @SCI1_SMR ; SCI1_SMR = H'24 (C/A=0 CHR=0 PE=1 O/E=0 STOP=0 CKS1=0 CKS0=0; SCI async, 8-bit, even parity, 1 stop, clock phi); SCI1 SMR serial init for traced RS232/MAX202 path (H8 pin 66 P95/TXD to MAX202 pin 11; MAX202 pin 12 to H8 pin 67 P96/RXD); cycles=9
109A: 15 FE DA 06 3C MOV:G.B #H'3C, @SCI1_SCR ; SCI1_SCR = H'3C (TIE=0 RIE=0 TE=1 RE=1 CKE1=0 CKE0=0; SCI enables TX,RX, internal clock); disable SCI1 TX interrupt (TIE); gates TXI when hardware sets TDRE; disable SCI1 receive and receive-error interrupts (RIE); enable SCI1 transmitter (TE); enable SCI1 receiver (RE); SCI1 SCR write TE=1 RE=1; TE/RE select the traced RS232/MAX202 pins (P95/TXD pin 66 to MAX202 pin 11, P96/RXD pin 67 to MAX202 pin 12); cycles=9
109F: 15 FE D9 06 07 MOV:G.B #H'07, @SCI1_BRR ; SCI1_BRR = H'07; SCI1 async 8-bit even parity 1 stop BRR N=7 CKS n=0; baud needs --clock-hz; SCI1 BRR serial init for traced RS232/MAX202 path (H8 pin 66 P95/TXD to MAX202 pin 11; MAX202 pin 12 to H8 pin 67 P96/RXD); cycles=9
10A4: 15 FE F0 06 24 MOV:G.B #H'24, @SCI2_SMR ; SCI2_SMR = H'24 (C/A=0 CHR=0 PE=1 O/E=0 STOP=0 CKS1=0 CKS0=0; SCI async, 8-bit, even parity, 1 stop, clock phi); SCI2 SMR write; not the traced MAX202 path; P9SCI2E=0 disables SCI2 pins P92/P93/P94, while the board trace is SCI1 P95/P96; cycles=9
10A9: 15 FE F2 06 0C MOV:G.B #H'0C, @SCI2_SCR ; SCI2_SCR = H'0C (TIE=0 RIE=0 TE=0 RE=0 CKE1=0 CKE0=0; SCI enables none, internal clock); disable SCI2 TX interrupt (TIE); gates TXI when hardware sets TDRE; disable SCI2 receive and receive-error interrupts (RIE); disable SCI2 transmitter (TE); disable SCI2 receiver (RE); SCI2 SCR write; not the traced MAX202 path; P9SCI2E=0 disables SCI2 pins P92/P93/P94, while the board trace is SCI1 P95/P96; cycles=9
10AE: 15 FE F1 06 07 MOV:G.B #H'07, @SCI2_BRR ; SCI2_BRR = H'07; SCI2 async 8-bit even parity 1 stop BRR N=7 CKS n=0; baud needs --clock-hz; SCI2 BRR write; not the traced MAX202 path; P9SCI2E=0 disables SCI2 pins P92/P93/P94, while the board trace is SCI1 P95/P96; cycles=9
10B3: 15 FE E8 06 19 MOV:G.B #H'19, @ADCSR ; ADCSR = H'19 (ADF=0 ADIE=0 ADST=0 SCAN=1 CKS=1 CH2=0 CH1=0 CH0=1; A/D halt, scan AN0-AN1, 138-state max, ADI disabled); cycles=9
10B8: 15 FE E9 06 7F MOV:G.B #H'7F, @H'FEE9 ; refs H'FEE9 in register_field; cycles=9
10BD: 15 FF 10 06 F0 MOV:G.B #H'F0, @WCR ; WCR = H'F0 (WMS1=0 WMS0=0 WC1=0 WC0=0; programmable wait, 0 waits); cycles=9
10C2: 15 FF 11 06 FF MOV:G.B #H'FF, @RAMCR ; RAMCR = H'FF (RAME=1; on-chip RAM enabled); cycles=9
10C7: 15 FE 82 D7    BCLR.B #7, @P1DR ; clear bit 7 of P1DR; cycles=8
10CB: 30 2E A8       BRA loc_3F76 ; cycles=8

loc_10CE:
10CE: 5C 00 40       MOV:I.W #H'0040, R4 ; dataflow R4=H'0040; cycles=3
10D1: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
10D4: 1E 2D F5       BSR loc_3ECC ; cycles=13
10D7: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
10DA: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
10DD: 1E 2D EC       BSR loc_3ECC ; cycles=14
10E0: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
10E3: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
10E6: 1E 2D E3       BSR loc_3ECC ; cycles=13
10E9: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
10EC: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
10EF: 1E 2D DA       BSR loc_3ECC ; cycles=14
10F2: 5C 02 07       MOV:I.W #H'0207, R4 ; dataflow R4=H'0207; cycles=3
10F5: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
10F8: 1E 2D D1       BSR loc_3ECC ; cycles=13
10FB: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
10FE: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1101: 1E 2D C8       BSR loc_3ECC ; cycles=14
1104: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1107: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
110A: 1E 2D BF       BSR loc_3ECC ; cycles=13
110D: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1110: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1113: 1E 2D B6       BSR loc_3ECC ; cycles=14
1116: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1119: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
111C: 1E 2D AD       BSR loc_3ECC ; cycles=13
111F: 5C 00 48       MOV:I.W #H'0048, R4 ; dataflow R4=H'0048; cycles=3
1122: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1125: 1E 2D A4       BSR loc_3ECC ; cycles=14
1128: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
112B: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
112E: 1E 2D 9B       BSR loc_3ECC ; cycles=13
1131: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1134: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1137: 1E 2D 92       BSR loc_3ECC ; cycles=14
113A: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
113D: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1140: 1E 2D 89       BSR loc_3ECC ; cycles=13
1143: 5C 02 1B       MOV:I.W #H'021B, R4 ; dataflow R4=H'021B; cycles=3
1146: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1149: 1E 2D 80       BSR loc_3ECC ; cycles=14
114C: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
114F: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1152: 1E 2D 77       BSR loc_3ECC ; cycles=13
1155: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1158: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
115B: 1E 2D 6E       BSR loc_3ECC ; cycles=14
115E: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1161: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1164: 1E 2D 65       BSR loc_3ECC ; cycles=13
1167: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
116A: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
116D: 1E 2D 5C       BSR loc_3ECC ; cycles=14
1170: 5C 00 50       MOV:I.W #H'0050, R4 ; dataflow R4=H'0050; cycles=3
1173: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1176: 1E 2D 53       BSR loc_3ECC ; cycles=13
1179: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
117C: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
117F: 1E 2D 4A       BSR loc_3ECC ; cycles=14
1182: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1185: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1188: 1E 2D 41       BSR loc_3ECC ; cycles=13
118B: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
118E: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1191: 1E 2D 38       BSR loc_3ECC ; cycles=14
1194: 5C 02 1C       MOV:I.W #H'021C, R4 ; dataflow R4=H'021C; cycles=3
1197: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
119A: 1E 2D 2F       BSR loc_3ECC ; cycles=13
119D: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11A0: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11A3: 1E 2D 26       BSR loc_3ECC ; cycles=14
11A6: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11A9: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11AC: 1E 2D 1D       BSR loc_3ECC ; cycles=13
11AF: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11B2: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11B5: 1E 2D 14       BSR loc_3ECC ; cycles=14
11B8: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11BB: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11BE: 1E 2D 0B       BSR loc_3ECC ; cycles=13
11C1: 5C 00 58       MOV:I.W #H'0058, R4 ; dataflow R4=H'0058; cycles=3
11C4: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11C7: 1E 2D 02       BSR loc_3ECC ; cycles=14
11CA: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11CD: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11D0: 1E 2C F9       BSR loc_3ECC ; cycles=13
11D3: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11D6: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11D9: 1E 2C F0       BSR loc_3ECC ; cycles=14
11DC: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
11DF: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11E2: 1E 2C E7       BSR loc_3ECC ; cycles=13
11E5: 5C 02 07       MOV:I.W #H'0207, R4 ; dataflow R4=H'0207; cycles=3
11E8: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11EB: 1E 2C DE       BSR loc_3ECC ; cycles=14
11EE: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
11F1: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11F4: 1E 2C D5       BSR loc_3ECC ; cycles=13
11F7: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
11FA: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
11FD: 1E 2C CC       BSR loc_3ECC ; cycles=14
1200: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1203: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1206: 1E 2C C3       BSR loc_3ECC ; cycles=13
1209: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
120C: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
120F: 1E 2C BA       BSR loc_3ECC ; cycles=14
1212: 5C 00 60       MOV:I.W #H'0060, R4 ; dataflow R4=H'0060; cycles=3
1215: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1218: 1E 2C B1       BSR loc_3ECC ; cycles=13
121B: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
121E: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1221: 1E 2C A8       BSR loc_3ECC ; cycles=14
1224: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1227: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
122A: 1E 2C 9F       BSR loc_3ECC ; cycles=13
122D: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1230: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1233: 1E 2C 96       BSR loc_3ECC ; cycles=14
1236: 5C 02 1B       MOV:I.W #H'021B, R4 ; dataflow R4=H'021B; cycles=3
1239: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
123C: 1E 2C 8D       BSR loc_3ECC ; cycles=13
123F: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1242: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1245: 1E 2C 84       BSR loc_3ECC ; cycles=14
1248: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
124B: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
124E: 1E 2C 7B       BSR loc_3ECC ; cycles=13
1251: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1254: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1257: 1E 2C 72       BSR loc_3ECC ; cycles=14
125A: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
125D: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1260: 1E 2C 69       BSR loc_3ECC ; cycles=13
1263: 5C 00 68       MOV:I.W #H'0068, R4 ; dataflow R4=H'0068; cycles=3
1266: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1269: 1E 2C 60       BSR loc_3ECC ; cycles=14
126C: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
126F: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1272: 1E 2C 57       BSR loc_3ECC ; cycles=13
1275: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1278: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
127B: 1E 2C 4E       BSR loc_3ECC ; cycles=14
127E: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1281: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1284: 1E 2C 45       BSR loc_3ECC ; cycles=13
1287: 5C 02 1C       MOV:I.W #H'021C, R4 ; dataflow R4=H'021C; cycles=3
128A: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
128D: 1E 2C 3C       BSR loc_3ECC ; cycles=14
1290: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1293: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1296: 1E 2C 33       BSR loc_3ECC ; cycles=13
1299: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
129C: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
129F: 1E 2C 2A       BSR loc_3ECC ; cycles=14
12A2: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
12A5: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12A8: 1E 2C 21       BSR loc_3ECC ; cycles=13
12AB: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
12AE: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12B1: 1E 2C 18       BSR loc_3ECC ; cycles=14
12B4: 5C 00 70       MOV:I.W #H'0070, R4 ; dataflow R4=H'0070; cycles=3
12B7: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12BA: 1E 2C 0F       BSR loc_3ECC ; cycles=13
12BD: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12C0: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12C3: 1E 2C 06       BSR loc_3ECC ; cycles=14
12C6: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12C9: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12CC: 1E 2B FD       BSR loc_3ECC ; cycles=13
12CF: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
12D2: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12D5: 1E 2B F4       BSR loc_3ECC ; cycles=14
12D8: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12DB: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12DE: 1E 2B EB       BSR loc_3ECC ; cycles=13
12E1: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12E4: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12E7: 1E 2B E2       BSR loc_3ECC ; cycles=14
12EA: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
12ED: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12F0: 1E 2B D9       BSR loc_3ECC ; cycles=13
12F3: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12F6: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
12F9: 1E 2B D0       BSR loc_3ECC ; cycles=14
12FC: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
12FF: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1302: 1E 2B C7       BSR loc_3ECC ; cycles=13
1305: 5C 00 78       MOV:I.W #H'0078, R4 ; dataflow R4=H'0078; cycles=3
1308: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
130B: 1E 2B BE       BSR loc_3ECC ; cycles=14
130E: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1311: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1314: 1E 2B B5       BSR loc_3ECC ; cycles=13
1317: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
131A: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
131D: 1E 2B AC       BSR loc_3ECC ; cycles=14
1320: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
1323: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1326: 1E 2B A3       BSR loc_3ECC ; cycles=13
1329: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
132C: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
132F: 1E 2B 9A       BSR loc_3ECC ; cycles=14
1332: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1335: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1338: 1E 2B 91       BSR loc_3ECC ; cycles=13
133B: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
133E: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1341: 1E 2B 88       BSR loc_3ECC ; cycles=14
1344: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1347: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
134A: 1E 2B 7F       BSR loc_3ECC ; cycles=13
134D: 5C 02 04       MOV:I.W #H'0204, R4 ; dataflow R4=H'0204; cycles=3
1350: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
1353: 1E 2B 76       BSR loc_3ECC ; cycles=14
1356: 19             RTS ; cycles=12

loc_15E0:
15E0: 1E 10 6D       BSR loc_2650 ; cycles=13
15E3: 15 F6 89 D7    BCLR.B #7, @H'F689 ; refs ram_F689 in on_chip_ram; cycles=8
15E7: 27 10          BEQ loc_15F9 ; cycles=3/8 nt/t
15E9: 1D F6 8E 81    MOV:G.W @H'F68E, R1 ; refs ram_F68E in on_chip_ram; cycles=6
15ED: 1D E9 02 91    MOV:G.W R1, @H'E902 ; refs mem_E902 in program_or_external; cycles=6
15F1: 52 80          MOV:E.B #H'80, R2 ; dataflow R2=H'80; cycles=2
15F3: 5B 00 81       MOV:I.W #H'0081, R3 ; dataflow R3=H'0081; cycles=3
15F6: 1E 28 5B       BSR loc_3E54 ; cycles=13

loc_15F9:
15F9: 15 F6 F0 16    TST.B @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=6
15FD: 27 3E          BEQ loc_163D ; cycles=3/8 nt/t
15FF: 15 F6 F0 D7    BCLR.B #7, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
1603: 27 03          BEQ loc_1608 ; cycles=3/8 nt/t
1605: 18 43 94       JSR @loc_4394 ; cycles=14

loc_1608:
1608: 15 F6 F0 D6    BCLR.B #6, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=9
160C: 27 03          BEQ loc_1611 ; cycles=3/7 nt/t
160E: 18 44 57       JSR @loc_4457 ; cycles=13

loc_1611:
1611: 15 F6 F0 D5    BCLR.B #5, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
1615: 27 03          BEQ loc_161A ; cycles=3/8 nt/t
1617: 18 45 1A       JSR @loc_451A ; cycles=14

loc_161A:
161A: 15 F6 F0 D4    BCLR.B #4, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=9
161E: 15 F6 F0 D3    BCLR.B #3, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=9
1622: 27 03          BEQ loc_1627 ; cycles=3/7 nt/t
1624: 18 17 05       JSR @loc_1705 ; cycles=13

loc_1627:
1627: 15 F6 F0 D2    BCLR.B #2, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
162B: 27 03          BEQ loc_1630 ; cycles=3/8 nt/t
162D: 18 17 4D       JSR @loc_174D ; cycles=14

loc_1630:
1630: 15 F6 F0 D1    BCLR.B #1, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=9
1634: 27 03          BEQ loc_1639 ; cycles=3/7 nt/t
1636: 18 17 95       JSR @loc_1795 ; cycles=13

loc_1639:
1639: 15 F6 F0 D0    BCLR.B #0, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8

loc_163D:
163D: 15 F6 F1 16    TST.B @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=6
1641: 27 43          BEQ loc_1686 ; cycles=3/8 nt/t
1643: 15 F6 F1 D7    BCLR.B #7, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=8
1647: 27 03          BEQ loc_164C ; cycles=3/8 nt/t
1649: 18 17 C9       JSR @loc_17C9 ; cycles=14

loc_164C:
164C: 15 F6 F1 D6    BCLR.B #6, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
1650: 27 03          BEQ loc_1655 ; cycles=3/7 nt/t
1652: 18 17 FB       JSR @loc_17FB ; cycles=13

loc_1655:
1655: 15 F6 F1 D5    BCLR.B #5, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=8
1659: 27 03          BEQ loc_165E ; cycles=3/8 nt/t
165B: 18 18 2D       JSR @loc_182D ; cycles=14

loc_165E:
165E: 15 F6 F1 D4    BCLR.B #4, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
1662: 27 03          BEQ loc_1667 ; cycles=3/7 nt/t
1664: 18 18 91       JSR @loc_1891 ; cycles=13

loc_1667:
1667: 15 F6 F1 D3    BCLR.B #3, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=8
166B: 27 03          BEQ loc_1670 ; cycles=3/8 nt/t
166D: 18 18 E7       JSR @loc_18E7 ; cycles=14

loc_1670:
1670: 15 F6 F1 D2    BCLR.B #2, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
1674: 27 03          BEQ loc_1679 ; cycles=3/7 nt/t
1676: 18 19 4A       JSR @loc_194A ; cycles=13

loc_1679:
1679: 15 F6 F1 D1    BCLR.B #1, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=8
167D: 27 03          BEQ loc_1682 ; cycles=3/8 nt/t
167F: 18 19 79       JSR @loc_1979 ; cycles=14

loc_1682:
1682: 15 F6 F1 D0    BCLR.B #0, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9

loc_1686:
1686: 15 F6 F2 16    TST.B @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=7
168A: 27 48          BEQ loc_16D4 ; cycles=3/7 nt/t
168C: 15 F6 F2 D7    BCLR.B #7, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=9
1690: 27 03          BEQ loc_1695 ; cycles=3/7 nt/t
1692: 18 1B 2D       JSR @loc_1B2D ; cycles=13

loc_1695:
1695: 15 F6 F2 D6    BCLR.B #6, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
1699: 27 03          BEQ loc_169E ; cycles=3/8 nt/t
169B: 18 1B 44       JSR @loc_1B44 ; cycles=14

loc_169E:
169E: 15 F6 F2 D5    BCLR.B #5, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=9
16A2: 27 03          BEQ loc_16A7 ; cycles=3/7 nt/t
16A4: 18 1B 5B       JSR @loc_1B5B ; cycles=13

loc_16A7:
16A7: 15 F6 F2 D4    BCLR.B #4, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
16AB: 27 03          BEQ loc_16B0 ; cycles=3/8 nt/t
16AD: 18 1B A0       JSR @loc_1BA0 ; cycles=14

loc_16B0:
16B0: 15 F6 F2 D3    BCLR.B #3, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=9
16B4: 27 03          BEQ loc_16B9 ; cycles=3/7 nt/t
16B6: 18 1B B6       JSR @loc_1BB6 ; cycles=13

loc_16B9:
16B9: 15 F6 F2 D2    BCLR.B #2, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
16BD: 27 03          BEQ loc_16C2 ; cycles=3/8 nt/t
16BF: 18 1B CC       JSR @loc_1BCC ; cycles=14

loc_16C2:
16C2: 15 F6 F2 D1    BCLR.B #1, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=9
16C6: 27 03          BEQ loc_16CB ; cycles=3/7 nt/t
16C8: 18 1B 72       JSR @loc_1B72 ; cycles=13

loc_16CB:
16CB: 15 F6 F2 D0    BCLR.B #0, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
16CF: 27 03          BEQ loc_16D4 ; cycles=3/8 nt/t
16D1: 18 1B 89       JSR @loc_1B89 ; cycles=14

loc_16D4:
16D4: 15 F6 F3 16    TST.B @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=7
16D8: 27 2A          BEQ loc_1704 ; cycles=3/7 nt/t
16DA: 15 F6 F3 D7    BCLR.B #7, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
16DE: 15 F6 F3 D6    BCLR.B #6, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
16E2: 15 F6 F3 D5    BCLR.B #5, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
16E6: 15 F6 F3 D4    BCLR.B #4, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
16EA: 27 03          BEQ loc_16EF ; cycles=3/7 nt/t
16EC: 18 1B E2       JSR @loc_1BE2 ; cycles=13

loc_16EF:
16EF: 15 F6 F3 D3    BCLR.B #3, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=8
16F3: 27 03          BEQ loc_16F8 ; cycles=3/8 nt/t
16F5: 18 1B F8       JSR @loc_1BF8 ; cycles=14

loc_16F8:
16F8: 15 F6 F3 D2    BCLR.B #2, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
16FC: 15 F6 F3 D1    BCLR.B #1, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
1700: 15 F6 F3 D0    BCLR.B #0, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9

loc_1704:
1704: 19             RTS ; cycles=12

loc_1705:
1705: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
170A: 22 38          BHI loc_1744 ; cycles=3/7 nt/t
170C: 1D E1 4E FF    BTST.W #15, @H'E14E ; refs mem_E14E in program_or_external; cycles=7
1710: 26 24          BNE loc_1736 ; cycles=3/7 nt/t
1712: 15 F7 30 F6    BTST.B #6, @H'F730 ; refs ram_F730 in on_chip_ram; cycles=7
1716: 26 1E          BNE loc_1736 ; cycles=3/7 nt/t
1718: 15 FB 03 C7    BSET.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=9
171C: 26 08          BNE loc_1726 ; cycles=3/7 nt/t
171E: 1D F7 32 81    MOV:G.W @H'F732, R1 ; refs ram_F732 in on_chip_ram; cycles=7
1722: 1D F7 34 91    MOV:G.W R1, @H'F734 ; refs ram_F734 in on_chip_ram; cycles=7

loc_1726:
1726: 1D F7 32 07 1C 07 MOV:G.W #H'1C07, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=11
172C: 15 FB 02 06 14 MOV:G.B #H'14, @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
1731: 1E 31 C6       BSR loc_48FA ; cycles=14
1734: 20 0E          BRA loc_1744 ; cycles=7

loc_1736:
1736: 1D F6 96 84    MOV:G.W @H'F696, R4 ; refs ram_F696 in on_chip_ram; cycles=7
173A: 1D F6 B6 34    SUB.W @H'F6B6, R4 ; refs ram_F6B6 in on_chip_ram; cycles=7
173E: 5B 00 A9       MOV:I.W #H'00A9, R3 ; dataflow R3=H'00A9; cycles=3
1741: 1E 02 5E       BSR loc_19A2 ; cycles=14

loc_1744:
1744: 1D F6 96 84    MOV:G.W @H'F696, R4 ; refs ram_F696 in on_chip_ram; cycles=7
1748: 1D F6 B6 94    MOV:G.W R4, @H'F6B6 ; refs ram_F6B6 in on_chip_ram; cycles=7
174C: 19             RTS ; cycles=12

loc_174D:
174D: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
1752: 22 38          BHI loc_178C ; cycles=3/7 nt/t
1754: 15 F7 30 F7    BTST.B #7, @H'F730 ; refs ram_F730 in on_chip_ram; cycles=7
1758: 27 32          BEQ loc_178C ; cycles=3/7 nt/t
175A: 1D E1 6E FD    BTST.W #13, @H'E16E ; refs mem_E16E in program_or_external; cycles=7
175E: 26 1E          BNE loc_177E ; cycles=3/7 nt/t
1760: 15 FB 03 C7    BSET.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=9
1764: 26 08          BNE loc_176E ; cycles=3/7 nt/t
1766: 1D F7 32 81    MOV:G.W @H'F732, R1 ; refs ram_F732 in on_chip_ram; cycles=7
176A: 1D F7 34 91    MOV:G.W R1, @H'F734 ; refs ram_F734 in on_chip_ram; cycles=7

loc_176E:
176E: 1D F7 32 07 1C 06 MOV:G.W #H'1C06, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=11
1774: 15 FB 02 06 14 MOV:G.B #H'14, @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
1779: 1E 31 7E       BSR loc_48FA ; cycles=14
177C: 20 0E          BRA loc_178C ; cycles=7

loc_177E:
177E: 1D F6 94 84    MOV:G.W @H'F694, R4 ; refs ram_F694 in on_chip_ram; cycles=7
1782: 1D F6 B4 34    SUB.W @H'F6B4, R4 ; refs ram_F6B4 in on_chip_ram; cycles=7
1786: 5B 00 C5       MOV:I.W #H'00C5, R3 ; dataflow R3=H'00C5; cycles=3
1789: 1E 02 16       BSR loc_19A2 ; cycles=14

loc_178C:
178C: 1D F6 94 84    MOV:G.W @H'F694, R4 ; refs ram_F694 in on_chip_ram; cycles=7
1790: 1D F6 B4 94    MOV:G.W R4, @H'F6B4 ; refs ram_F6B4 in on_chip_ram; cycles=7
1794: 19             RTS ; cycles=12

loc_1795:
1795: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
179A: 22 24          BHI loc_17C0 ; cycles=3/7 nt/t
179C: 1D E1 72 FD    BTST.W #13, @H'E172 ; refs mem_E172 in program_or_external; cycles=7
17A0: 26 05          BNE loc_17A7 ; cycles=3/7 nt/t
17A2: 1E 09 82       BSR loc_2127 ; cycles=13
17A5: 20 19          BRA loc_17C0 ; cycles=8

loc_17A7:
17A7: 1D E2 20 FF    BTST.W #15, @H'E220 ; refs mem_E220 in program_or_external; cycles=6
17AB: 27 05          BEQ loc_17B2 ; cycles=3/8 nt/t
17AD: 1E 09 77       BSR loc_2127 ; cycles=14
17B0: 20 0E          BRA loc_17C0 ; cycles=7

loc_17B2:
17B2: 1D F6 92 84    MOV:G.W @H'F692, R4 ; refs ram_F692 in on_chip_ram; cycles=7
17B6: 1D F6 B2 34    SUB.W @H'F6B2, R4 ; refs ram_F6B2 in on_chip_ram; cycles=7
17BA: 5B 00 BC       MOV:I.W #H'00BC, R3 ; dataflow R3=H'00BC; cycles=3
17BD: 1E 01 E2       BSR loc_19A2 ; cycles=14

loc_17C0:
17C0: 1D F6 92 84    MOV:G.W @H'F692, R4 ; refs ram_F692 in on_chip_ram; cycles=7
17C4: 1D F6 B2 94    MOV:G.W R4, @H'F6B2 ; refs ram_F6B2 in on_chip_ram; cycles=7
17C8: 19             RTS ; cycles=12

loc_17C9:
17C9: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
17CE: 22 22          BHI loc_17F2 ; cycles=3/7 nt/t
17D0: 1D E1 26 FC    BTST.W #12, @H'E126 ; refs mem_E126 in program_or_external; cycles=7
17D4: 27 1C          BEQ loc_17F2 ; cycles=3/7 nt/t
17D6: 1D F6 AE 84    MOV:G.W @H'F6AE, R4 ; refs ram_F6AE in on_chip_ram; cycles=7
17DA: 1D F6 CE 34    SUB.W @H'F6CE, R4 ; refs ram_F6CE in on_chip_ram; cycles=7
17DE: 5B 00 A3       MOV:I.W #H'00A3, R3 ; dataflow R3=H'00A3; cycles=3
17E1: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
17E5: 27 08          BEQ loc_17EF ; cycles=3/8 nt/t
17E7: 15 F4 04 F3    BTST.B #3, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
17EB: 27 02          BEQ loc_17EF ; cycles=3/8 nt/t
17ED: AB CE          BSET.W #14, R3 ; cycles=3

loc_17EF:
17EF: 1E 01 B0       BSR loc_19A2 ; cycles=14

loc_17F2:
17F2: 1D F6 AE 84    MOV:G.W @H'F6AE, R4 ; refs ram_F6AE in on_chip_ram; cycles=7
17F6: 1D F6 CE 94    MOV:G.W R4, @H'F6CE ; refs ram_F6CE in on_chip_ram; cycles=7
17FA: 19             RTS ; cycles=12

loc_17FB:
17FB: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
1800: 22 22          BHI loc_1824 ; cycles=3/7 nt/t
1802: 1D E1 26 FC    BTST.W #12, @H'E126 ; refs mem_E126 in program_or_external; cycles=7
1806: 27 1C          BEQ loc_1824 ; cycles=3/7 nt/t
1808: 1D F6 AC 84    MOV:G.W @H'F6AC, R4 ; refs ram_F6AC in on_chip_ram; cycles=7
180C: 1D F6 CC 34    SUB.W @H'F6CC, R4 ; refs ram_F6CC in on_chip_ram; cycles=7
1810: 5B 00 A4       MOV:I.W #H'00A4, R3 ; dataflow R3=H'00A4; cycles=3
1813: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
1817: 27 08          BEQ loc_1821 ; cycles=3/8 nt/t
1819: 15 F4 04 F3    BTST.B #3, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
181D: 27 02          BEQ loc_1821 ; cycles=3/8 nt/t
181F: AB CE          BSET.W #14, R3 ; cycles=3

loc_1821:
1821: 1E 01 7E       BSR loc_19A2 ; cycles=14

loc_1824:
1824: 1D F6 AC 84    MOV:G.W @H'F6AC, R4 ; refs ram_F6AC in on_chip_ram; cycles=7
1828: 1D F6 CC 94    MOV:G.W R4, @H'F6CC ; refs ram_F6CC in on_chip_ram; cycles=7
182C: 19             RTS ; cycles=12

loc_182D:
182D: 15 F7 17 F2    BTST.B #2, @H'F717 ; refs ram_F717 in on_chip_ram; cycles=6
1831: 26 32          BNE loc_1865 ; cycles=3/8 nt/t
1833: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
1838: 22 22          BHI loc_185C ; cycles=3/7 nt/t
183A: 1D E1 26 F5    BTST.W #5, @H'E126 ; refs mem_E126 in program_or_external; cycles=7
183E: 27 1C          BEQ loc_185C ; cycles=3/7 nt/t
1840: 1D F6 AA 84    MOV:G.W @H'F6AA, R4 ; refs ram_F6AA in on_chip_ram; cycles=7
1844: 1D F6 CA 34    SUB.W @H'F6CA, R4 ; refs ram_F6CA in on_chip_ram; cycles=7
1848: 5B 00 A5       MOV:I.W #H'00A5, R3 ; dataflow R3=H'00A5; cycles=3
184B: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
184F: 27 08          BEQ loc_1859 ; cycles=3/8 nt/t
1851: 15 F4 04 F2    BTST.B #2, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
1855: 27 02          BEQ loc_1859 ; cycles=3/8 nt/t
1857: AB CE          BSET.W #14, R3 ; cycles=3

loc_1859:
1859: 1E 01 46       BSR loc_19A2 ; cycles=14

loc_185C:
185C: 1D F6 AA 84    MOV:G.W @H'F6AA, R4 ; refs ram_F6AA in on_chip_ram; cycles=7
1860: 1D F6 CA 94    MOV:G.W R4, @H'F6CA ; refs ram_F6CA in on_chip_ram; cycles=7
1864: 19             RTS ; cycles=12

loc_1865:
1865: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
186A: 22 1C          BHI loc_1888 ; cycles=3/7 nt/t
186C: 1D F6 AA 84    MOV:G.W @H'F6AA, R4 ; refs ram_F6AA in on_chip_ram; cycles=7
1870: 1D F6 CA 34    SUB.W @H'F6CA, R4 ; refs ram_F6CA in on_chip_ram; cycles=7
1874: 5B 00 D8       MOV:I.W #H'00D8, R3 ; dataflow R3=H'00D8; cycles=3
1877: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
187B: 27 08          BEQ loc_1885 ; cycles=3/8 nt/t
187D: 15 F4 04 F1    BTST.B #1, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
1881: 27 02          BEQ loc_1885 ; cycles=3/8 nt/t
1883: AB CE          BSET.W #14, R3 ; cycles=3

loc_1885:
1885: 1E 01 1A       BSR loc_19A2 ; cycles=14

loc_1888:
1888: 1D F6 AA 84    MOV:G.W @H'F6AA, R4 ; refs ram_F6AA in on_chip_ram; cycles=7
188C: 1D F6 CA 94    MOV:G.W R4, @H'F6CA ; refs ram_F6CA in on_chip_ram; cycles=7
1890: 19             RTS ; cycles=12

loc_1891:
1891: 15 F7 17 F2    BTST.B #2, @H'F717 ; refs ram_F717 in on_chip_ram; cycles=6
1895: 26 24          BNE loc_18BB ; cycles=3/8 nt/t
1897: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
189C: 22 14          BHI loc_18B2 ; cycles=3/7 nt/t
189E: 1D E1 26 F5    BTST.W #5, @H'E126 ; refs mem_E126 in program_or_external; cycles=7
18A2: 27 0E          BEQ loc_18B2 ; cycles=3/7 nt/t
18A4: 1D F6 A8 84    MOV:G.W @H'F6A8, R4 ; refs ram_F6A8 in on_chip_ram; cycles=7
18A8: 1D F6 C8 34    SUB.W @H'F6C8, R4 ; refs ram_F6C8 in on_chip_ram; cycles=7
18AC: 5B 00 80       MOV:I.W #H'0080, R3 ; dataflow R3=H'0080; cycles=3
18AF: 1E 00 F0       BSR loc_19A2 ; cycles=14

loc_18B2:
18B2: 1D F6 A8 84    MOV:G.W @H'F6A8, R4 ; refs ram_F6A8 in on_chip_ram; cycles=7
18B6: 1D F6 C8 94    MOV:G.W R4, @H'F6C8 ; refs ram_F6C8 in on_chip_ram; cycles=7
18BA: 19             RTS ; cycles=12

loc_18BB:
18BB: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
18C0: 22 1C          BHI loc_18DE ; cycles=3/7 nt/t
18C2: 1D F6 A8 84    MOV:G.W @H'F6A8, R4 ; refs ram_F6A8 in on_chip_ram; cycles=7
18C6: 1D F6 C8 34    SUB.W @H'F6C8, R4 ; refs ram_F6C8 in on_chip_ram; cycles=7
18CA: 5B 00 D9       MOV:I.W #H'00D9, R3 ; dataflow R3=H'00D9; cycles=3
18CD: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
18D1: 27 08          BEQ loc_18DB ; cycles=3/8 nt/t
18D3: 15 F4 04 F1    BTST.B #1, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
18D7: 27 02          BEQ loc_18DB ; cycles=3/8 nt/t
18D9: AB CE          BSET.W #14, R3 ; cycles=3

loc_18DB:
18DB: 1E 00 C4       BSR loc_19A2 ; cycles=14

loc_18DE:
18DE: 1D F6 A8 84    MOV:G.W @H'F6A8, R4 ; refs ram_F6A8 in on_chip_ram; cycles=7
18E2: 1D F6 C8 94    MOV:G.W R4, @H'F6C8 ; refs ram_F6C8 in on_chip_ram; cycles=7
18E6: 19             RTS ; cycles=12

loc_18E7:
18E7: 15 F7 17 F2    BTST.B #2, @H'F717 ; refs ram_F717 in on_chip_ram; cycles=6
18EB: 26 32          BNE loc_191F ; cycles=3/8 nt/t
18ED: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
18F2: 22 22          BHI loc_1916 ; cycles=3/7 nt/t
18F4: 1D E1 26 F5    BTST.W #5, @H'E126 ; refs mem_E126 in program_or_external; cycles=7
18F8: 27 1C          BEQ loc_1916 ; cycles=3/7 nt/t
18FA: 1D F6 A6 84    MOV:G.W @H'F6A6, R4 ; refs ram_F6A6 in on_chip_ram; cycles=7
18FE: 1D F6 C6 34    SUB.W @H'F6C6, R4 ; refs ram_F6C6 in on_chip_ram; cycles=7
1902: 5B 00 A6       MOV:I.W #H'00A6, R3 ; dataflow R3=H'00A6; cycles=3
1905: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
1909: 27 08          BEQ loc_1913 ; cycles=3/8 nt/t
190B: 15 F4 04 F2    BTST.B #2, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
190F: 27 02          BEQ loc_1913 ; cycles=3/8 nt/t
1911: AB CE          BSET.W #14, R3 ; cycles=3

loc_1913:
1913: 1E 00 8C       BSR loc_19A2 ; cycles=14

loc_1916:
1916: 1D F6 A6 84    MOV:G.W @H'F6A6, R4 ; refs ram_F6A6 in on_chip_ram; cycles=7
191A: 1D F6 C6 94    MOV:G.W R4, @H'F6C6 ; refs ram_F6C6 in on_chip_ram; cycles=7
191E: 19             RTS ; cycles=12

loc_191F:
191F: 15 F7 31 04 02 CMP:G.B #H'02, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
1924: 22 1B          BHI loc_1941 ; cycles=3/7 nt/t
1926: 1D F6 A6 84    MOV:G.W @H'F6A6, R4 ; refs ram_F6A6 in on_chip_ram; cycles=7
192A: 1D F6 C6 34    SUB.W @H'F6C6, R4 ; refs ram_F6C6 in on_chip_ram; cycles=7
192E: 5B 00 DA       MOV:I.W #H'00DA, R3 ; dataflow R3=H'00DA; cycles=3
1931: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
1935: 27 08          BEQ loc_193F ; cycles=3/8 nt/t
1937: 15 F4 04 F1    BTST.B #1, @H'F404 ; refs mem_F404 in program_or_external; cycles=6
193B: 27 02          BEQ loc_193F ; cycles=3/8 nt/t
193D: AB CE          BSET.W #14, R3 ; cycles=3

loc_193F:
193F: 0E 61          BSR loc_19A2 ; cycles=14

loc_1941:
1941: 1D F6 A6 84    MOV:G.W @H'F6A6, R4 ; refs ram_F6A6 in on_chip_ram; cycles=6
1945: 1D F6 C6 94    MOV:G.W R4, @H'F6C6 ; refs ram_F6C6 in on_chip_ram; cycles=6
1949: 19             RTS ; cycles=13

loc_194A:
194A: 15 F7 31 04 03 CMP:G.B #H'03, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=7
194F: 22 1F          BHI loc_1970 ; cycles=3/8 nt/t
1951: 1D F6 A4 84    MOV:G.W @H'F6A4, R4 ; refs ram_F6A4 in on_chip_ram; cycles=6
1955: 1D F6 C4 34    SUB.W @H'F6C4, R4 ; refs ram_F6C4 in on_chip_ram; cycles=6
1959: 15 FE 8E F4    BTST.B #4, @P7DR ; refs P7DR in register_field; cycles=6
195D: 26 00          BNE loc_195F ; cycles=3/8 nt/t

loc_195F:
195F: 5B 00 80       MOV:I.W #H'0080, R3 ; dataflow R3=H'0080; cycles=3
1962: 15 F7 91 F5    BTST.B #5, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=7
1966: 27 02          BEQ loc_196A ; cycles=3/7 nt/t
1968: AB CE          BSET.W #14, R3 ; cycles=3

loc_196A:
196A: 0E 36          BSR loc_19A2 ; cycles=13
196C: 15 F7 6D C7    BSET.B #7, @H'F76D ; refs ram_F76D in on_chip_ram; cycles=9

loc_1970:
1970: 1D F6 A4 84    MOV:G.W @H'F6A4, R4 ; refs ram_F6A4 in on_chip_ram; cycles=7
1974: 1D F6 C4 94    MOV:G.W R4, @H'F6C4 ; refs ram_F6C4 in on_chip_ram; cycles=7
1978: 19             RTS ; cycles=12

loc_1979:
1979: 15 F7 31 04 03 CMP:G.B #H'03, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
197E: 22 19          BHI loc_1999 ; cycles=3/7 nt/t
1980: 1D F6 A2 80    MOV:G.W @H'F6A2, R0 ; refs ram_F6A2 in on_chip_ram; cycles=7
1984: 1D F6 C2 30    SUB.W @H'F6C2, R0 ; refs ram_F6C2 in on_chip_ram; cycles=7
1988: 1D F6 8C A8    MULXU.W @H'F68C, R0 ; refs ram_F68C in on_chip_ram; cycles=26
198C: 5B 00 81       MOV:I.W #H'0081, R3 ; dataflow R3=H'0081; cycles=3
198F: 15 F7 91 F5    BTST.B #5, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=6
1993: 27 02          BEQ loc_1997 ; cycles=3/8 nt/t
1995: AB CE          BSET.W #14, R3 ; cycles=3

loc_1997:
1997: 0E 42          BSR loc_19DB ; cycles=14

loc_1999:
1999: 1D F6 A2 84    MOV:G.W @H'F6A2, R4 ; refs ram_F6A2 in on_chip_ram; cycles=6
199D: 1D F6 C2 94    MOV:G.W R4, @H'F6C2 ; refs ram_F6C2 in on_chip_ram; cycles=6
19A1: 19             RTS ; cycles=13

loc_19A2:
19A2: AB 85          MOV:G.W R3, R5 ; cycles=3
19A4: 0C 01 FF 53    AND.W #H'01FF, R3 ; cycles=4
19A8: AB 1A          SHLL.W R3 ; cycles=3
19AA: FB E4 00 80    MOV:G.W @(-H'1C00,R3), R0 ; cycles=7
19AE: 48 FC 00       CMP:I #H'FC00, R0 ; cycles=3
19B1: 22 03          BHI loc_19B6 ; cycles=3/8 nt/t
19B3: 58 FE 00       MOV:I.W #H'FE00, R0 ; dataflow R0=H'FE00; cycles=3

loc_19B6:
19B6: A8 15          NOT.W R0 ; cycles=3
19B8: A8 08          ADD:Q.W #1, R0 ; cycles=4
19BA: 4C 00 0F       CMP:I #H'000F, R4 ; cycles=3
19BD: 23 14          BLS loc_19D3 ; cycles=3/8 nt/t
19BF: 4C FF F0       CMP:I #H'FFF0, R4 ; cycles=3
19C2: 24 0F          BCC loc_19D3 ; cycles=3/7 nt/t
19C4: 4C 80 00       CMP:I #H'8000, R4 ; cycles=3
19C7: 24 05          BCC loc_19CE ; cycles=3/8 nt/t
19C9: 5C 00 1A       MOV:I.W #H'001A, R4 ; dataflow R4=H'001A; cycles=3
19CC: 20 09          BRA loc_19D7 ; cycles=7

loc_19CE:
19CE: 5C FF 1C       MOV:I.W #H'FF1C, R4 ; dataflow R4=H'FF1C; cycles=3
19D1: 20 04          BRA loc_19D7 ; cycles=8

loc_19D3:
19D3: F4 1A 25 84    MOV:G.B @(H'1A25,R4), R4 ; cycles=6

loc_19D7:
19D7: AC A8          MULXU.W R4, R0 ; cycles=25
19D9: 20 08          BRA loc_19E3 ; cycles=8

loc_19DB:
19DB: AB 85          MOV:G.W R3, R5 ; cycles=3
19DD: 0C 01 FF 53    AND.W #H'01FF, R3 ; cycles=4
19E1: AB 1A          SHLL.W R3 ; cycles=3

loc_19E3:
19E3: FB E0 00 80    MOV:G.W @(-H'2000,R3), R0 ; cycles=6
19E7: A8 21          ADD:G.W R0, R1 ; cycles=3
19E9: A9 82          MOV:G.W R1, R2 ; cycles=3
19EB: 25 0C          BCS loc_19F9 ; cycles=3/8 nt/t
19ED: A8 32          SUB.W R0, R2 ; cycles=3
19EF: 4A 80 00       CMP:I #H'8000, R2 ; cycles=3
19F2: 23 0F          BLS loc_1A03 ; cycles=3/7 nt/t
19F4: 59 00 00       MOV:I.W #H'0000, R1 ; dataflow R1=H'0000; cycles=3
19F7: 20 0A          BRA loc_1A03 ; cycles=8

loc_19F9:
19F9: AA 30          SUB.W R2, R0 ; cycles=3
19FB: 48 80 00       CMP:I #H'8000, R0 ; cycles=3
19FE: 23 03          BLS loc_1A03 ; cycles=3/7 nt/t
1A00: 59 FF FF       MOV:I.W #H'FFFF, R1 ; dataflow R1=H'FFFF; cycles=3

loc_1A03:
1A03: FB E0 00 71    CMP:G.W @(-H'2000,R3), R1 ; cycles=6
1A07: 27 0B          BEQ loc_1A14 ; cycles=3/8 nt/t
1A09: FB E8 00 91    MOV:G.W R1, @(-H'1800,R3) ; cycles=6
1A0D: 52 80          MOV:E.B #H'80, R2 ; dataflow R2=H'80; cycles=2
1A0F: AD 83          MOV:G.W R5, R3 ; cycles=3
1A11: 1E 24 40       BSR loc_3E54 ; cycles=14

loc_1A14:
1A14: 19             RTS ; cycles=12

loc_1A35:
1A35: AB 85          MOV:G.W R3, R5 ; cycles=3
1A37: 0C 01 FF 53    AND.W #H'01FF, R3 ; cycles=4
1A3B: AB 1A          SHLL.W R3 ; cycles=3
1A3D: FB E0 00 80    MOV:G.W @(-H'2000,R3), R0 ; cycles=6
1A41: 27 3A          BEQ loc_1A7D ; cycles=3/8 nt/t
1A43: 0E 48          BSR loc_1A8D ; cycles=14

loc_1A45:
1A45: AC 16          TST.W R4 ; cycles=3
1A47: 26 10          BNE loc_1A59 ; cycles=3/8 nt/t
1A49: A8 82          MOV:G.W R0, R2 ; cycles=3

loc_1A4B:
1A4B: FB E4 00 81    MOV:G.W @(-H'1C00,R3), R1 ; cycles=6
1A4F: A8 1B          SHLR.W R0 ; cycles=3
1A51: 27 16          BEQ loc_1A69 ; cycles=3/8 nt/t
1A53: A8 51          AND.W R0, R1 ; cycles=3
1A55: 27 F4          BEQ loc_1A4B ; cycles=3/8 nt/t
1A57: 20 12          BRA loc_1A6B ; cycles=8

loc_1A59:
1A59: A8 82          MOV:G.W R0, R2 ; cycles=3

loc_1A5B:
1A5B: FB E4 00 81    MOV:G.W @(-H'1C00,R3), R1 ; cycles=6
1A5F: A8 1A          SHLL.W R0 ; cycles=3
1A61: 27 06          BEQ loc_1A69 ; cycles=3/8 nt/t
1A63: A8 51          AND.W R0, R1 ; cycles=3
1A65: 27 F4          BEQ loc_1A5B ; cycles=3/8 nt/t
1A67: 20 02          BRA loc_1A6B ; cycles=8

loc_1A69:
1A69: AA 80          MOV:G.W R2, R0 ; cycles=3

loc_1A6B:
1A6B: FB E0 00 70    CMP:G.W @(-H'2000,R3), R0 ; cycles=6
1A6F: 27 0B          BEQ loc_1A7C ; cycles=3/8 nt/t
1A71: FB E8 00 90    MOV:G.W R0, @(-H'1800,R3) ; cycles=6
1A75: 52 80          MOV:E.B #H'80, R2 ; dataflow R2=H'80; cycles=2
1A77: AD 83          MOV:G.W R5, R3 ; cycles=3
1A79: 1E 23 D8       BSR loc_3E54 ; cycles=14

loc_1A7C:
1A7C: 19             RTS ; cycles=12

loc_1A7D:
1A7D: A8 CF          BSET.W #15, R0 ; cycles=3

loc_1A7F:
1A7F: A8 81          MOV:G.W R0, R1 ; cycles=3
1A81: FB E4 00 51    AND.W @(-H'1C00,R3), R1 ; cycles=6
1A85: 26 04          BNE loc_1A8B ; cycles=3/8 nt/t
1A87: A8 1B          SHLR.W R0 ; cycles=3
1A89: 20 F4          BRA loc_1A7F ; cycles=8

loc_1A8B:
1A8B: 20 B8          BRA loc_1A45 ; cycles=8

loc_1A8D:
1A8D: 59 00 0F       MOV:I.W #H'000F, R1 ; dataflow R1=H'000F; cycles=3

loc_1A90:
1A90: A8 79          BTST.W R1, R0 ; cycles=3
1A92: 26 03          BNE loc_1A97 ; cycles=3/7 nt/t
1A94: 01 B9 F9       SCB/F R1, loc_1A90 ; cycles=3/4/8 false/-1/t

loc_1A97:
1A97: A8 13          CLR.W R0 ; dataflow R0=H'0000; cycles=3
1A99: A8 49          BSET.W R1, R0 ; cycles=3
1A9B: 19             RTS ; cycles=13

loc_1A9C:
1A9C: AB 16          TST.W R3 ; cycles=3
1A9E: 27 32          BEQ loc_1AD2 ; cycles=3/7 nt/t
1AA0: AB 1A          SHLL.W R3 ; cycles=3
1AA2: 15 F7 33 80    MOV:G.B @H'F733, R0 ; refs ram_F733 in on_chip_ram; cycles=7
1AA6: A0 15          NOT.B R0 ; cycles=2
1AA8: 04 0F 50       AND.B #H'0F, R0 ; cycles=3
1AAB: AC 16          TST.W R4 ; cycles=3
1AAD: 26 0D          BNE loc_1ABC ; cycles=3/8 nt/t

loc_1AAF:
1AAF: A0 0C          ADD:Q.B #-1, R0 ; cycles=4
1AB1: 04 0F 50       AND.B #H'0F, R0 ; cycles=3
1AB4: FB E4 00 78    BTST.W R0, @(-H'1C00,R3) ; cycles=7
1AB8: 27 F5          BEQ loc_1AAF ; cycles=3/7 nt/t
1ABA: 20 0B          BRA loc_1AC7 ; cycles=7

loc_1ABC:
1ABC: A0 08          ADD:Q.B #1, R0 ; cycles=4
1ABE: 04 0F 50       AND.B #H'0F, R0 ; cycles=3
1AC1: FB E4 00 78    BTST.W R0, @(-H'1C00,R3) ; cycles=6
1AC5: 27 F5          BEQ loc_1ABC ; cycles=3/8 nt/t

loc_1AC7:
1AC7: A0 15          NOT.B R0 ; cycles=2
1AC9: 04 0F 50       AND.B #H'0F, R0 ; cycles=3
1ACC: 15 F7 33 90    MOV:G.B R0, @H'F733 ; refs ram_F733 in on_chip_ram; cycles=7
1AD0: 20 0E          BRA loc_1AE0 ; cycles=7

loc_1AD2:
1AD2: AC 16          TST.W R4 ; cycles=3
1AD4: 26 06          BNE loc_1ADC ; cycles=3/7 nt/t
1AD6: 15 F7 33 08    ADD:Q.B #1, @H'F733 ; refs ram_F733 in on_chip_ram; cycles=9
1ADA: 20 04          BRA loc_1AE0 ; cycles=7

loc_1ADC:
1ADC: 15 F7 33 0C    ADD:Q.B #-1, @H'F733 ; refs ram_F733 in on_chip_ram; cycles=9

loc_1AE0:
1AE0: 1E 2E 17       BSR loc_48FA ; cycles=13
1AE3: 19             RTS ; cycles=13

loc_1AE4:
1AE4: 15 F7 5B 80    MOV:G.B @H'F75B, R0 ; refs ram_F75B in on_chip_ram; cycles=7
1AE8: A0 12          EXTU.B R0 ; cycles=3
1AEA: F0 F7 5D 81    MOV:G.B @(-H'08A3,R0), R1 ; cycles=7
1AEE: AC 16          TST.W R4 ; cycles=3
1AF0: 26 0A          BNE loc_1AFC ; cycles=3/7 nt/t
1AF2: A1 08          ADD:Q.B #1, R1 ; cycles=4
1AF4: 41 2E          CMP:E #H'2E, R1 ; cycles=2
1AF6: 23 0B          BLS loc_1B03 ; cycles=3/7 nt/t
1AF8: 51 00          MOV:E.B #H'00, R1 ; dataflow R1=H'00; cycles=2
1AFA: 20 07          BRA loc_1B03 ; cycles=7

loc_1AFC:
1AFC: 04 01 31       SUB.B #H'01, R1 ; cycles=3
1AFF: 24 02          BCC loc_1B03 ; cycles=3/8 nt/t
1B01: 51 2E          MOV:E.B #H'2E, R1 ; dataflow R1=H'2E; cycles=2

loc_1B03:
1B03: F0 F7 5D 91    MOV:G.B R1, @(-H'08A3,R0) ; cycles=6
1B07: 1E 2D F0       BSR loc_48FA ; cycles=14
1B0A: 19             RTS ; cycles=12

loc_1B0B:
1B0B: 15 F7 5B 80    MOV:G.B @H'F75B, R0 ; refs ram_F75B in on_chip_ram; cycles=6
1B0F: AC 16          TST.W R4 ; cycles=3
1B11: 26 0A          BNE loc_1B1D ; cycles=3/8 nt/t
1B13: A0 08          ADD:Q.B #1, R0 ; cycles=4
1B15: 40 08          CMP:E #H'08, R0 ; cycles=2
1B17: 23 0C          BLS loc_1B25 ; cycles=3/8 nt/t
1B19: 50 08          MOV:E.B #H'08, R0 ; dataflow R0=H'08; cycles=2
1B1B: 20 08          BRA loc_1B25 ; cycles=8

loc_1B1D:
1B1D: A0 0C          ADD:Q.B #-1, R0 ; cycles=4
1B1F: 40 01          CMP:E #H'01, R0 ; cycles=2
1B21: 24 02          BCC loc_1B25 ; cycles=3/8 nt/t
1B23: 50 01          MOV:E.B #H'01, R0 ; dataflow R0=H'01; cycles=2

loc_1B25:
1B25: 15 F7 5B 90    MOV:G.B R0, @H'F75B ; refs ram_F75B in on_chip_ram; cycles=6
1B29: 1E 2D CE       BSR loc_48FA ; cycles=14
1B2C: 19             RTS ; cycles=12

loc_1B2D:
1B2D: 15 F6 D7 84    MOV:G.B @H'F6D7, R4 ; refs ram_F6D7 in on_chip_ram; cycles=6
1B31: 15 F6 E7 64    XOR.B @H'F6E7, R4 ; refs ram_F6E7 in on_chip_ram; cycles=6
1B35: 5D 00 7E       MOV:I.W #H'007E, R5 ; dataflow R5=H'007E; cycles=3
1B38: 1E 00 D3       BSR loc_1C0E ; cycles=13
1B3B: 15 F6 D7 84    MOV:G.B @H'F6D7, R4 ; refs ram_F6D7 in on_chip_ram; cycles=6
1B3F: 15 F6 E7 94    MOV:G.B R4, @H'F6E7 ; refs ram_F6E7 in on_chip_ram; cycles=6
1B43: 19             RTS ; cycles=13

loc_1B44:
1B44: 15 F6 D6 84    MOV:G.B @H'F6D6, R4 ; refs ram_F6D6 in on_chip_ram; cycles=7
1B48: 15 F6 E6 64    XOR.B @H'F6E6, R4 ; refs ram_F6E6 in on_chip_ram; cycles=7
1B4C: 5D 00 6E       MOV:I.W #H'006E, R5 ; dataflow R5=H'006E; cycles=3
1B4F: 1E 00 BC       BSR loc_1C0E ; cycles=14
1B52: 15 F6 D6 84    MOV:G.B @H'F6D6, R4 ; refs ram_F6D6 in on_chip_ram; cycles=7
1B56: 15 F6 E6 94    MOV:G.B R4, @H'F6E6 ; refs ram_F6E6 in on_chip_ram; cycles=7
1B5A: 19             RTS ; cycles=12

loc_1B5B:
1B5B: 15 F6 D5 84    MOV:G.B @H'F6D5, R4 ; refs ram_F6D5 in on_chip_ram; cycles=6
1B5F: 15 F6 E5 64    XOR.B @H'F6E5, R4 ; refs ram_F6E5 in on_chip_ram; cycles=6
1B63: 5D 00 5E       MOV:I.W #H'005E, R5 ; dataflow R5=H'005E; cycles=3
1B66: 1E 00 A5       BSR loc_1C0E ; cycles=13
1B69: 15 F6 D5 84    MOV:G.B @H'F6D5, R4 ; refs ram_F6D5 in on_chip_ram; cycles=6
1B6D: 15 F6 E5 94    MOV:G.B R4, @H'F6E5 ; refs ram_F6E5 in on_chip_ram; cycles=6
1B71: 19             RTS ; cycles=13

loc_1B72:
1B72: 15 F6 D1 84    MOV:G.B @H'F6D1, R4 ; refs ram_F6D1 in on_chip_ram; cycles=7
1B76: 15 F6 E1 64    XOR.B @H'F6E1, R4 ; refs ram_F6E1 in on_chip_ram; cycles=7
1B7A: 5D 00 1E       MOV:I.W #H'001E, R5 ; dataflow R5=H'001E; cycles=3
1B7D: 1E 00 8E       BSR loc_1C0E ; cycles=14
1B80: 15 F6 D1 84    MOV:G.B @H'F6D1, R4 ; refs ram_F6D1 in on_chip_ram; cycles=7
1B84: 15 F6 E1 94    MOV:G.B R4, @H'F6E1 ; refs ram_F6E1 in on_chip_ram; cycles=7
1B88: 19             RTS ; cycles=12

loc_1B89:
1B89: 15 F6 D0 84    MOV:G.B @H'F6D0, R4 ; refs ram_F6D0 in on_chip_ram; cycles=6
1B8D: 15 F6 E0 64    XOR.B @H'F6E0, R4 ; refs ram_F6E0 in on_chip_ram; cycles=6
1B91: 5D 00 0E       MOV:I.W #H'000E, R5 ; dataflow R5=H'000E; cycles=3
1B94: 1E 00 77       BSR loc_1C0E ; cycles=13
1B97: 15 F6 D0 84    MOV:G.B @H'F6D0, R4 ; refs ram_F6D0 in on_chip_ram; cycles=6
1B9B: 15 F6 E0 94    MOV:G.B R4, @H'F6E0 ; refs ram_F6E0 in on_chip_ram; cycles=6
1B9F: 19             RTS ; cycles=13

loc_1BA0:
1BA0: 15 F6 D4 84    MOV:G.B @H'F6D4, R4 ; refs ram_F6D4 in on_chip_ram; cycles=7
1BA4: 15 F6 E4 64    XOR.B @H'F6E4, R4 ; refs ram_F6E4 in on_chip_ram; cycles=7
1BA8: 5D 00 4E       MOV:I.W #H'004E, R5 ; dataflow R5=H'004E; cycles=3
1BAB: 0E 61          BSR loc_1C0E ; cycles=14
1BAD: 15 F6 D4 84    MOV:G.B @H'F6D4, R4 ; refs ram_F6D4 in on_chip_ram; cycles=6
1BB1: 15 F6 E4 94    MOV:G.B R4, @H'F6E4 ; refs ram_F6E4 in on_chip_ram; cycles=6
1BB5: 19             RTS ; cycles=13

loc_1BB6:
1BB6: 15 F6 D3 84    MOV:G.B @H'F6D3, R4 ; refs ram_F6D3 in on_chip_ram; cycles=7
1BBA: 15 F6 E3 64    XOR.B @H'F6E3, R4 ; refs ram_F6E3 in on_chip_ram; cycles=7
1BBE: 5D 00 3E       MOV:I.W #H'003E, R5 ; dataflow R5=H'003E; cycles=3
1BC1: 0E 4B          BSR loc_1C0E ; cycles=14
1BC3: 15 F6 D3 84    MOV:G.B @H'F6D3, R4 ; refs ram_F6D3 in on_chip_ram; cycles=6
1BC7: 15 F6 E3 94    MOV:G.B R4, @H'F6E3 ; refs ram_F6E3 in on_chip_ram; cycles=6
1BCB: 19             RTS ; cycles=13

loc_1BCC:
1BCC: 15 F6 D2 84    MOV:G.B @H'F6D2, R4 ; refs ram_F6D2 in on_chip_ram; cycles=7
1BD0: 15 F6 E2 64    XOR.B @H'F6E2, R4 ; refs ram_F6E2 in on_chip_ram; cycles=7
1BD4: 5D 00 2E       MOV:I.W #H'002E, R5 ; dataflow R5=H'002E; cycles=3
1BD7: 0E 35          BSR loc_1C0E ; cycles=14
1BD9: 15 F6 D2 84    MOV:G.B @H'F6D2, R4 ; refs ram_F6D2 in on_chip_ram; cycles=6
1BDD: 15 F6 E2 94    MOV:G.B R4, @H'F6E2 ; refs ram_F6E2 in on_chip_ram; cycles=6
1BE1: 19             RTS ; cycles=13

loc_1BE2:
1BE2: 15 F6 DC 84    MOV:G.B @H'F6DC, R4 ; refs ram_F6DC in on_chip_ram; cycles=7
1BE6: 15 F6 EC 64    XOR.B @H'F6EC, R4 ; refs ram_F6EC in on_chip_ram; cycles=7
1BEA: 5D 00 CE       MOV:I.W #H'00CE, R5 ; dataflow R5=H'00CE; cycles=3
1BED: 0E 1F          BSR loc_1C0E ; cycles=14
1BEF: 15 F6 DC 84    MOV:G.B @H'F6DC, R4 ; refs ram_F6DC in on_chip_ram; cycles=6
1BF3: 15 F6 EC 94    MOV:G.B R4, @H'F6EC ; refs ram_F6EC in on_chip_ram; cycles=6
1BF7: 19             RTS ; cycles=13

loc_1BF8:
1BF8: 15 F6 DB 84    MOV:G.B @H'F6DB, R4 ; refs ram_F6DB in on_chip_ram; cycles=7
1BFC: 15 F6 EB 64    XOR.B @H'F6EB, R4 ; refs ram_F6EB in on_chip_ram; cycles=7
1C00: 5D 00 BE       MOV:I.W #H'00BE, R5 ; dataflow R5=H'00BE; cycles=3
1C03: 0E 09          BSR loc_1C0E ; cycles=14
1C05: 15 F6 DB 84    MOV:G.B @H'F6DB, R4 ; refs ram_F6DB in on_chip_ram; cycles=6
1C09: 15 F6 EB 94    MOV:G.B R4, @H'F6EB ; refs ram_F6EB in on_chip_ram; cycles=6
1C0D: 19             RTS ; cycles=13

loc_1C0E:
1C0E: A4 1A          SHLL.B R4 ; cycles=2
1C10: 24 0A          BCC loc_1C1C ; cycles=3/7 nt/t
1C12: FD 27 06 80    MOV:G.W @(H'2706,R5), R0 ; cycles=7
1C16: 12 30          STM.W {R4,R5}, @-SP ; cycles=12
1C18: 11 D8          JSR @R0 ; JSR @R0 uses R0; target not resolved; cycles=13
1C1A: 02 30          LDM.W @SP+, {R4,R5} ; cycles=14

loc_1C1C:
1C1C: A4 16          TST.B R4 ; cycles=2
1C1E: 27 04          BEQ loc_1C24 ; cycles=3/7 nt/t
1C20: AD 0D          ADD:Q.W #-2, R5 ; cycles=4
1C22: 20 EA          BRA loc_1C0E ; cycles=7

loc_1C24:
1C24: 19             RTS ; cycles=12

loc_2127:
2127: 15 FB 03 C7    BSET.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=8
212B: 26 08          BNE loc_2135 ; cycles=3/8 nt/t
212D: 1D F7 32 81    MOV:G.W @H'F732, R1 ; refs ram_F732 in on_chip_ram; cycles=6
2131: 1D F7 34 91    MOV:G.W R1, @H'F734 ; refs ram_F734 in on_chip_ram; cycles=6

loc_2135:
2135: 1D F7 32 07 1C 03 MOV:G.W #H'1C03, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=9
213B: 15 FB 02 06 14 MOV:G.B #H'14, @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
2140: 1E 27 B7       BSR loc_48FA ; cycles=13
2143: 19             RTS ; cycles=13

loc_2650:
2650: 15 F6 F6 D5    BCLR.B #5, @H'F6F6 ; refs ram_F6F6 in on_chip_ram; cycles=9
2654: 37 00 68       BEQ loc_26BF ; cycles=3/7 nt/t
2657: 1D E1 24 80    MOV:G.W @H'E124, R0 ; refs mem_E124 in program_or_external; cycles=6
265B: A8 1A          SHLL.W R0 ; cycles=3
265D: A0 10          SWAP.B R0 ; cycles=3
265F: 15 F6 F6 F6    BTST.B #6, @H'F6F6 ; refs ram_F6F6 in on_chip_ram; cycles=6
2663: 26 08          BNE loc_266D ; cycles=3/8 nt/t
2665: A0 08          ADD:Q.B #1, R0 ; cycles=4
2667: 24 1A          BCC loc_2683 ; cycles=3/8 nt/t
2669: 50 FF          MOV:E.B #H'FF, R0 ; dataflow R0=H'FF; cycles=2
266B: 20 16          BRA loc_2683 ; cycles=8

loc_266D:
266D: A0 0C          ADD:Q.B #-1, R0 ; cycles=4
266F: 1D E0 04 FD    BTST.W #13, @H'E004 ; refs mem_E004 in program_or_external; cycles=6
2673: 26 08          BNE loc_267D ; cycles=3/8 nt/t
2675: 40 49          CMP:E #H'49, R0 ; cycles=2
2677: 24 0A          BCC loc_2683 ; cycles=3/8 nt/t
2679: 50 49          MOV:E.B #H'49, R0 ; dataflow R0=H'49; cycles=2
267B: 20 06          BRA loc_2683 ; cycles=8

loc_267D:
267D: 40 16          CMP:E #H'16, R0 ; cycles=2
267F: 24 02          BCC loc_2683 ; cycles=3/8 nt/t
2681: 50 16          MOV:E.B #H'16, R0 ; dataflow R0=H'16; cycles=2

loc_2683:
2683: A0 12          EXTU.B R0 ; cycles=3
2685: A0 10          SWAP.B R0 ; cycles=3
2687: A8 1B          SHLR.W R0 ; cycles=3
2689: A8 CF          BSET.W #15, R0 ; cycles=3
268B: 1D E1 24 70    CMP:G.W @H'E124, R0 ; refs mem_E124 in program_or_external; cycles=6
268F: 27 2E          BEQ loc_26BF ; cycles=3/8 nt/t
2691: 1D E9 24 90    MOV:G.W R0, @H'E924 ; refs mem_E924 in program_or_external; cycles=6
2695: 52 80          MOV:E.B #H'80, R2 ; dataflow R2=H'80; cycles=2
2697: 5B 00 92       MOV:I.W #H'0092, R3 ; dataflow R3=H'0092; cycles=3
269A: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=7
269E: 27 08          BEQ loc_26A8 ; cycles=3/7 nt/t
26A0: 15 F4 04 F4    BTST.B #4, @H'F404 ; refs mem_F404 in program_or_external; cycles=7
26A4: 27 02          BEQ loc_26A8 ; cycles=3/7 nt/t
26A6: AB CE          BSET.W #14, R3 ; cycles=3

loc_26A8:
26A8: 1E 17 A9       BSR loc_3E54 ; cycles=13
26AB: 15 F6 F6 C0    BSET.B #0, @H'F6F6 ; refs ram_F6F6 in on_chip_ram; cycles=8
26AF: 26 08          BNE loc_26B9 ; cycles=3/8 nt/t
26B1: 1D F6 F4 07 07 D0 MOV:G.W #H'07D0, @H'F6F4 ; refs ram_F6F4 in on_chip_ram; cycles=9
26B7: 20 06          BRA loc_26BF ; cycles=8

loc_26B9:
26B9: 1D F6 F4 07 00 C8 MOV:G.W #H'00C8, @H'F6F4 ; refs ram_F6F4 in on_chip_ram; cycles=9

loc_26BF:
26BF: 19             RTS ; cycles=13

loc_2806:
2806: 15 F9 B9 81    MOV:G.B @H'F9B9, R1 ; refs ram_F9B9 in on_chip_ram; cycles=7
280A: A1 12          EXTU.B R1 ; cycles=3
280C: 15 F9 B4 71    CMP:G.B @H'F9B4, R1 ; refs ram_F9B4 in on_chip_ram; cycles=7
2810: 26 03          BNE loc_2815 ; cycles=3/7 nt/t
2812: 30 04 91       BRA loc_2CA6 ; cycles=7

loc_2815:
2815: A9 80          MOV:G.W R1, R0 ; cycles=3
2817: A8 1A          SHLL.W R0 ; cycles=3
2819: F8 F9 70 80    MOV:G.W @(-H'0690,R0), R0 ; cycles=6
281D: A1 08          ADD:Q.B #1, R1 ; cycles=4
281F: 04 1F 51       AND.B #H'1F, R1 ; cycles=3
2822: 15 F9 B9 91    MOV:G.B R1, @H'F9B9 ; refs ram_F9B9 in on_chip_ram; cycles=7
2826: 0C 01 FF 50    AND.W #H'01FF, R0 ; cycles=4
282A: A8 85          MOV:G.W R0, R5 ; cycles=3
282C: 1E 39 D7       BSR loc_6206 ; cycles=13
282F: A8 84          MOV:G.W R0, R4 ; cycles=3
2831: AC 1A          SHLL.W R4 ; cycles=3
2833: A8 16          TST.W R0 ; cycles=3
2835: 27 68          BEQ loc_289F ; cycles=3/8 nt/t
2837: 1D F7 36 81    MOV:G.W @H'F736, R1 ; refs ram_F736 in on_chip_ram; cycles=6
283B: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
283F: A9 70          CMP:G.W R1, R0 ; cycles=3
2841: 37 04 67       BEQ loc_2CAB ; cycles=3/8 nt/t
2844: 1D F7 38 81    MOV:G.W @H'F738, R1 ; refs ram_F738 in on_chip_ram; cycles=7
2848: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
284C: A9 70          CMP:G.W R1, R0 ; cycles=3
284E: 37 04 5A       BEQ loc_2CAB ; cycles=3/7 nt/t
2851: 1D F7 3A 81    MOV:G.W @H'F73A, R1 ; refs ram_F73A in on_chip_ram; cycles=6
2855: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
2859: A9 70          CMP:G.W R1, R0 ; cycles=3
285B: 37 04 4D       BEQ loc_2CAB ; cycles=3/8 nt/t
285E: 1D F7 3C 81    MOV:G.W @H'F73C, R1 ; refs ram_F73C in on_chip_ram; cycles=7
2862: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
2866: A9 70          CMP:G.W R1, R0 ; cycles=3
2868: 37 04 40       BEQ loc_2CAB ; cycles=3/7 nt/t
286B: 1D F7 3E 81    MOV:G.W @H'F73E, R1 ; refs ram_F73E in on_chip_ram; cycles=6
286F: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
2873: A9 70          CMP:G.W R1, R0 ; cycles=3
2875: 37 04 33       BEQ loc_2CAB ; cycles=3/8 nt/t
2878: 1D F7 40 81    MOV:G.W @H'F740, R1 ; refs ram_F740 in on_chip_ram; cycles=7
287C: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
2880: A9 70          CMP:G.W R1, R0 ; cycles=3
2882: 37 04 26       BEQ loc_2CAB ; cycles=3/7 nt/t
2885: 1D F7 42 81    MOV:G.W @H'F742, R1 ; refs ram_F742 in on_chip_ram; cycles=6
2889: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
288D: A9 70          CMP:G.W R1, R0 ; cycles=3
288F: 37 04 19       BEQ loc_2CAB ; cycles=3/8 nt/t
2892: 1D F7 54 81    MOV:G.W @H'F754, R1 ; refs ram_F754 in on_chip_ram; cycles=7
2896: 0C 01 FF 51    AND.W #H'01FF, R1 ; cycles=4
289A: A9 70          CMP:G.W R1, R0 ; cycles=3
289C: 37 04 0C       BEQ loc_2CAB ; cycles=3/7 nt/t

loc_289F:
289F: FC 28 A6 81    MOV:G.W @(H'28A6,R4), R1 ; cycles=6
28A3: 11 D1          JMP @R1 ; JMP @R1 uses R1 loaded from pointer table H'28A6 via R4 (103/128 decoded targets); cycles=7

loc_2CA6:
2CA6: 15 F7 69 D7    BCLR.B #7, @H'F769 ; refs ram_F769 in on_chip_ram; cycles=9
2CAA: 19             RTS ; cycles=12

loc_2CAB:
2CAB: 12 31          STM.W {R0,R4,R5}, @-SP ; cycles=15
2CAD: 1E 1C 4A       BSR loc_48FA ; cycles=14
2CB0: 02 31          LDM.W @SP+, {R0,R4,R5} ; cycles=18
2CB2: 15 F7 69 C7    BSET.B #7, @H'F769 ; refs ram_F769 in on_chip_ram; cycles=9
2CB6: 30 FB E6       BRA loc_289F ; cycles=7

loc_3930:
3930: 58 00 07       MOV:I.W #H'0007, R0 ; dataflow R0=H'0007; cycles=3

loc_3933:
3933: 15 FE 8E 78    BTST.B R0, @P7DR ; refs P7DR in register_field; cycles=6
3937: 27 0A          BEQ loc_3943 ; cycles=3/8 nt/t
3939: F0 F6 80 1A    SHLL.B @(-H'0980,R0) ; cycles=8
393D: F0 F6 80 C0    BSET.B #0, @(-H'0980,R0) ; cycles=8
3941: 20 04          BRA loc_3947 ; cycles=8

loc_3943:
3943: F0 F6 80 1A    SHLL.B @(-H'0980,R0) ; cycles=8

loc_3947:
3947: F0 F6 80 04 FF CMP:G.B #H'FF, @(-H'0980,R0) ; cycles=6
394C: 26 06          BNE loc_3954 ; cycles=3/7 nt/t
394E: 15 F6 88 48    BSET.B R0, @H'F688 ; refs ram_F688 in on_chip_ram; cycles=9
3952: 20 0B          BRA loc_395F ; cycles=7

loc_3954:
3954: F0 F6 80 04 00 CMP:G.B #H'00, @(-H'0980,R0) ; cycles=7
3959: 26 04          BNE loc_395F ; cycles=3/8 nt/t
395B: 15 F6 88 58    BCLR.B R0, @H'F688 ; refs ram_F688 in on_chip_ram; cycles=8

loc_395F:
395F: 01 B8 D1       SCB/F R0, loc_3933 ; cycles=3/4/9 false/-1/t
3962: 15 F7 22 08    ADD:Q.B #1, @H'F722 ; refs ram_F722 in on_chip_ram; cycles=9
3966: 15 F7 22 04 3C CMP:G.B #H'3C, @H'F722 ; refs ram_F722 in on_chip_ram; cycles=7
396B: 27 0F          BEQ loc_397C ; cycles=3/8 nt/t
396D: 15 F7 22 04 78 CMP:G.B #H'78, @H'F722 ; refs ram_F722 in on_chip_ram; cycles=6
3972: 27 0B          BEQ loc_397F ; cycles=3/7 nt/t
3974: 15 F7 22 04 B4 CMP:G.B #H'B4, @H'F722 ; refs ram_F722 in on_chip_ram; cycles=7
3979: 27 08          BEQ loc_3983 ; cycles=3/8 nt/t
397B: 19             RTS ; cycles=13

loc_397C:
397C: 0E 17          BSR loc_3995 ; cycles=13
397E: 19             RTS ; cycles=12

loc_397F:
397F: 1E 00 AC       BSR loc_3A2E ; cycles=14
3982: 19             RTS ; cycles=12

loc_3983:
3983: 0E 05          BSR loc_398A ; cycles=14
3985: 15 F7 22 13    CLR.B @H'F722 ; refs ram_F722 in on_chip_ram; cycles=8
3989: 19             RTS ; cycles=13

loc_398A:
398A: 15 FE E8 F7    BTST.B #7, @ADCSR ; refs ADCSR in register_field; cycles=7
398E: 26 04          BNE loc_3994 ; cycles=3/7 nt/t
3990: 15 FE E8 C5    BSET.B #5, @ADCSR ; set ADST (bit 5) of ADCSR; cycles=9

loc_3994:
3994: 19             RTS ; cycles=12

loc_3995:
3995: 15 F7 20 16    TST.B @H'F720 ; refs ram_F720 in on_chip_ram; cycles=6
3999: 36 00 91       BNE loc_3A2D ; cycles=3/8 nt/t
399C: 15 F1 01 06 A0 MOV:G.B #H'A0, @H'F101 ; refs mem_F101 in program_or_external; cycles=9
39A1: 15 F1 00 F1    BTST.B #1, @H'F100 ; refs mem_F100 in program_or_external; cycles=6
39A5: 37 00 85       BEQ loc_3A2D ; cycles=3/8 nt/t
39A8: 15 F7 1B 80    MOV:G.B @H'F71B, R0 ; refs ram_F71B in on_chip_ram; cycles=7
39AC: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=7
39B0: 15 F7 13 50    AND.B @H'F713, R0 ; refs ram_F713 in on_chip_ram; cycles=7
39B4: 15 F1 02 90    MOV:G.B R0, @H'F102 ; refs mem_F102 in program_or_external; cycles=7
39B8: 15 F7 1A 80    MOV:G.B @H'F71A, R0 ; refs ram_F71A in on_chip_ram; cycles=7
39BC: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=7
39C0: 15 F7 12 50    AND.B @H'F712, R0 ; refs ram_F712 in on_chip_ram; cycles=7
39C4: 15 F1 03 90    MOV:G.B R0, @H'F103 ; refs mem_F103 in program_or_external; cycles=7
39C8: 15 F7 19 80    MOV:G.B @H'F719, R0 ; refs ram_F719 in on_chip_ram; cycles=7
39CC: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=7
39D0: 15 F7 11 50    AND.B @H'F711, R0 ; refs ram_F711 in on_chip_ram; cycles=7
39D4: 15 F1 04 90    MOV:G.B R0, @H'F104 ; refs mem_F104 in program_or_external; cycles=7
39D8: 15 F7 18 80    MOV:G.B @H'F718, R0 ; refs ram_F718 in on_chip_ram; cycles=7
39DC: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=7
39E0: 15 F7 10 50    AND.B @H'F710, R0 ; refs ram_F710 in on_chip_ram; cycles=7
39E4: 15 F1 05 90    MOV:G.B R0, @H'F105 ; refs mem_F105 in program_or_external; cycles=7
39E8: 15 F7 02 80    MOV:G.B @H'F702, R0 ; refs ram_F702 in on_chip_ram; cycles=7
39EC: 15 F1 09 90    MOV:G.B R0, @H'F109 ; refs mem_F109 in program_or_external; cycles=7
39F0: 15 F7 03 80    MOV:G.B @H'F703, R0 ; refs ram_F703 in on_chip_ram; cycles=7
39F4: 15 F1 0A 90    MOV:G.B R0, @H'F10A ; refs mem_F10A in program_or_external; cycles=7
39F8: 15 F7 04 80    MOV:G.B @H'F704, R0 ; refs ram_F704 in on_chip_ram; cycles=7
39FC: 15 F1 0B 90    MOV:G.B R0, @H'F10B ; refs mem_F10B in program_or_external; cycles=7
3A00: 15 F7 05 80    MOV:G.B @H'F705, R0 ; refs ram_F705 in on_chip_ram; cycles=7
3A04: 15 F1 0C 90    MOV:G.B R0, @H'F10C ; refs mem_F10C in program_or_external; cycles=7
3A08: 15 F7 00 80    MOV:G.B @H'F700, R0 ; refs ram_F700 in on_chip_ram; cycles=7
3A0C: 15 F1 0D 90    MOV:G.B R0, @H'F10D ; refs mem_F10D in program_or_external; cycles=7
3A10: 15 F7 01 80    MOV:G.B @H'F701, R0 ; refs ram_F701 in on_chip_ram; cycles=7
3A14: 15 F1 0E 90    MOV:G.B R0, @H'F10E ; refs mem_F10E in program_or_external; cycles=7
3A18: 15 FE 8E 80    MOV:G.B @P7DR, R0 ; refs P7DR in register_field; cycles=7
3A1C: A0 15          NOT.B R0 ; cycles=2
3A1E: 04 03 50       AND.B #H'03, R0 ; cycles=3
3A21: 04 A0 40       OR.B #H'A0, R0 ; cycles=3
3A24: 15 F1 0F 90    MOV:G.B R0, @H'F10F ; refs mem_F10F in program_or_external; cycles=7
3A28: 15 F7 20 06 03 MOV:G.B #H'03, @H'F720 ; refs ram_F720 in on_chip_ram; cycles=9

loc_3A2D:
3A2D: 19             RTS ; cycles=13

loc_3A2E:
3A2E: 15 F7 21 16    TST.B @H'F721 ; refs ram_F721 in on_chip_ram; cycles=7
3A32: 36 00 91       BNE loc_3AC6 ; cycles=3/7 nt/t
3A35: 15 F0 01 06 A0 MOV:G.B #H'A0, @H'F001 ; refs mem_F001 in program_or_external; cycles=9
3A3A: 15 F0 00 F1    BTST.B #1, @H'F000 ; refs mem_F000 in program_or_external; cycles=7
3A3E: 37 00 85       BEQ loc_3AC6 ; cycles=3/7 nt/t
3A41: 15 F7 1F 80    MOV:G.B @H'F71F, R0 ; refs ram_F71F in on_chip_ram; cycles=6
3A45: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=6
3A49: 15 F7 17 50    AND.B @H'F717, R0 ; refs ram_F717 in on_chip_ram; cycles=6
3A4D: 15 F0 02 90    MOV:G.B R0, @H'F002 ; refs mem_F002 in program_or_external; cycles=6
3A51: 15 F7 1E 80    MOV:G.B @H'F71E, R0 ; refs ram_F71E in on_chip_ram; cycles=6
3A55: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=6
3A59: 15 F7 16 50    AND.B @H'F716, R0 ; refs ram_F716 in on_chip_ram; cycles=6
3A5D: 15 F0 03 90    MOV:G.B R0, @H'F003 ; refs mem_F003 in program_or_external; cycles=6
3A61: 15 F7 1D 80    MOV:G.B @H'F71D, R0 ; refs ram_F71D in on_chip_ram; cycles=6
3A65: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=6
3A69: 15 F7 15 50    AND.B @H'F715, R0 ; refs ram_F715 in on_chip_ram; cycles=6
3A6D: 15 F0 04 90    MOV:G.B R0, @H'F004 ; refs mem_F004 in program_or_external; cycles=6
3A71: 15 F7 1C 80    MOV:G.B @H'F71C, R0 ; refs ram_F71C in on_chip_ram; cycles=6
3A75: 15 F7 23 40    OR.B @H'F723, R0 ; refs ram_F723 in on_chip_ram; cycles=6
3A79: 15 F7 14 50    AND.B @H'F714, R0 ; refs ram_F714 in on_chip_ram; cycles=6
3A7D: 15 F0 05 90    MOV:G.B R0, @H'F005 ; refs mem_F005 in program_or_external; cycles=6
3A81: 15 F7 08 80    MOV:G.B @H'F708, R0 ; refs ram_F708 in on_chip_ram; cycles=6
3A85: 15 F0 09 90    MOV:G.B R0, @H'F009 ; refs mem_F009 in program_or_external; cycles=6
3A89: 15 F7 09 80    MOV:G.B @H'F709, R0 ; refs ram_F709 in on_chip_ram; cycles=6
3A8D: 15 F0 0A 90    MOV:G.B R0, @H'F00A ; refs mem_F00A in program_or_external; cycles=6
3A91: 15 F7 0A 80    MOV:G.B @H'F70A, R0 ; refs ram_F70A in on_chip_ram; cycles=6
3A95: 15 F0 0B 90    MOV:G.B R0, @H'F00B ; refs mem_F00B in program_or_external; cycles=6
3A99: 15 F7 0B 80    MOV:G.B @H'F70B, R0 ; refs ram_F70B in on_chip_ram; cycles=6
3A9D: 15 F0 0C 90    MOV:G.B R0, @H'F00C ; refs mem_F00C in program_or_external; cycles=6
3AA1: 15 F7 06 80    MOV:G.B @H'F706, R0 ; refs ram_F706 in on_chip_ram; cycles=6
3AA5: 15 F0 0D 90    MOV:G.B R0, @H'F00D ; refs mem_F00D in program_or_external; cycles=6
3AA9: 15 F7 07 80    MOV:G.B @H'F707, R0 ; refs ram_F707 in on_chip_ram; cycles=6
3AAD: 15 F0 0E 90    MOV:G.B R0, @H'F00E ; refs mem_F00E in program_or_external; cycles=6
3AB1: 15 FE 8E 80    MOV:G.B @P7DR, R0 ; refs P7DR in register_field; cycles=6
3AB5: A0 15          NOT.B R0 ; cycles=2
3AB7: 04 03 50       AND.B #H'03, R0 ; cycles=3
3ABA: 04 A0 40       OR.B #H'A0, R0 ; cycles=3
3ABD: 15 F0 0F 90    MOV:G.B R0, @H'F00F ; refs mem_F00F in program_or_external; cycles=6
3AC1: 15 F7 21 06 03 MOV:G.B #H'03, @H'F721 ; refs ram_F721 in on_chip_ram; cycles=9

loc_3AC6:
3AC6: 19             RTS ; cycles=12

vec_irq4_3AC7:
3AC7: BF 90          MOV:G.W R0, @-R7 ; cycles=5
3AC9: 15 F1 00 F1    BTST.B #1, @H'F100 ; refs mem_F100 in program_or_external; cycles=6
3ACD: 36 01 5D       BNE loc_3C2D ; cycles=3/8 nt/t
3AD0: 15 F1 0F 80    MOV:G.B @H'F10F, R0 ; refs mem_F10F in program_or_external; cycles=7
3AD4: 40 A9          CMP:E #H'A9, R0 ; cycles=2
3AD6: 27 08          BEQ loc_3AE0 ; cycles=3/7 nt/t
3AD8: 40 A8          CMP:E #H'A8, R0 ; cycles=2
3ADA: 37 00 85       BEQ loc_3B62 ; cycles=3/7 nt/t
3ADD: 30 01 4D       BRA loc_3C2D ; cycles=8

loc_3AE0:
3AE0: 15 F6 F0 80    MOV:G.B @H'F6F0, R0 ; refs ram_F6F0 in on_chip_ram; cycles=7
3AE4: 04 C0 50       AND.B #H'C0, R0 ; cycles=3
3AE7: 15 F6 F0 90    MOV:G.B R0, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=6
3AEB: 1D F1 0C 80    MOV:G.W @H'F10C, R0 ; refs mem_F10C in program_or_external; cycles=6
3AEF: 1D F6 9A 70    CMP:G.W @H'F69A, R0 ; refs ram_F69A in on_chip_ram; cycles=6
3AF3: 27 08          BEQ loc_3AFD ; cycles=3/8 nt/t
3AF5: 15 F6 F0 C5    BSET.B #5, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3AF9: 1D F6 9A 90    MOV:G.W R0, @H'F69A ; refs ram_F69A in on_chip_ram; cycles=6

loc_3AFD:
3AFD: 1D F1 0A 80    MOV:G.W @H'F10A, R0 ; refs mem_F10A in program_or_external; cycles=6
3B01: 1D F6 98 70    CMP:G.W @H'F698, R0 ; refs ram_F698 in on_chip_ram; cycles=6
3B05: 27 08          BEQ loc_3B0F ; cycles=3/8 nt/t
3B07: 15 F6 F0 C4    BSET.B #4, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B0B: 1D F6 98 90    MOV:G.W R0, @H'F698 ; refs ram_F698 in on_chip_ram; cycles=6

loc_3B0F:
3B0F: 1D F1 08 80    MOV:G.W @H'F108, R0 ; refs mem_F108 in program_or_external; cycles=6
3B13: 1D F6 96 70    CMP:G.W @H'F696, R0 ; refs ram_F696 in on_chip_ram; cycles=6
3B17: 27 08          BEQ loc_3B21 ; cycles=3/8 nt/t
3B19: 15 F6 F0 C3    BSET.B #3, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B1D: 1D F6 96 90    MOV:G.W R0, @H'F696 ; refs ram_F696 in on_chip_ram; cycles=6

loc_3B21:
3B21: 1D F1 06 80    MOV:G.W @H'F106, R0 ; refs mem_F106 in program_or_external; cycles=6
3B25: 1D F6 94 70    CMP:G.W @H'F694, R0 ; refs ram_F694 in on_chip_ram; cycles=6
3B29: 27 08          BEQ loc_3B33 ; cycles=3/8 nt/t
3B2B: 15 F6 F0 C2    BSET.B #2, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B2F: 1D F6 94 90    MOV:G.W R0, @H'F694 ; refs ram_F694 in on_chip_ram; cycles=6

loc_3B33:
3B33: 1D F1 04 80    MOV:G.W @H'F104, R0 ; refs mem_F104 in program_or_external; cycles=6
3B37: 1D F6 92 70    CMP:G.W @H'F692, R0 ; refs ram_F692 in on_chip_ram; cycles=6
3B3B: 27 08          BEQ loc_3B45 ; cycles=3/8 nt/t
3B3D: 15 F6 F0 C1    BSET.B #1, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B41: 1D F6 92 90    MOV:G.W R0, @H'F692 ; refs ram_F692 in on_chip_ram; cycles=6

loc_3B45:
3B45: 1D F1 02 80    MOV:G.W @H'F102, R0 ; refs mem_F102 in program_or_external; cycles=6
3B49: 1D F6 90 70    CMP:G.W @H'F690, R0 ; refs ram_F690 in on_chip_ram; cycles=6
3B4D: 27 08          BEQ loc_3B57 ; cycles=3/8 nt/t
3B4F: 15 F6 F0 C0    BSET.B #0, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B53: 1D F6 90 90    MOV:G.W R0, @H'F690 ; refs ram_F690 in on_chip_ram; cycles=6

loc_3B57:
3B57: 15 F1 01 80    MOV:G.B @H'F101, R0 ; refs mem_F101 in program_or_external; cycles=6
3B5B: 15 F7 20 D0    BCLR.B #0, @H'F720 ; refs ram_F720 in on_chip_ram; cycles=8
3B5F: 30 00 CB       BRA loc_3C2D ; cycles=8

loc_3B62:
3B62: 15 F6 F0 80    MOV:G.B @H'F6F0, R0 ; refs ram_F6F0 in on_chip_ram; cycles=7
3B66: 04 3F 50       AND.B #H'3F, R0 ; cycles=3
3B69: 15 F6 F0 90    MOV:G.B R0, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=6
3B6D: 15 F6 F2 13    CLR.B @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3B71: 1D F1 0C 80    MOV:G.W @H'F10C, R0 ; refs mem_F10C in program_or_external; cycles=6
3B75: 1D F6 9E 70    CMP:G.W @H'F69E, R0 ; refs ram_F69E in on_chip_ram; cycles=6
3B79: 27 08          BEQ loc_3B83 ; cycles=3/8 nt/t
3B7B: 15 F6 F0 C7    BSET.B #7, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B7F: 1D F6 9E 90    MOV:G.W R0, @H'F69E ; refs ram_F69E in on_chip_ram; cycles=6

loc_3B83:
3B83: 1D F1 0A 80    MOV:G.W @H'F10A, R0 ; refs mem_F10A in program_or_external; cycles=6
3B87: 1D F6 9C 70    CMP:G.W @H'F69C, R0 ; refs ram_F69C in on_chip_ram; cycles=6
3B8B: 27 08          BEQ loc_3B95 ; cycles=3/8 nt/t
3B8D: 15 F6 F0 C6    BSET.B #6, @H'F6F0 ; refs ram_F6F0 in on_chip_ram; cycles=8
3B91: 1D F6 9C 90    MOV:G.W R0, @H'F69C ; refs ram_F69C in on_chip_ram; cycles=6

loc_3B95:
3B95: 15 F1 09 80    MOV:G.B @H'F109, R0 ; refs mem_F109 in program_or_external; cycles=6
3B99: 15 F6 D0 70    CMP:G.B @H'F6D0, R0 ; refs ram_F6D0 in on_chip_ram; cycles=6
3B9D: 27 08          BEQ loc_3BA7 ; cycles=3/8 nt/t
3B9F: 15 F6 F2 C0    BSET.B #0, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BA3: 15 F6 D0 90    MOV:G.B R0, @H'F6D0 ; refs ram_F6D0 in on_chip_ram; cycles=6

loc_3BA7:
3BA7: 15 F1 08 80    MOV:G.B @H'F108, R0 ; refs mem_F108 in program_or_external; cycles=6
3BAB: 15 F6 D1 70    CMP:G.B @H'F6D1, R0 ; refs ram_F6D1 in on_chip_ram; cycles=6
3BAF: 27 08          BEQ loc_3BB9 ; cycles=3/8 nt/t
3BB1: 15 F6 F2 C1    BSET.B #1, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BB5: 15 F6 D1 90    MOV:G.B R0, @H'F6D1 ; refs ram_F6D1 in on_chip_ram; cycles=6

loc_3BB9:
3BB9: 15 F1 07 80    MOV:G.B @H'F107, R0 ; refs mem_F107 in program_or_external; cycles=6
3BBD: 15 F6 D2 70    CMP:G.B @H'F6D2, R0 ; refs ram_F6D2 in on_chip_ram; cycles=6
3BC1: 27 08          BEQ loc_3BCB ; cycles=3/8 nt/t
3BC3: 15 F6 F2 C2    BSET.B #2, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BC7: 15 F6 D2 90    MOV:G.B R0, @H'F6D2 ; refs ram_F6D2 in on_chip_ram; cycles=6

loc_3BCB:
3BCB: 15 F1 06 80    MOV:G.B @H'F106, R0 ; refs mem_F106 in program_or_external; cycles=6
3BCF: 15 F6 D3 70    CMP:G.B @H'F6D3, R0 ; refs ram_F6D3 in on_chip_ram; cycles=6
3BD3: 27 08          BEQ loc_3BDD ; cycles=3/8 nt/t
3BD5: 15 F6 F2 C3    BSET.B #3, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BD9: 15 F6 D3 90    MOV:G.B R0, @H'F6D3 ; refs ram_F6D3 in on_chip_ram; cycles=6

loc_3BDD:
3BDD: 15 F1 05 80    MOV:G.B @H'F105, R0 ; refs mem_F105 in program_or_external; cycles=6
3BE1: 15 F6 D4 70    CMP:G.B @H'F6D4, R0 ; refs ram_F6D4 in on_chip_ram; cycles=6
3BE5: 27 08          BEQ loc_3BEF ; cycles=3/8 nt/t
3BE7: 15 F6 F2 C4    BSET.B #4, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BEB: 15 F6 D4 90    MOV:G.B R0, @H'F6D4 ; refs ram_F6D4 in on_chip_ram; cycles=6

loc_3BEF:
3BEF: 15 F1 04 80    MOV:G.B @H'F104, R0 ; refs mem_F104 in program_or_external; cycles=6
3BF3: 15 F6 D5 70    CMP:G.B @H'F6D5, R0 ; refs ram_F6D5 in on_chip_ram; cycles=6
3BF7: 27 08          BEQ loc_3C01 ; cycles=3/8 nt/t
3BF9: 15 F6 F2 C5    BSET.B #5, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3BFD: 15 F6 D5 90    MOV:G.B R0, @H'F6D5 ; refs ram_F6D5 in on_chip_ram; cycles=6

loc_3C01:
3C01: 15 F1 03 80    MOV:G.B @H'F103, R0 ; refs mem_F103 in program_or_external; cycles=6
3C05: 15 F6 D6 70    CMP:G.B @H'F6D6, R0 ; refs ram_F6D6 in on_chip_ram; cycles=6
3C09: 27 08          BEQ loc_3C13 ; cycles=3/8 nt/t
3C0B: 15 F6 F2 C6    BSET.B #6, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3C0F: 15 F6 D6 90    MOV:G.B R0, @H'F6D6 ; refs ram_F6D6 in on_chip_ram; cycles=6

loc_3C13:
3C13: 15 F1 02 80    MOV:G.B @H'F102, R0 ; refs mem_F102 in program_or_external; cycles=6
3C17: 15 F6 D7 70    CMP:G.B @H'F6D7, R0 ; refs ram_F6D7 in on_chip_ram; cycles=6
3C1B: 27 08          BEQ loc_3C25 ; cycles=3/8 nt/t
3C1D: 15 F6 F2 C7    BSET.B #7, @H'F6F2 ; refs ram_F6F2 in on_chip_ram; cycles=8
3C21: 15 F6 D7 90    MOV:G.B R0, @H'F6D7 ; refs ram_F6D7 in on_chip_ram; cycles=6

loc_3C25:
3C25: 15 F1 01 80    MOV:G.B @H'F101, R0 ; refs mem_F101 in program_or_external; cycles=6
3C29: 15 F7 20 D1    BCLR.B #1, @H'F720 ; refs ram_F720 in on_chip_ram; cycles=8

loc_3C2D:
3C2D: CF 80          MOV:G.W @R7+, R0 ; cycles=6
3C2F: 0A             RTE ; cycles=14

vec_irq3_3C30:
3C30: BF 90          MOV:G.W R0, @-R7 ; cycles=6
3C32: 15 F0 00 F1    BTST.B #1, @H'F000 ; refs mem_F000 in program_or_external; cycles=7
3C36: 36 01 5D       BNE loc_3D96 ; cycles=3/7 nt/t
3C39: 15 F0 0F 80    MOV:G.B @H'F00F, R0 ; refs mem_F00F in program_or_external; cycles=6
3C3D: 40 A9          CMP:E #H'A9, R0 ; cycles=2
3C3F: 27 08          BEQ loc_3C49 ; cycles=3/8 nt/t
3C41: 40 A8          CMP:E #H'A8, R0 ; cycles=2
3C43: 37 00 85       BEQ loc_3CCB ; cycles=3/8 nt/t
3C46: 30 01 4D       BRA loc_3D96 ; cycles=7

loc_3C49:
3C49: 15 F6 F1 80    MOV:G.B @H'F6F1, R0 ; refs ram_F6F1 in on_chip_ram; cycles=6
3C4D: 04 C0 50       AND.B #H'C0, R0 ; cycles=3
3C50: 15 F6 F1 90    MOV:G.B R0, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=7
3C54: 1D F0 0C 80    MOV:G.W @H'F00C, R0 ; refs mem_F00C in program_or_external; cycles=7
3C58: 1D F6 AA 70    CMP:G.W @H'F6AA, R0 ; refs ram_F6AA in on_chip_ram; cycles=7
3C5C: 27 08          BEQ loc_3C66 ; cycles=3/7 nt/t
3C5E: 15 F6 F1 C5    BSET.B #5, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3C62: 1D F6 AA 90    MOV:G.W R0, @H'F6AA ; refs ram_F6AA in on_chip_ram; cycles=7

loc_3C66:
3C66: 1D F0 0A 80    MOV:G.W @H'F00A, R0 ; refs mem_F00A in program_or_external; cycles=7
3C6A: 1D F6 A8 70    CMP:G.W @H'F6A8, R0 ; refs ram_F6A8 in on_chip_ram; cycles=7
3C6E: 27 08          BEQ loc_3C78 ; cycles=3/7 nt/t
3C70: 15 F6 F1 C4    BSET.B #4, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3C74: 1D F6 A8 90    MOV:G.W R0, @H'F6A8 ; refs ram_F6A8 in on_chip_ram; cycles=7

loc_3C78:
3C78: 1D F0 08 80    MOV:G.W @H'F008, R0 ; refs mem_F008 in program_or_external; cycles=7
3C7C: 1D F6 A6 70    CMP:G.W @H'F6A6, R0 ; refs ram_F6A6 in on_chip_ram; cycles=7
3C80: 27 08          BEQ loc_3C8A ; cycles=3/7 nt/t
3C82: 15 F6 F1 C3    BSET.B #3, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3C86: 1D F6 A6 90    MOV:G.W R0, @H'F6A6 ; refs ram_F6A6 in on_chip_ram; cycles=7

loc_3C8A:
3C8A: 1D F0 06 80    MOV:G.W @H'F006, R0 ; refs mem_F006 in program_or_external; cycles=7
3C8E: 1D F6 A4 70    CMP:G.W @H'F6A4, R0 ; refs ram_F6A4 in on_chip_ram; cycles=7
3C92: 27 08          BEQ loc_3C9C ; cycles=3/7 nt/t
3C94: 15 F6 F1 C2    BSET.B #2, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3C98: 1D F6 A4 90    MOV:G.W R0, @H'F6A4 ; refs ram_F6A4 in on_chip_ram; cycles=7

loc_3C9C:
3C9C: 1D F0 04 80    MOV:G.W @H'F004, R0 ; refs mem_F004 in program_or_external; cycles=7
3CA0: 1D F6 A2 70    CMP:G.W @H'F6A2, R0 ; refs ram_F6A2 in on_chip_ram; cycles=7
3CA4: 27 08          BEQ loc_3CAE ; cycles=3/7 nt/t
3CA6: 15 F6 F1 C1    BSET.B #1, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3CAA: 1D F6 A2 90    MOV:G.W R0, @H'F6A2 ; refs ram_F6A2 in on_chip_ram; cycles=7

loc_3CAE:
3CAE: 1D F0 02 80    MOV:G.W @H'F002, R0 ; refs mem_F002 in program_or_external; cycles=7
3CB2: 1D F6 A0 70    CMP:G.W @H'F6A0, R0 ; refs ram_F6A0 in on_chip_ram; cycles=7
3CB6: 27 08          BEQ loc_3CC0 ; cycles=3/7 nt/t
3CB8: 15 F6 F1 C0    BSET.B #0, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3CBC: 1D F6 A0 90    MOV:G.W R0, @H'F6A0 ; refs ram_F6A0 in on_chip_ram; cycles=7

loc_3CC0:
3CC0: 15 F0 01 80    MOV:G.B @H'F001, R0 ; refs mem_F001 in program_or_external; cycles=7
3CC4: 15 F7 21 D0    BCLR.B #0, @H'F721 ; refs ram_F721 in on_chip_ram; cycles=9
3CC8: 30 00 CB       BRA loc_3D96 ; cycles=7

loc_3CCB:
3CCB: 15 F6 F1 80    MOV:G.B @H'F6F1, R0 ; refs ram_F6F1 in on_chip_ram; cycles=6
3CCF: 04 3F 50       AND.B #H'3F, R0 ; cycles=3
3CD2: 15 F6 F1 90    MOV:G.B R0, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=7
3CD6: 15 F6 F3 13    CLR.B @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3CDA: 1D F0 0C 80    MOV:G.W @H'F00C, R0 ; refs mem_F00C in program_or_external; cycles=7
3CDE: 1D F6 AE 70    CMP:G.W @H'F6AE, R0 ; refs ram_F6AE in on_chip_ram; cycles=7
3CE2: 27 08          BEQ loc_3CEC ; cycles=3/7 nt/t
3CE4: 15 F6 F1 C7    BSET.B #7, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3CE8: 1D F6 AE 90    MOV:G.W R0, @H'F6AE ; refs ram_F6AE in on_chip_ram; cycles=7

loc_3CEC:
3CEC: 1D F0 0A 80    MOV:G.W @H'F00A, R0 ; refs mem_F00A in program_or_external; cycles=7
3CF0: 1D F6 AC 70    CMP:G.W @H'F6AC, R0 ; refs ram_F6AC in on_chip_ram; cycles=7
3CF4: 27 08          BEQ loc_3CFE ; cycles=3/7 nt/t
3CF6: 15 F6 F1 C6    BSET.B #6, @H'F6F1 ; refs ram_F6F1 in on_chip_ram; cycles=9
3CFA: 1D F6 AC 90    MOV:G.W R0, @H'F6AC ; refs ram_F6AC in on_chip_ram; cycles=7

loc_3CFE:
3CFE: 15 F0 09 80    MOV:G.B @H'F009, R0 ; refs mem_F009 in program_or_external; cycles=7
3D02: 15 F6 D8 70    CMP:G.B @H'F6D8, R0 ; refs ram_F6D8 in on_chip_ram; cycles=7
3D06: 27 08          BEQ loc_3D10 ; cycles=3/7 nt/t
3D08: 15 F6 F3 C0    BSET.B #0, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D0C: 15 F6 D8 90    MOV:G.B R0, @H'F6D8 ; refs ram_F6D8 in on_chip_ram; cycles=7

loc_3D10:
3D10: 15 F0 08 80    MOV:G.B @H'F008, R0 ; refs mem_F008 in program_or_external; cycles=7
3D14: 15 F6 D9 70    CMP:G.B @H'F6D9, R0 ; refs ram_F6D9 in on_chip_ram; cycles=7
3D18: 27 08          BEQ loc_3D22 ; cycles=3/7 nt/t
3D1A: 15 F6 F3 C1    BSET.B #1, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D1E: 15 F6 D9 90    MOV:G.B R0, @H'F6D9 ; refs ram_F6D9 in on_chip_ram; cycles=7

loc_3D22:
3D22: 15 F0 07 80    MOV:G.B @H'F007, R0 ; refs mem_F007 in program_or_external; cycles=7
3D26: 15 F6 DA 70    CMP:G.B @H'F6DA, R0 ; refs ram_F6DA in on_chip_ram; cycles=7
3D2A: 27 08          BEQ loc_3D34 ; cycles=3/7 nt/t
3D2C: 15 F6 F3 C2    BSET.B #2, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D30: 15 F6 DA 90    MOV:G.B R0, @H'F6DA ; refs ram_F6DA in on_chip_ram; cycles=7

loc_3D34:
3D34: 15 F0 06 80    MOV:G.B @H'F006, R0 ; refs mem_F006 in program_or_external; cycles=7
3D38: 15 F6 DB 70    CMP:G.B @H'F6DB, R0 ; refs ram_F6DB in on_chip_ram; cycles=7
3D3C: 27 08          BEQ loc_3D46 ; cycles=3/7 nt/t
3D3E: 15 F6 F3 C3    BSET.B #3, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D42: 15 F6 DB 90    MOV:G.B R0, @H'F6DB ; refs ram_F6DB in on_chip_ram; cycles=7

loc_3D46:
3D46: 15 F0 05 80    MOV:G.B @H'F005, R0 ; refs mem_F005 in program_or_external; cycles=7
3D4A: 15 F6 DC 70    CMP:G.B @H'F6DC, R0 ; refs ram_F6DC in on_chip_ram; cycles=7
3D4E: 27 08          BEQ loc_3D58 ; cycles=3/7 nt/t
3D50: 15 F6 F3 C4    BSET.B #4, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D54: 15 F6 DC 90    MOV:G.B R0, @H'F6DC ; refs ram_F6DC in on_chip_ram; cycles=7

loc_3D58:
3D58: 15 F0 04 80    MOV:G.B @H'F004, R0 ; refs mem_F004 in program_or_external; cycles=7
3D5C: 15 F6 DD 70    CMP:G.B @H'F6DD, R0 ; refs ram_F6DD in on_chip_ram; cycles=7
3D60: 27 08          BEQ loc_3D6A ; cycles=3/7 nt/t
3D62: 15 F6 F3 C5    BSET.B #5, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D66: 15 F6 DD 90    MOV:G.B R0, @H'F6DD ; refs ram_F6DD in on_chip_ram; cycles=7

loc_3D6A:
3D6A: 15 F0 03 80    MOV:G.B @H'F003, R0 ; refs mem_F003 in program_or_external; cycles=7
3D6E: 15 F6 DE 70    CMP:G.B @H'F6DE, R0 ; refs ram_F6DE in on_chip_ram; cycles=7
3D72: 27 08          BEQ loc_3D7C ; cycles=3/7 nt/t
3D74: 15 F6 F3 C6    BSET.B #6, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D78: 15 F6 DE 90    MOV:G.B R0, @H'F6DE ; refs ram_F6DE in on_chip_ram; cycles=7

loc_3D7C:
3D7C: 15 F0 02 80    MOV:G.B @H'F002, R0 ; refs mem_F002 in program_or_external; cycles=7
3D80: 15 F6 DF 70    CMP:G.B @H'F6DF, R0 ; refs ram_F6DF in on_chip_ram; cycles=7
3D84: 27 08          BEQ loc_3D8E ; cycles=3/7 nt/t
3D86: 15 F6 F3 C7    BSET.B #7, @H'F6F3 ; refs ram_F6F3 in on_chip_ram; cycles=9
3D8A: 15 F6 DF 90    MOV:G.B R0, @H'F6DF ; refs ram_F6DF in on_chip_ram; cycles=7

loc_3D8E:
3D8E: 15 F0 01 80    MOV:G.B @H'F001, R0 ; refs mem_F001 in program_or_external; cycles=7
3D92: 15 F7 21 D1    BCLR.B #1, @H'F721 ; refs ram_F721 in on_chip_ram; cycles=9

loc_3D96:
3D96: CF 80          MOV:G.W @R7+, R0 ; cycles=5
3D98: 0A             RTE ; cycles=13

vec_ad_adi_3D99:
3D99: 15 FE E8 D5    BCLR.B #5, @ADCSR ; clear ADST (bit 5) of ADCSR; cycles=8
3D9D: 12 3F          STM.W {R0,R1,R2,R3,R4,R5}, @-SP ; cycles=24
3D9F: 15 F6 8A 80    MOV:G.B @H'F68A, R0 ; refs ram_F68A in on_chip_ram; cycles=6
3DA3: 04 14 A8       MULXU.B #H'14, R0 ; cycles=19
3DA6: 1D FE E0 81    MOV:G.W @ADDRA_H, R1 ; ADDRA word read; TEMP byte-order hazard avoided; refs ADDRA_H in register_field; cycles=7
3DAA: A1 10          SWAP.B R1 ; cycles=3
3DAC: A1 12          EXTU.B R1 ; cycles=3
3DAE: F1 CF B6 81    MOV:G.B @(-H'304A,R1), R1 ; cycles=7
3DB2: A9 20          ADD:G.W R1, R0 ; cycles=3
3DB4: 04 15 B8       DIVXU.B #H'15, R0 ; cycles=23
3DB7: 15 F6 8A 70    CMP:G.B @H'F68A, R0 ; refs ram_F68A in on_chip_ram; cycles=6
3DBB: 27 4B          BEQ loc_3E08 ; cycles=3/8 nt/t
3DBD: 15 F6 8A 82    MOV:G.B @H'F68A, R2 ; refs ram_F68A in on_chip_ram; cycles=6
3DC1: 15 F6 8A 90    MOV:G.B R0, @H'F68A ; refs ram_F68A in on_chip_ram; cycles=6
3DC5: 15 F7 31 04 03 CMP:G.B #H'03, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
3DCA: 22 3C          BHI loc_3E08 ; cycles=3/7 nt/t
3DCC: A0 12          EXTU.B R0 ; cycles=3
3DCE: A2 12          EXTU.B R2 ; cycles=3
3DD0: 0C 01 01 A8    MULXU.W #H'0101, R0 ; cycles=25
3DD4: 0C 01 01 AA    MULXU.W #H'0101, R2 ; cycles=25
3DD8: AB 31          SUB.W R3, R1 ; cycles=3
3DDA: 1D E1 02 80    MOV:G.W @H'E102, R0 ; refs mem_E102 in program_or_external; cycles=7
3DDE: A8 21          ADD:G.W R0, R1 ; cycles=3
3DE0: A9 82          MOV:G.W R1, R2 ; cycles=3
3DE2: 25 0C          BCS loc_3DF0 ; cycles=3/7 nt/t
3DE4: A8 32          SUB.W R0, R2 ; cycles=3
3DE6: 4A 80 00       CMP:I #H'8000, R2 ; cycles=3
3DE9: 23 0F          BLS loc_3DFA ; cycles=3/8 nt/t
3DEB: 59 00 00       MOV:I.W #H'0000, R1 ; dataflow R1=H'0000; cycles=3
3DEE: 20 0A          BRA loc_3DFA ; cycles=7

loc_3DF0:
3DF0: AA 30          SUB.W R2, R0 ; cycles=3
3DF2: 48 80 00       CMP:I #H'8000, R0 ; cycles=3
3DF5: 23 03          BLS loc_3DFA ; cycles=3/8 nt/t
3DF7: 59 FF FF       MOV:I.W #H'FFFF, R1 ; dataflow R1=H'FFFF; cycles=3

loc_3DFA:
3DFA: 1D E1 02 71    CMP:G.W @H'E102, R1 ; refs mem_E102 in program_or_external; cycles=7
3DFE: 27 08          BEQ loc_3E08 ; cycles=3/7 nt/t
3E00: 1D F6 8E 91    MOV:G.W R1, @H'F68E ; refs ram_F68E in on_chip_ram; cycles=7
3E04: 15 F6 89 C7    BSET.B #7, @H'F689 ; refs ram_F689 in on_chip_ram; cycles=9

loc_3E08:
3E08: 15 F6 8B 80    MOV:G.B @H'F68B, R0 ; refs ram_F68B in on_chip_ram; cycles=7
3E0C: 04 14 A8       MULXU.B #H'14, R0 ; cycles=19
3E0F: 1D FE E2 81    MOV:G.W @ADDRB_H, R1 ; ADDRB word read; TEMP byte-order hazard avoided; refs ADDRB_H in register_field; cycles=6
3E13: A1 10          SWAP.B R1 ; cycles=3
3E15: A1 12          EXTU.B R1 ; cycles=3
3E17: A9 20          ADD:G.W R1, R0 ; cycles=3
3E19: 04 15 B8       DIVXU.B #H'15, R0 ; cycles=23
3E1C: 1D F6 8C 16    TST.W @H'F68C ; refs ram_F68C in on_chip_ram; cycles=7
3E20: 27 06          BEQ loc_3E28 ; cycles=3/7 nt/t
3E22: 15 F6 8B 70    CMP:G.B @H'F68B, R0 ; refs ram_F68B in on_chip_ram; cycles=7
3E26: 27 25          BEQ loc_3E4D ; cycles=3/7 nt/t

loc_3E28:
3E28: 15 F6 8B 90    MOV:G.B R0, @H'F68B ; refs ram_F68B in on_chip_ram; cycles=7
3E2C: A0 12          EXTU.B R0 ; cycles=3
3E2E: A8 83          MOV:G.W R0, R3 ; cycles=3
3E30: A3 AB          MULXU.B R3, R3 ; cycles=18
3E32: AA 13          CLR.W R2 ; dataflow R2=H'0000; cycles=3
3E34: 0C 00 C8 BA    DIVXU.W #H'00C8, R2 ; cycles=29
3E38: 04 04 A8       MULXU.B #H'04, R0 ; cycles=19
3E3B: 0C 00 AB 20    ADD:G.W #H'00AB, R0 ; cycles=4
3E3F: AB 20          ADD:G.W R3, R0 ; cycles=3
3E41: 15 FE 8E F4    BTST.B #4, @P7DR ; refs P7DR in register_field; cycles=6
3E45: 26 02          BNE loc_3E49 ; cycles=3/8 nt/t
3E47: A8 1B          SHLR.W R0 ; cycles=3

loc_3E49:
3E49: 1D F6 8C 90    MOV:G.W R0, @H'F68C ; refs ram_F68C in on_chip_ram; cycles=6

loc_3E4D:
3E4D: 02 3F          LDM.W @SP+, {R0,R1,R2,R3,R4,R5} ; cycles=30
3E4F: 15 FE E8 D7    BCLR.B #7, @ADCSR ; clear ADF (bit 7) of ADCSR; cycles=8
3E53: 0A             RTE ; cycles=14

loc_3E54:
3E54: A2 F7          BTST.B #7, R2 ; cycles=2
3E56: 27 42          BEQ loc_3E9A ; cycles=3/7 nt/t
3E58: 15 F9 B5 80    MOV:G.B @H'F9B5, R0 ; refs ram_F9B5 in on_chip_ram; cycles=7
3E5C: A0 12          EXTU.B R0 ; cycles=3
3E5E: A8 1A          SHLL.W R0 ; cycles=3
3E60: 15 F9 B0 81    MOV:G.B @H'F9B0, R1 ; refs ram_F9B0 in on_chip_ram; cycles=7
3E64: A1 12          EXTU.B R1 ; cycles=3
3E66: A9 1A          SHLL.W R1 ; cycles=3

loc_3E68:
3E68: A0 71          CMP:G.B R0, R1 ; cycles=2
3E6A: 27 0A          BEQ loc_3E76 ; cycles=3/7 nt/t
3E6C: F8 F8 70 73    CMP:G.W @(-H'0790,R0), R3 ; cycles=7
3E70: 27 28          BEQ loc_3E9A ; cycles=3/7 nt/t
3E72: A0 09          ADD:Q.B #2, R0 ; cycles=4
3E74: 20 F2          BRA loc_3E68 ; cycles=7

loc_3E76:
3E76: F9 F8 70 93    MOV:G.W R3, @(-H'0790,R1) ; cycles=7
3E7A: 15 F9 B0 08    ADD:Q.B #1, @H'F9B0 ; refs ram_F9B0 in on_chip_ram; cycles=9
3E7E: 15 F9 B0 D7    BCLR.B #7, @H'F9B0 ; refs ram_F9B0 in on_chip_ram; cycles=9

loc_3E82:
3E82: 15 F9 B0 80    MOV:G.B @H'F9B0, R0 ; refs ram_F9B0 in on_chip_ram; cycles=7
3E86: A0 08          ADD:Q.B #1, R0 ; cycles=4
3E88: 04 7F 50       AND.B #H'7F, R0 ; cycles=3
3E8B: 15 F9 B5 70    CMP:G.B @H'F9B5, R0 ; refs ram_F9B5 in on_chip_ram; cycles=6
3E8F: 26 09          BNE loc_3E9A ; cycles=3/8 nt/t
3E91: 12 0C          STM.W {R2,R3}, @-SP ; cycles=12
3E93: 1E 01 3D       BSR loc_3FD3 ; cycles=14
3E96: 02 0C          LDM.W @SP+, {R2,R3} ; cycles=14
3E98: 20 E8          BRA loc_3E82 ; cycles=7

loc_3E9A:
3E9A: A2 F6          BTST.B #6, R2 ; cycles=2
3E9C: 27 2D          BEQ loc_3ECB ; cycles=3/7 nt/t
3E9E: 15 F9 B9 80    MOV:G.B @H'F9B9, R0 ; refs ram_F9B9 in on_chip_ram; cycles=7
3EA2: A0 12          EXTU.B R0 ; cycles=3
3EA4: A8 1A          SHLL.W R0 ; cycles=3
3EA6: 15 F9 B4 81    MOV:G.B @H'F9B4, R1 ; refs ram_F9B4 in on_chip_ram; cycles=7
3EAA: A1 12          EXTU.B R1 ; cycles=3
3EAC: A9 1A          SHLL.W R1 ; cycles=3

loc_3EAE:
3EAE: A0 71          CMP:G.B R0, R1 ; cycles=2
3EB0: 27 0D          BEQ loc_3EBF ; cycles=3/7 nt/t
3EB2: F8 F9 70 73    CMP:G.W @(-H'0690,R0), R3 ; cycles=7
3EB6: 27 13          BEQ loc_3ECB ; cycles=3/7 nt/t
3EB8: A0 09          ADD:Q.B #2, R0 ; cycles=4
3EBA: 04 3F 50       AND.B #H'3F, R0 ; cycles=3
3EBD: 20 EF          BRA loc_3EAE ; cycles=8

loc_3EBF:
3EBF: F9 F9 70 93    MOV:G.W R3, @(-H'0690,R1) ; cycles=6
3EC3: 15 F9 B4 08    ADD:Q.B #1, @H'F9B4 ; refs ram_F9B4 in on_chip_ram; cycles=8
3EC7: 15 F9 B4 D5    BCLR.B #5, @H'F9B4 ; refs ram_F9B4 in on_chip_ram; cycles=8

loc_3ECB:
3ECB: 19             RTS ; cycles=13

loc_3ECC:
3ECC: 12 1F          STM.W {R0,R1,R2,R3,R4}, @-SP ; cycles=21
3ECE: A5 12          EXTU.B R5 ; cycles=3
3ED0: 45 03          CMP:E #H'03, R5 ; cycles=2
3ED2: 23 05          BLS loc_3ED9 ; cycles=3/7 nt/t
3ED4: 1E 00 69       BSR loc_3F40 ; cycles=13
3ED7: 20 4C          BRA loc_3F25 ; cycles=8

loc_3ED9:
3ED9: A5 83          MOV:G.B R5, R3 ; cycles=2
3EDB: 45 00          CMP:E #H'00, R5 ; cycles=2
3EDD: 27 0A          BEQ loc_3EE9 ; cycles=3/8 nt/t
3EDF: 45 01          CMP:E #H'01, R5 ; cycles=2
3EE1: 27 0B          BEQ loc_3EEE ; cycles=3/8 nt/t
3EE3: 45 02          CMP:E #H'02, R5 ; cycles=2
3EE5: 27 0C          BEQ loc_3EF3 ; cycles=3/8 nt/t
3EE7: 20 0F          BRA loc_3EF8 ; cycles=8

loc_3EE9:
3EE9: 5D 00 80       MOV:I.W #H'0080, R5 ; dataflow R5=H'0080; cycles=3
3EEC: 20 0D          BRA loc_3EFB ; cycles=7

loc_3EEE:
3EEE: 5D 00 C0       MOV:I.W #H'00C0, R5 ; dataflow R5=H'00C0; cycles=3
3EF1: 20 08          BRA loc_3EFB ; cycles=8

loc_3EF3:
3EF3: 5D 00 90       MOV:I.W #H'0090, R5 ; dataflow R5=H'0090; cycles=3
3EF6: 20 03          BRA loc_3EFB ; cycles=7

loc_3EF8:
3EF8: 5D 00 D0       MOV:I.W #H'00D0, R5 ; dataflow R5=H'00D0; cycles=3

loc_3EFB:
3EFB: 04 10 AB       MULXU.B #H'10, R3 ; cycles=19
3EFE: 0C FA B0 23    ADD:G.W #H'FAB0, R3 ; cycles=4
3F02: A9 13          CLR.W R1 ; dataflow R1=H'0000; cycles=3

loc_3F04:
3F04: F1 FA F0 82    MOV:G.B @(-H'0510,R1), R2 ; cycles=7
3F08: D3 72          CMP:G.B @R3, R2 ; cycles=6
3F0A: 27 04          BEQ loc_3F10 ; cycles=3/7 nt/t
3F0C: D3 92          MOV:G.B R2, @R3 ; cycles=6
3F0E: 0E 18          BSR loc_3F28 ; cycles=13

loc_3F10:
3F10: A1 08          ADD:Q.B #1, R1 ; cycles=4
3F12: A3 08          ADD:Q.B #1, R3 ; cycles=4
3F14: 41 10          CMP:E #H'10, R1 ; cycles=2
3F16: 27 02          BEQ loc_3F1A ; cycles=3/7 nt/t
3F18: 20 EA          BRA loc_3F04 ; cycles=7

loc_3F1A:
3F1A: 1D FB 00 07 00 E0 MOV:G.W #H'00E0, @H'FB00 ; refs ram_FB00 in on_chip_ram; cycles=11
3F20: 5C 00 E0       MOV:I.W #H'00E0, R4 ; dataflow R4=H'00E0; cycles=3
3F23: 0E 1B          BSR loc_3F40 ; cycles=14

loc_3F25:
3F25: 02 1F          LDM.W @SP+, {R0,R1,R2,R3,R4} ; cycles=26
3F27: 19             RTS ; cycles=13

loc_3F28:
3F28: AD 84          MOV:G.W R5, R4 ; cycles=3
3F2A: A1 24          ADD:G.B R1, R4 ; cycles=2
3F2C: 1D FB 00 74    CMP:G.W @H'FB00, R4 ; refs ram_FB00 in on_chip_ram; cycles=7
3F30: 27 06          BEQ loc_3F38 ; cycles=3/7 nt/t
3F32: 1D FB 00 94    MOV:G.W R4, @H'FB00 ; refs ram_FB00 in on_chip_ram; cycles=7
3F36: 0E 08          BSR loc_3F40 ; cycles=13

loc_3F38:
3F38: 5C 02 00       MOV:I.W #H'0200, R4 ; dataflow R4=H'0200; cycles=3
3F3B: A2 24          ADD:G.B R2, R4 ; cycles=2
3F3D: 0E 01          BSR loc_3F40 ; cycles=14
3F3F: 19             RTS ; cycles=13

loc_3F40:
3F40: BF 98          STC.W SR, @-R7 ; cycles=8
3F42: 0C 00 FF 58    ANDC.W #H'00FF, SR ; cycles=4
3F46: 0C 06 00 48    ORC.W #H'0600, SR ; cycles=4

loc_3F4A:
3F4A: 15 F2 00 00 80 MOVFPE.B @H'F200, R0 ; LCD status read from E-clock H'F200; LCD busy-flag poll: read H'F200, test bit 7, branch until clear; refs mem_F200 in program_or_external; cycles=13
3F4F: A0 F7          BTST.B #7, R0 ; LCD busy-flag poll: read H'F200, test bit 7, branch until clear; cycles=2
3F51: 26 F7          BNE loc_3F4A ; LCD busy-flag poll: read H'F200, test bit 7, branch until clear; cycles=3/8 nt/t
3F53: AC F8          BTST.W #8, R4 ; cycles=3
3F55: 26 16          BNE loc_3F6D ; cycles=3/8 nt/t
3F57: AC F9          BTST.W #9, R4 ; cycles=3
3F59: 26 07          BNE loc_3F62 ; cycles=3/8 nt/t
3F5B: 15 F2 00 00 94 MOVTPE.B R4, @H'F200 ; LCD command/address write to E-clock H'F200; refs mem_F200 in program_or_external; cycles=13
3F60: 20 10          BRA loc_3F72 ; cycles=7

loc_3F62:
3F62: 15 F2 01 00 94 MOVTPE.B R4, @H'F201 ; LCD data write to E-clock H'F201; refs mem_F201 in program_or_external; cycles=13
3F67: 1D FB 00 08    ADD:Q.W #1, @H'FB00 ; refs ram_FB00 in on_chip_ram; cycles=8
3F6B: 20 05          BRA loc_3F72 ; cycles=8

loc_3F6D:
3F6D: 15 F2 01 00 84 MOVFPE.B @H'F201, R4 ; LCD data read from E-clock H'F201; refs mem_F201 in program_or_external; cycles=13

loc_3F72:
3F72: CF 88          LDC.W @R7+, SR ; cycles=7
3F74: 19             RTS ; cycles=12

loc_3F76:
3F76: 58 27 10       MOV:I.W #H'2710, R0 ; dataflow R0=H'2710; cycles=3
3F79: 59 C3 50       MOV:I.W #H'C350, R1 ; dataflow R1=H'C350; cycles=3

loc_3F7C:
3F7C: 15 FE 82 D7    BCLR.B #7, @P1DR ; clear bit 7 of P1DR; cycles=9
3F80: 01 B8 F9       SCB/F R0, loc_3F7C ; cycles=3/4/8 false/-1/t

loc_3F83:
3F83: 15 FE 82 C7    BSET.B #7, @P1DR ; set bit 7 of P1DR; cycles=8
3F87: 01 B9 F9       SCB/F R1, loc_3F83 ; cycles=3/4/9 false/-1/t
3F8A: A8 13          CLR.W R0 ; dataflow R0=H'0000; cycles=3

loc_3F8C:
3F8C: F8 E0 00 13    CLR.W @(-H'2000,R0) ; cycles=9
3F90: F8 E8 00 13    CLR.W @(-H'1800,R0) ; cycles=9
3F94: F8 F6 80 13    CLR.W @(-H'0980,R0) ; cycles=9
3F98: A8 09          ADD:Q.W #2, R0 ; cycles=4
3F9A: 48 08 00       CMP:I #H'0800, R0 ; cycles=3
3F9D: 26 ED          BNE loc_3F8C ; cycles=3/8 nt/t
3F9F: 1E 03 6A       BSR loc_430C ; cycles=14
3FA2: 1E 03 7F       BSR loc_4324 ; cycles=13
3FA5: 1E 00 EE       BSR loc_4096 ; cycles=14
3FA8: 1E 01 10       BSR loc_40BB ; cycles=13
3FAB: 1E 02 69       BSR loc_4217 ; cycles=14
3FAE: 1E 03 9B       BSR loc_434C ; cycles=13

loc_3FB1:
3FB1: 1D FE EC 07 5A 00 MOV:G.W #H'5A00, @WDT_TCSR_R ; WDT_TCSR_R = H'5A00 (OVF=0 WT/IT=0 TME=0 CKS2=0 CKS1=0 CKS0=0; TCNT password H'5A, counter write H'00); cycles=9
3FB7: 15 F7 94 13    CLR.B @H'F794 ; refs ram_F794 in on_chip_ram; cycles=8
3FBB: 0E 16          BSR loc_3FD3 ; cycles=14
3FBD: 1E 7B EB       BSR loc_BBAB ; cycles=14
3FC0: 0E 2D          BSR loc_3FEF ; cycles=13
3FC2: 1E 00 81       BSR loc_4046 ; cycles=13
3FC5: 1E 7E D6       BSR loc_BE9E ; cycles=14
3FC8: 1E E8 3B       BSR loc_2806 ; cycles=13
3FCB: 1E F9 62       BSR loc_3930 ; cycles=14
3FCE: 1E D6 0F       BSR loc_15E0 ; cycles=13
3FD1: 20 DE          BRA loc_3FB1 ; cycles=8

loc_3FD3:
3FD3: 15 FA A2 16    TST.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=6
3FD7: 26 15          BNE loc_3FEE ; cycles=3/8 nt/t
3FD9: 15 FA A5 F7    BTST.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=6
3FDD: 27 06          BEQ loc_3FE5 ; cycles=3/8 nt/t
3FDF: 15 F9 C3 16    TST.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=6
3FE3: 26 09          BNE loc_3FEE ; cycles=3/8 nt/t

loc_3FE5:
3FE5: 15 F9 C0 16    TST.B @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=6
3FE9: 26 03          BNE loc_3FEE ; cycles=3/8 nt/t
3FEB: 1E 7B 04       BSR loc_BAF2 ; cycles=14

loc_3FEE:
3FEE: 19             RTS ; cycles=12

loc_3FEF:
3FEF: 15 F9 C5 16    TST.B @H'F9C5 ; refs ram_F9C5 in on_chip_ram; cycles=6
3FF3: 26 12          BNE loc_4007 ; cycles=3/8 nt/t
3FF5: 15 F9 B5 13    CLR.B @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=8
3FF9: 15 F9 B0 13    CLR.B @H'F9B0 ; refs ram_F9B0 in on_chip_ram; cycles=8
3FFD: 15 FA A5 D7    BCLR.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=8
4001: 27 08          BEQ loc_400B ; cycles=3/8 nt/t
4003: 0E 07          BSR loc_400C ; cycles=14
4005: 20 04          BRA loc_400B ; cycles=8

loc_4007:
4007: 15 FA A5 C7    BSET.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=8

loc_400B:
400B: 19             RTS ; cycles=13

loc_400C:
400C: 15 F7 30 13    CLR.B @H'F730 ; refs ram_F730 in on_chip_ram; cycles=9
4010: 15 F7 56 13    CLR.B @H'F756 ; refs ram_F756 in on_chip_ram; cycles=9
4014: 15 F7 57 13    CLR.B @H'F757 ; refs ram_F757 in on_chip_ram; cycles=9
4018: 15 F7 58 13    CLR.B @H'F758 ; refs ram_F758 in on_chip_ram; cycles=9
401C: 15 F7 59 13    CLR.B @H'F759 ; refs ram_F759 in on_chip_ram; cycles=9
4020: 1D F7 32 13    CLR.W @H'F732 ; refs ram_F732 in on_chip_ram; cycles=9
4024: 1D F7 5C 13    CLR.W @H'F75C ; refs ram_F75C in on_chip_ram; cycles=9
4028: 15 FB 03 13    CLR.B @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=9
402C: 1D E0 46 13    CLR.W @H'E046 ; refs mem_E046 in program_or_external; cycles=9
4030: 1D F7 6A 13    CLR.W @H'F76A ; refs ram_F76A in on_chip_ram; cycles=9
4034: 15 F7 91 13    CLR.B @H'F791 ; refs ram_F791 in on_chip_ram; cycles=9
4038: 15 F7 95 13    CLR.B @H'F795 ; refs ram_F795 in on_chip_ram; cycles=9
403C: 15 F7 6E 13    CLR.B @H'F76E ; refs ram_F76E in on_chip_ram; cycles=9
4040: 0E 33          BSR loc_4075 ; cycles=13
4042: 1E 01 D2       BSR loc_4217 ; cycles=13
4045: 19             RTS ; cycles=13

loc_4046:
4046: 15 F9 C4 16    TST.B @H'F9C4 ; refs ram_F9C4 in on_chip_ram; cycles=7
404A: 26 0C          BNE loc_4058 ; cycles=3/7 nt/t
404C: 15 FA A5 F7    BTST.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=7
4050: 27 07          BEQ loc_4059 ; cycles=3/7 nt/t
4052: 15 F9 C3 16    TST.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=7
4056: 27 01          BEQ loc_4059 ; cycles=3/7 nt/t

loc_4058:
4058: 19             RTS ; cycles=12

loc_4059:
4059: 15 F9 B0 82    MOV:G.B @H'F9B0, R2 ; refs ram_F9B0 in on_chip_ram; cycles=6
405D: A2 12          EXTU.B R2 ; cycles=3
405F: 15 F9 B5 72    CMP:G.B @H'F9B5, R2 ; refs ram_F9B5 in on_chip_ram; cycles=6
4063: 26 0F          BNE loc_4074 ; cycles=3/8 nt/t
4065: A2 1A          SHLL.B R2 ; cycles=2
4067: FA F8 70 06 00 MOV:G.W #H'00, @(-H'0790,R2) ; cycles=11
406C: 15 F9 B0 08    ADD:Q.B #1, @H'F9B0 ; refs ram_F9B0 in on_chip_ram; cycles=9
4070: 15 F9 B0 D7    BCLR.B #7, @H'F9B0 ; refs ram_F9B0 in on_chip_ram; cycles=9

loc_4074:
4074: 19             RTS ; cycles=12

loc_4075:
4075: A8 13          CLR.W R0 ; dataflow R0=H'0000; cycles=3

loc_4077:
4077: F8 E0 00 13    CLR.W @(-H'2000,R0) ; cycles=8
407B: F8 E4 00 13    CLR.W @(-H'1C00,R0) ; cycles=8
407F: F8 E8 00 13    CLR.W @(-H'1800,R0) ; cycles=8
4083: 48 02 00       CMP:I #H'0200, R0 ; cycles=3
4086: 24 04          BCC loc_408C ; cycles=3/7 nt/t
4088: F8 EC 00 13    CLR.W @(-H'1400,R0) ; cycles=9

loc_408C:
408C: A8 09          ADD:Q.W #2, R0 ; cycles=4
408E: 48 04 00       CMP:I #H'0400, R0 ; cycles=3
4091: 26 E4          BNE loc_4077 ; cycles=3/8 nt/t
4093: 0E 01          BSR loc_4096 ; cycles=14
4095: 19             RTS ; cycles=13

loc_4096:
4096: 1D E0 00 07 00 80 MOV:G.W #H'0080, @H'E000 ; refs mem_E000 in program_or_external; cycles=11
409C: 1D E0 06 07 80 00 MOV:G.W #H'8000, @H'E006 ; refs mem_E006 in program_or_external; cycles=11
40A2: 1D E0 80 07 FF FF MOV:G.W #H'FFFF, @H'E080 ; refs mem_E080 in program_or_external; cycles=11
40A8: 1D E8 00 07 00 80 MOV:G.W #H'0080, @H'E800 ; refs mem_E800 in program_or_external; cycles=11
40AE: 1D E8 06 07 80 00 MOV:G.W #H'8000, @H'E806 ; refs mem_E806 in program_or_external; cycles=11
40B4: 1D E8 80 07 FF FF MOV:G.W #H'FFFF, @H'E880 ; refs mem_E880 in program_or_external; cycles=11
40BA: 19             RTS ; cycles=12

loc_40BB:
40BB: 58 00 40       MOV:I.W #H'0040, R0 ; dataflow R0=H'0040; cycles=3

loc_40BE:
40BE: F8 F8 6E 07 FF FF MOV:G.W #H'FFFF, @(-H'0792,R0) ; cycles=9
40C4: F8 F8 AE 07 FF FF MOV:G.W #H'FFFF, @(-H'0752,R0) ; cycles=9
40CA: F8 F8 EE 07 FF FF MOV:G.W #H'FFFF, @(-H'0712,R0) ; cycles=9
40D0: F8 F9 2E 07 FF FF MOV:G.W #H'FFFF, @(-H'06D2,R0) ; cycles=9
40D6: F8 F9 6E 07 FF FF MOV:G.W #H'FFFF, @(-H'0692,R0) ; cycles=9
40DC: A8 0D          ADD:Q.W #-2, R0 ; cycles=4
40DE: 26 DE          BNE loc_40BE ; cycles=3/7 nt/t
40E0: 15 F9 C4 06 14 MOV:G.B #H'14, @H'F9C4 ; refs ram_F9C4 in on_chip_ram; cycles=9
40E5: 15 F6 F7 06 80 MOV:G.B #H'80, @H'F6F7 ; refs ram_F6F7 in on_chip_ram; cycles=9
40EA: 15 F6 F8 06 80 MOV:G.B #H'80, @H'F6F8 ; refs ram_F6F8 in on_chip_ram; cycles=9
40EF: 15 F6 F9 06 80 MOV:G.B #H'80, @H'F6F9 ; refs ram_F6F9 in on_chip_ram; cycles=9
40F4: 15 FE 8E F7    BTST.B #7, @P7DR ; refs P7DR in register_field; cycles=7
40F8: 27 09          BEQ loc_4103 ; cycles=3/7 nt/t
40FA: 1D F4 02 05 6B 6F CMP:G.W #H'6B6F, @H'F402 ; refs mem_F402 in program_or_external; cycles=7
4100: 37 00 AD       BEQ loc_41B0 ; cycles=3/7 nt/t

loc_4103:
4103: 58 01 00       MOV:I.W #H'0100, R0 ; dataflow R0=H'0100; cycles=3

loc_4106:
4106: A8 0D          ADD:Q.W #-2, R0 ; cycles=4
4108: F8 C9 64 85    MOV:G.W @(-H'369C,R0), R5 ; cycles=7
410C: F8 F4 00 95    MOV:G.W R5, @(-H'0C00,R0) ; cycles=7
4110: BF 90          MOV:G.W R0, @-R7 ; cycles=6
4112: A8 84          MOV:G.W R0, R4 ; cycles=3
4114: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4117: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
411B: 18 BF E0       JSR @loc_BFE0 ; cycles=14
411E: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4122: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4125: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4129: 18 BF E0       JSR @loc_BFE0 ; cycles=14
412C: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4130: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4133: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4137: 18 BF E0       JSR @loc_BFE0 ; cycles=14
413A: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
413E: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4141: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4145: 18 BF E0       JSR @loc_BFE0 ; cycles=14
4148: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
414C: 18 BF E0       JSR @loc_BFE0 ; cycles=13
414F: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4153: 18 BF E0       JSR @loc_BFE0 ; cycles=14
4156: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
415A: 18 BF E0       JSR @loc_BFE0 ; cycles=13
415D: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4161: 18 BF E0       JSR @loc_BFE0 ; cycles=14
4164: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4168: 18 BF E0       JSR @loc_BFE0 ; cycles=13
416B: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
416F: 18 BF E0       JSR @loc_BFE0 ; cycles=14
4172: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
4176: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4179: 0C 01 00 24    ADD:G.W #H'0100, R4 ; cycles=4
417D: 18 BF E0       JSR @loc_BFE0 ; cycles=14
4180: CF 80          MOV:G.W @R7+, R0 ; cycles=5
4182: 26 82          BNE loc_4106 ; cycles=3/7 nt/t
4184: 58 00 0F       MOV:I.W #H'000F, R0 ; dataflow R0=H'000F; cycles=3

loc_4187:
4187: BF 90          MOV:G.W R0, @-R7 ; cycles=5
4189: A8 84          MOV:G.W R0, R4 ; cycles=3
418B: A4 10          SWAP.B R4 ; cycles=3
418D: 5D 20 20       MOV:I.W #H'2020, R5 ; dataflow R5=H'2020; cycles=3
4190: 18 BF E0       JSR @loc_BFE0 ; cycles=13
4193: AC 09          ADD:Q.W #2, R4 ; cycles=4
4195: 5D 20 20       MOV:I.W #H'2020, R5 ; dataflow R5=H'2020; cycles=3
4198: 18 BF E0       JSR @loc_BFE0 ; cycles=13
419B: AC 09          ADD:Q.W #2, R4 ; cycles=4
419D: 5D 20 20       MOV:I.W #H'2020, R5 ; dataflow R5=H'2020; cycles=3
41A0: 18 BF E0       JSR @loc_BFE0 ; cycles=13
41A3: AC 09          ADD:Q.W #2, R4 ; cycles=4
41A5: 5D 20 20       MOV:I.W #H'2020, R5 ; dataflow R5=H'2020; cycles=3
41A8: 18 BF E0       JSR @loc_BFE0 ; cycles=13
41AB: CF 80          MOV:G.W @R7+, R0 ; cycles=6
41AD: 01 B8 D7       SCB/F R0, loc_4187 ; cycles=3/4/9 false/-1/t

loc_41B0:
41B0: 20 20          BRA loc_41D2 ; cycles=7

loc_41D2:
41D2: 58 00 0F       MOV:I.W #H'000F, R0 ; dataflow R0=H'000F; cycles=3

loc_41D5:
41D5: A8 81          MOV:G.W R0, R1 ; cycles=3
41D7: A1 1A          SHLL.B R1 ; cycles=2
41D9: A1 1A          SHLL.B R1 ; cycles=2
41DB: A1 1A          SHLL.B R1 ; cycles=2
41DD: A8 84          MOV:G.W R0, R4 ; cycles=3
41DF: A4 10          SWAP.B R4 ; cycles=3
41E1: 12 03          STM.W {R0,R1}, @-SP ; cycles=12
41E3: 18 BF FE       JSR @loc_BFFE ; cycles=14
41E6: 02 03          LDM.W @SP+, {R0,R1} ; cycles=14
41E8: F9 F7 B0 95    MOV:G.W R5, @(-H'0850,R1) ; cycles=7
41EC: AC 09          ADD:Q.W #2, R4 ; cycles=4
41EE: 12 03          STM.W {R0,R1}, @-SP ; cycles=12
41F0: 18 BF FE       JSR @loc_BFFE ; cycles=13
41F3: 02 03          LDM.W @SP+, {R0,R1} ; cycles=14
41F5: F9 F7 B2 95    MOV:G.W R5, @(-H'084E,R1) ; cycles=6
41F9: AC 09          ADD:Q.W #2, R4 ; cycles=4
41FB: 12 03          STM.W {R0,R1}, @-SP ; cycles=12
41FD: 18 BF FE       JSR @loc_BFFE ; cycles=14
4200: 02 03          LDM.W @SP+, {R0,R1} ; cycles=14
4202: F9 F7 B4 95    MOV:G.W R5, @(-H'084C,R1) ; cycles=7
4206: AC 09          ADD:Q.W #2, R4 ; cycles=4
4208: 12 03          STM.W {R0,R1}, @-SP ; cycles=12
420A: 18 BF FE       JSR @loc_BFFE ; cycles=13
420D: 02 03          LDM.W @SP+, {R0,R1} ; cycles=14
420F: F9 F7 B6 95    MOV:G.W R5, @(-H'084A,R1) ; cycles=6
4213: 01 B8 BF       SCB/F R0, loc_41D5 ; cycles=3/4/9 false/-1/t
4216: 19             RTS ; cycles=12

loc_4217:
4217: 15 F7 98 13    CLR.B @H'F798 ; refs ram_F798 in on_chip_ram; cycles=8
421B: 15 F7 31 C7    BSET.B #7, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=8
421F: 15 FE 82 D2    BCLR.B #2, @P1DR ; clear bit 2 of P1DR; cycles=8
4223: 1D F7 00 07 24 24 MOV:G.W #H'2424, @H'F700 ; refs ram_F700 in on_chip_ram; cycles=9
4229: 1D F7 02 07 24 24 MOV:G.W #H'2424, @H'F702 ; refs ram_F702 in on_chip_ram; cycles=9
422F: 1D F7 04 07 24 24 MOV:G.W #H'2424, @H'F704 ; refs ram_F704 in on_chip_ram; cycles=9
4235: 1D F7 06 07 24 24 MOV:G.W #H'2424, @H'F706 ; refs ram_F706 in on_chip_ram; cycles=9
423B: 15 F7 08 06 7F MOV:G.B #H'7F, @H'F708 ; refs ram_F708 in on_chip_ram; cycles=9
4240: 15 F7 09 06 24 MOV:G.B #H'24, @H'F709 ; refs ram_F709 in on_chip_ram; cycles=9
4245: 1D F7 0A 07 24 24 MOV:G.W #H'2424, @H'F70A ; refs ram_F70A in on_chip_ram; cycles=9
424B: 15 F7 10 13    CLR.B @H'F710 ; refs ram_F710 in on_chip_ram; cycles=8
424F: 15 F7 11 13    CLR.B @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8
4253: 15 F7 12 13    CLR.B @H'F712 ; refs ram_F712 in on_chip_ram; cycles=8
4257: 15 F7 13 13    CLR.B @H'F713 ; refs ram_F713 in on_chip_ram; cycles=8
425B: 15 F7 14 13    CLR.B @H'F714 ; refs ram_F714 in on_chip_ram; cycles=8
425F: 15 F7 15 13    CLR.B @H'F715 ; refs ram_F715 in on_chip_ram; cycles=8
4263: 15 F7 16 13    CLR.B @H'F716 ; refs ram_F716 in on_chip_ram; cycles=8
4267: 15 F7 17 13    CLR.B @H'F717 ; refs ram_F717 in on_chip_ram; cycles=8
426B: 15 F7 18 06 FF MOV:G.B #H'FF, @H'F718 ; refs ram_F718 in on_chip_ram; cycles=9
4270: 15 F7 19 06 FF MOV:G.B #H'FF, @H'F719 ; refs ram_F719 in on_chip_ram; cycles=9
4275: 15 F7 1A 06 FF MOV:G.B #H'FF, @H'F71A ; refs ram_F71A in on_chip_ram; cycles=9
427A: 15 F7 1B 06 FF MOV:G.B #H'FF, @H'F71B ; refs ram_F71B in on_chip_ram; cycles=9
427F: 15 F7 1C 06 FF MOV:G.B #H'FF, @H'F71C ; refs ram_F71C in on_chip_ram; cycles=9
4284: 15 F7 1D 06 FF MOV:G.B #H'FF, @H'F71D ; refs ram_F71D in on_chip_ram; cycles=9
4289: 15 F7 1E 06 FF MOV:G.B #H'FF, @H'F71E ; refs ram_F71E in on_chip_ram; cycles=9
428E: 15 F7 1F 06 FF MOV:G.B #H'FF, @H'F71F ; refs ram_F71F in on_chip_ram; cycles=9
4293: 1D FA F0 07 20 43 MOV:G.W #H'2043, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
4299: 1D FA F2 07 4F 4E MOV:G.W #H'4F4E, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=9
429F: 1D FA F4 07 4E 45 MOV:G.W #H'4E45, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
42A5: 1D FA F6 07 43 54 MOV:G.W #H'4354, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
42AB: 1D FA F8 07 3A 4E MOV:G.W #H'3A4E, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9
42B1: 1D FA FA 07 4F 54 MOV:G.W #H'4F54, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
42B7: 1D FA FC 07 20 41 MOV:G.W #H'2041, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
42BD: 1D FA FE 07 43 54 MOV:G.W #H'4354, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
42C3: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
42C6: 1E FC 03       BSR loc_3ECC ; cycles=13
42C9: 1D FA F0 07 20 20 MOV:G.W #H'2020, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
42CF: 1D FA F2 07 20 20 MOV:G.W #H'2020, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=9
42D5: 1D FA F4 07 20 20 MOV:G.W #H'2020, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
42DB: 1D FA F6 07 20 20 MOV:G.W #H'2020, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
42E1: 1D FA F8 07 20 20 MOV:G.W #H'2020, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9
42E7: 1D FA FA 07 20 20 MOV:G.W #H'2020, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
42ED: 1D FA FC 07 20 20 MOV:G.W #H'2020, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
42F3: 1D FA FE 07 20 20 MOV:G.W #H'2020, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
42F9: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
42FC: 1E FB CD       BSR loc_3ECC ; cycles=13
42FF: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
4302: 1E FB C7       BSR loc_3ECC ; cycles=13
4305: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
4308: 1E FB C1       BSR loc_3ECC ; cycles=13
430B: 19             RTS ; cycles=13

loc_430C:
430C: 15 FE 8B D0    BCLR.B #0, @P6DR ; clear bit 0 of P6DR; cycles=9
4310: 15 F5 55 06 AA MOV:G.B #H'AA, @H'F555 ; refs mem_F555 in program_or_external; cycles=9
4315: 15 F4 AA 06 55 MOV:G.B #H'55, @H'F4AA ; refs mem_F4AA in program_or_external; cycles=9
431A: 15 F5 55 06 CC MOV:G.B #H'CC, @H'F555 ; refs mem_F555 in program_or_external; cycles=9
431F: 15 FE 8B C0    BSET.B #0, @P6DR ; set bit 0 of P6DR; cycles=8
4323: 19             RTS ; cycles=13

loc_4324:
4324: 5C 00 38       MOV:I.W #H'0038, R4 ; dataflow R4=H'0038; cycles=3
4327: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
432A: 1E FB 9F       BSR loc_3ECC ; cycles=13
432D: 5C 00 01       MOV:I.W #H'0001, R4 ; dataflow R4=H'0001; cycles=3
4330: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
4333: 1E FB 96       BSR loc_3ECC ; cycles=14
4336: 5C 00 0E       MOV:I.W #H'000E, R4 ; dataflow R4=H'000E; cycles=3
4339: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
433C: 1E FB 8D       BSR loc_3ECC ; cycles=13
433F: 5C 00 06       MOV:I.W #H'0006, R4 ; dataflow R4=H'0006; cycles=3
4342: 5D 00 04       MOV:I.W #H'0004, R5 ; dataflow R5=H'0004; cycles=3
4345: 1E FB 84       BSR loc_3ECC ; cycles=14
4348: 1E CD 83       BSR loc_10CE ; cycles=13
434B: 19             RTS ; cycles=13

loc_434C:
434C: 15 FF 00 06 70 MOV:G.B #H'70, @IPRA ; IPRA = H'70 (irq0 priority=7; irq1 priority=0); cycles=9
4351: 15 FF 01 06 44 MOV:G.B #H'44, @IPRB ; IPRB = H'44 (irq2/irq3 priority=4; irq4/irq5 priority=4); cycles=9
4356: 15 FF 02 06 66 MOV:G.B #H'66, @IPRC ; IPRC = H'66 (FRT1 priority=6; FRT2 priority=6); cycles=9
435B: 15 FF 03 06 00 MOV:G.B #H'00, @IPRD ; IPRD = H'00 (FRT3 priority=0; 8-bit timer priority=0); cycles=9
4360: 15 FF 04 06 50 MOV:G.B #H'50, @IPRE ; IPRE = H'50 (SCI1 priority=5; SCI2 priority=0); cycles=9
4365: 15 FF 05 06 40 MOV:G.B #H'40, @IPRF ; IPRF = H'40 (A/D priority=4); cycles=9
436A: 15 FE DA C6    BSET.B #6, @SCI1_SCR ; set RIE (bit 6) of SCI1_SCR; enable SCI1 receive and receive-error interrupts (RIE); SCI1 SCR write TE=1 RE=1; TE/RE select the traced RS232/MAX202 pins (P95/TXD pin 66 to MAX202 pin 11, P96/RXD pin 67 to MAX202 pin 12); cycles=9
436E: 15 FE 90 C5    BSET.B #5, @FRT1_TCR ; set OCIEA (bit 5) of FRT1_TCR; cycles=9
4372: 15 FE A0 C5    BSET.B #5, @FRT2_TCR ; set OCIEA (bit 5) of FRT2_TCR; cycles=9
4376: 15 FE E8 C6    BSET.B #6, @ADCSR ; set ADIE (bit 6) of ADCSR; cycles=9
437A: 15 FE FD C4    BSET.B #4, @SYSCR2 ; set IRQ3E (bit 4) of SYSCR2; SYSCR2 write leaves P9SCI2E=0; SCI2 pins are disabled, so SCI2 is not the traced MAX202 path; traced RS232/MAX202 remains SCI1 P95/P96; cycles=9
437E: 15 FE FD C5    BSET.B #5, @SYSCR2 ; set IRQ4E (bit 5) of SYSCR2; SYSCR2 write leaves P9SCI2E=0; SCI2 pins are disabled, so SCI2 is not the traced MAX202 path; traced RS232/MAX202 remains SCI1 P95/P96; cycles=9
4382: 15 FE 8E F6    BTST.B #6, @P7DR ; refs P7DR in register_field; cycles=7
4386: 27 06          BEQ loc_438E ; cycles=3/7 nt/t
4388: 1D FE EC 07 A5 3F MOV:G.W #H'A53F, @WDT_TCSR_R ; WDT_TCSR_R = H'A53F (OVF=0 WT/IT=0 TME=1 CKS2=1 CKS1=1 CKS0=1; TCSR password H'A5, WDT enabled, interval IRQ0, clock phi/4096); cycles=11

loc_438E:
438E: 0C 03 00 88    LDC.W #H'0300, SR ; dataflow SR=H'0300; cycles=6
4392: 19             RTS ; cycles=12

vec_nmi_4393:
4393: 0A             RTE ; cycles=14

loc_4394:
4394: 15 F7 31 04 01 CMP:G.B #H'01, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=7
4399: 32 00 86       BHI loc_4422 ; cycles=3/8 nt/t
439C: 15 FB 03 F7    BTST.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=7
43A0: 36 00 7F       BNE loc_4422 ; cycles=3/7 nt/t
43A3: 1D F7 36 83    MOV:G.W @H'F736, R3 ; refs ram_F736 in on_chip_ram; cycles=6
43A7: 37 00 78       BEQ loc_4422 ; cycles=3/8 nt/t
43AA: 1D F6 9E 84    MOV:G.W @H'F69E, R4 ; refs ram_F69E in on_chip_ram; cycles=7
43AE: 1D F6 BE 34    SUB.W @H'F6BE, R4 ; refs ram_F6BE in on_chip_ram; cycles=7
43B2: AB DF          BCLR.W #15, R3 ; cycles=3
43B4: 26 19          BNE loc_43CF ; cycles=3/7 nt/t
43B6: AB DE          BCLR.W #14, R3 ; cycles=3
43B8: 26 21          BNE loc_43DB ; cycles=3/7 nt/t
43BA: AB DD          BCLR.W #13, R3 ; cycles=3
43BC: 26 29          BNE loc_43E7 ; cycles=3/7 nt/t
43BE: AB DC          BCLR.W #12, R3 ; cycles=3
43C0: 26 31          BNE loc_43F3 ; cycles=3/7 nt/t
43C2: AB DB          BCLR.W #11, R3 ; cycles=3
43C4: 26 39          BNE loc_43FF ; cycles=3/7 nt/t
43C6: AB DA          BCLR.W #10, R3 ; cycles=3
43C8: 26 43          BNE loc_440D ; cycles=3/7 nt/t
43CA: 1E D5 D5       BSR loc_19A2 ; cycles=13
43CD: 20 53          BRA loc_4422 ; cycles=8

loc_43CF:
43CF: 0E 5E          BSR loc_442F ; cycles=14
43D1: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
43D4: 27 03          BEQ loc_43D9 ; cycles=3/7 nt/t
43D6: 1E D6 5C       BSR loc_1A35 ; cycles=13

loc_43D9:
43D9: 20 47          BRA loc_4422 ; cycles=8

loc_43DB:
43DB: 0E 52          BSR loc_442F ; cycles=14
43DD: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
43E0: 27 03          BEQ loc_43E5 ; cycles=3/7 nt/t
43E2: 1E D6 B7       BSR loc_1A9C ; cycles=13

loc_43E5:
43E5: 20 3B          BRA loc_4422 ; cycles=8

loc_43E7:
43E7: 0E 46          BSR loc_442F ; cycles=14
43E9: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
43EC: 27 03          BEQ loc_43F1 ; cycles=3/7 nt/t
43EE: 1E D6 F3       BSR loc_1AE4 ; cycles=13

loc_43F1:
43F1: 20 2F          BRA loc_4422 ; cycles=8

loc_43F3:
43F3: 0E 3A          BSR loc_442F ; cycles=14
43F5: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
43F8: 27 03          BEQ loc_43FD ; cycles=3/7 nt/t
43FA: 1E D7 0E       BSR loc_1B0B ; cycles=13

loc_43FD:
43FD: 20 23          BRA loc_4422 ; cycles=8

loc_43FF:
43FF: 15 F7 70 06 80 MOV:G.B #H'80, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
4404: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=7
4408: 1E 04 EF       BSR loc_48FA ; cycles=13
440B: 20 15          BRA loc_4422 ; cycles=8

loc_440D:
440D: 0E 20          BSR loc_442F ; cycles=14
440F: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
4412: 27 0C          BEQ loc_4420 ; cycles=3/7 nt/t
4414: 15 F7 70 06 80 MOV:G.B #H'80, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
4419: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=6
441D: 1E 04 DA       BSR loc_48FA ; cycles=14

loc_4420:
4420: 20 00          BRA loc_4422 ; cycles=7

loc_4422:
4422: 1D F6 9E 84    MOV:G.W @H'F69E, R4 ; refs ram_F69E in on_chip_ram; cycles=7
4426: 1D F6 BE 94    MOV:G.W R4, @H'F6BE ; refs ram_F6BE in on_chip_ram; cycles=7
442A: 15 FB 02 13    CLR.B @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
442E: 19             RTS ; cycles=12

loc_442F:
442F: 15 F6 F7 24    ADD:G.B @H'F6F7, R4 ; refs ram_F6F7 in on_chip_ram; cycles=6
4433: 44 88          CMP:E #H'88, R4 ; cycles=2
4435: 24 0D          BCC loc_4444 ; cycles=3/8 nt/t
4437: 44 78          CMP:E #H'78, R4 ; cycles=2
4439: 23 13          BLS loc_444E ; cycles=3/8 nt/t
443B: 15 F6 F7 94    MOV:G.B R4, @H'F6F7 ; refs ram_F6F7 in on_chip_ram; cycles=6
443F: 5C 00 02       MOV:I.W #H'0002, R4 ; dataflow R4=H'0002; cycles=3
4442: 20 12          BRA loc_4456 ; cycles=7

loc_4444:
4444: 15 F6 F7 06 80 MOV:G.B #H'80, @H'F6F7 ; refs ram_F6F7 in on_chip_ram; cycles=9
4449: 5C 00 00       MOV:I.W #H'0000, R4 ; dataflow R4=H'0000; cycles=3
444C: 20 08          BRA loc_4456 ; cycles=7

loc_444E:
444E: 15 F6 F7 06 80 MOV:G.B #H'80, @H'F6F7 ; refs ram_F6F7 in on_chip_ram; cycles=9
4453: 5C 00 01       MOV:I.W #H'0001, R4 ; dataflow R4=H'0001; cycles=3

loc_4456:
4456: 19             RTS ; cycles=12

loc_4457:
4457: 15 F7 31 04 01 CMP:G.B #H'01, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=6
445C: 32 00 86       BHI loc_44E5 ; cycles=3/7 nt/t
445F: 15 FB 03 F7    BTST.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=6
4463: 36 00 7F       BNE loc_44E5 ; cycles=3/8 nt/t
4466: 1D F7 38 83    MOV:G.W @H'F738, R3 ; refs ram_F738 in on_chip_ram; cycles=7
446A: 37 00 78       BEQ loc_44E5 ; cycles=3/7 nt/t
446D: 1D F6 9C 84    MOV:G.W @H'F69C, R4 ; refs ram_F69C in on_chip_ram; cycles=6
4471: 1D F6 BC 34    SUB.W @H'F6BC, R4 ; refs ram_F6BC in on_chip_ram; cycles=6
4475: AB DF          BCLR.W #15, R3 ; cycles=3
4477: 26 19          BNE loc_4492 ; cycles=3/8 nt/t
4479: AB DE          BCLR.W #14, R3 ; cycles=3
447B: 26 21          BNE loc_449E ; cycles=3/8 nt/t
447D: AB DD          BCLR.W #13, R3 ; cycles=3
447F: 26 29          BNE loc_44AA ; cycles=3/8 nt/t
4481: AB DC          BCLR.W #12, R3 ; cycles=3
4483: 26 31          BNE loc_44B6 ; cycles=3/8 nt/t
4485: AB DB          BCLR.W #11, R3 ; cycles=3
4487: 26 39          BNE loc_44C2 ; cycles=3/8 nt/t
4489: AB DA          BCLR.W #10, R3 ; cycles=3
448B: 26 43          BNE loc_44D0 ; cycles=3/8 nt/t
448D: 1E D5 12       BSR loc_19A2 ; cycles=14
4490: 20 53          BRA loc_44E5 ; cycles=7

loc_4492:
4492: 0E 5E          BSR loc_44F2 ; cycles=13
4494: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
4497: 27 03          BEQ loc_449C ; cycles=3/8 nt/t
4499: 1E D5 99       BSR loc_1A35 ; cycles=14

loc_449C:
449C: 20 47          BRA loc_44E5 ; cycles=7

loc_449E:
449E: 0E 52          BSR loc_44F2 ; cycles=13
44A0: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
44A3: 27 03          BEQ loc_44A8 ; cycles=3/8 nt/t
44A5: 1E D5 F4       BSR loc_1A9C ; cycles=14

loc_44A8:
44A8: 20 3B          BRA loc_44E5 ; cycles=7

loc_44AA:
44AA: 0E 46          BSR loc_44F2 ; cycles=13
44AC: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
44AF: 27 03          BEQ loc_44B4 ; cycles=3/8 nt/t
44B1: 1E D6 30       BSR loc_1AE4 ; cycles=14

loc_44B4:
44B4: 20 2F          BRA loc_44E5 ; cycles=7

loc_44B6:
44B6: 0E 3A          BSR loc_44F2 ; cycles=13
44B8: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
44BB: 27 03          BEQ loc_44C0 ; cycles=3/8 nt/t
44BD: 1E D6 4B       BSR loc_1B0B ; cycles=14

loc_44C0:
44C0: 20 23          BRA loc_44E5 ; cycles=7

loc_44C2:
44C2: 15 F7 70 06 40 MOV:G.B #H'40, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
44C7: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=6
44CB: 1E 04 2C       BSR loc_48FA ; cycles=14
44CE: 20 15          BRA loc_44E5 ; cycles=7

loc_44D0:
44D0: 0E 20          BSR loc_44F2 ; cycles=13
44D2: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
44D5: 27 0C          BEQ loc_44E3 ; cycles=3/8 nt/t
44D7: 15 F7 70 06 40 MOV:G.B #H'40, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
44DC: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=7
44E0: 1E 04 17       BSR loc_48FA ; cycles=13

loc_44E3:
44E3: 20 00          BRA loc_44E5 ; cycles=8

loc_44E5:
44E5: 1D F6 9C 84    MOV:G.W @H'F69C, R4 ; refs ram_F69C in on_chip_ram; cycles=6
44E9: 1D F6 BC 94    MOV:G.W R4, @H'F6BC ; refs ram_F6BC in on_chip_ram; cycles=6
44ED: 15 FB 02 13    CLR.B @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=8
44F1: 19             RTS ; cycles=13

loc_44F2:
44F2: 15 F6 F8 24    ADD:G.B @H'F6F8, R4 ; refs ram_F6F8 in on_chip_ram; cycles=7
44F6: 44 88          CMP:E #H'88, R4 ; cycles=2
44F8: 24 0D          BCC loc_4507 ; cycles=3/7 nt/t
44FA: 44 78          CMP:E #H'78, R4 ; cycles=2
44FC: 23 13          BLS loc_4511 ; cycles=3/7 nt/t
44FE: 15 F6 F8 94    MOV:G.B R4, @H'F6F8 ; refs ram_F6F8 in on_chip_ram; cycles=7
4502: 5C 00 02       MOV:I.W #H'0002, R4 ; dataflow R4=H'0002; cycles=3
4505: 20 12          BRA loc_4519 ; cycles=8

loc_4507:
4507: 15 F6 F8 06 80 MOV:G.B #H'80, @H'F6F8 ; refs ram_F6F8 in on_chip_ram; cycles=9
450C: 5C 00 00       MOV:I.W #H'0000, R4 ; dataflow R4=H'0000; cycles=3
450F: 20 08          BRA loc_4519 ; cycles=8

loc_4511:
4511: 15 F6 F8 06 80 MOV:G.B #H'80, @H'F6F8 ; refs ram_F6F8 in on_chip_ram; cycles=9
4516: 5C 00 01       MOV:I.W #H'0001, R4 ; dataflow R4=H'0001; cycles=3

loc_4519:
4519: 19             RTS ; cycles=13

loc_451A:
451A: 15 F7 31 04 01 CMP:G.B #H'01, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=7
451F: 32 00 86       BHI loc_45A8 ; cycles=3/8 nt/t
4522: 15 FB 03 F7    BTST.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=7
4526: 36 00 7F       BNE loc_45A8 ; cycles=3/7 nt/t
4529: 1D F7 3A 83    MOV:G.W @H'F73A, R3 ; refs ram_F73A in on_chip_ram; cycles=6
452D: 37 00 78       BEQ loc_45A8 ; cycles=3/8 nt/t
4530: 1D F6 9A 84    MOV:G.W @H'F69A, R4 ; refs ram_F69A in on_chip_ram; cycles=7
4534: 1D F6 BA 34    SUB.W @H'F6BA, R4 ; refs ram_F6BA in on_chip_ram; cycles=7
4538: AB DF          BCLR.W #15, R3 ; cycles=3
453A: 26 19          BNE loc_4555 ; cycles=3/7 nt/t
453C: AB DE          BCLR.W #14, R3 ; cycles=3
453E: 26 21          BNE loc_4561 ; cycles=3/7 nt/t
4540: AB DD          BCLR.W #13, R3 ; cycles=3
4542: 26 29          BNE loc_456D ; cycles=3/7 nt/t
4544: AB DC          BCLR.W #12, R3 ; cycles=3
4546: 26 31          BNE loc_4579 ; cycles=3/7 nt/t
4548: AB DB          BCLR.W #11, R3 ; cycles=3
454A: 26 39          BNE loc_4585 ; cycles=3/7 nt/t
454C: AB DA          BCLR.W #10, R3 ; cycles=3
454E: 26 43          BNE loc_4593 ; cycles=3/7 nt/t
4550: 1E D4 4F       BSR loc_19A2 ; cycles=13
4553: 20 53          BRA loc_45A8 ; cycles=8

loc_4555:
4555: 0E 5E          BSR loc_45B5 ; cycles=14
4557: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
455A: 27 03          BEQ loc_455F ; cycles=3/7 nt/t
455C: 1E D4 D6       BSR loc_1A35 ; cycles=13

loc_455F:
455F: 20 47          BRA loc_45A8 ; cycles=8

loc_4561:
4561: 0E 52          BSR loc_45B5 ; cycles=14
4563: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
4566: 27 03          BEQ loc_456B ; cycles=3/7 nt/t
4568: 1E D5 31       BSR loc_1A9C ; cycles=13

loc_456B:
456B: 20 3B          BRA loc_45A8 ; cycles=8

loc_456D:
456D: 0E 46          BSR loc_45B5 ; cycles=14
456F: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
4572: 27 03          BEQ loc_4577 ; cycles=3/7 nt/t
4574: 1E D5 6D       BSR loc_1AE4 ; cycles=13

loc_4577:
4577: 20 2F          BRA loc_45A8 ; cycles=8

loc_4579:
4579: 0E 3A          BSR loc_45B5 ; cycles=14
457B: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
457E: 27 03          BEQ loc_4583 ; cycles=3/7 nt/t
4580: 1E D5 88       BSR loc_1B0B ; cycles=13

loc_4583:
4583: 20 23          BRA loc_45A8 ; cycles=8

loc_4585:
4585: 15 F7 70 06 20 MOV:G.B #H'20, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
458A: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=7
458E: 1E 03 69       BSR loc_48FA ; cycles=13
4591: 20 15          BRA loc_45A8 ; cycles=8

loc_4593:
4593: 0E 20          BSR loc_45B5 ; cycles=14
4595: 4C 00 02       CMP:I #H'0002, R4 ; cycles=3
4598: 27 0C          BEQ loc_45A6 ; cycles=3/7 nt/t
459A: 15 F7 70 06 20 MOV:G.B #H'20, @H'F770 ; refs ram_F770 in on_chip_ram; cycles=9
459F: 1D F7 72 94    MOV:G.W R4, @H'F772 ; refs ram_F772 in on_chip_ram; cycles=6
45A3: 1E 03 54       BSR loc_48FA ; cycles=14

loc_45A6:
45A6: 20 00          BRA loc_45A8 ; cycles=7

loc_45A8:
45A8: 1D F6 9A 84    MOV:G.W @H'F69A, R4 ; refs ram_F69A in on_chip_ram; cycles=7
45AC: 1D F6 BA 94    MOV:G.W R4, @H'F6BA ; refs ram_F6BA in on_chip_ram; cycles=7
45B0: 15 FB 02 13    CLR.B @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
45B4: 19             RTS ; cycles=12

loc_45B5:
45B5: 15 F6 F9 24    ADD:G.B @H'F6F9, R4 ; refs ram_F6F9 in on_chip_ram; cycles=6
45B9: 44 88          CMP:E #H'88, R4 ; cycles=2
45BB: 24 0D          BCC loc_45CA ; cycles=3/8 nt/t
45BD: 44 78          CMP:E #H'78, R4 ; cycles=2
45BF: 23 13          BLS loc_45D4 ; cycles=3/8 nt/t
45C1: 15 F6 F9 94    MOV:G.B R4, @H'F6F9 ; refs ram_F6F9 in on_chip_ram; cycles=6
45C5: 5C 00 02       MOV:I.W #H'0002, R4 ; dataflow R4=H'0002; cycles=3
45C8: 20 12          BRA loc_45DC ; cycles=7

loc_45CA:
45CA: 15 F6 F9 06 80 MOV:G.B #H'80, @H'F6F9 ; refs ram_F6F9 in on_chip_ram; cycles=9
45CF: 5C 00 00       MOV:I.W #H'0000, R4 ; dataflow R4=H'0000; cycles=3
45D2: 20 08          BRA loc_45DC ; cycles=7

loc_45D4:
45D4: 15 F6 F9 06 80 MOV:G.B #H'80, @H'F6F9 ; refs ram_F6F9 in on_chip_ram; cycles=9
45D9: 5C 00 01       MOV:I.W #H'0001, R4 ; dataflow R4=H'0001; cycles=3

loc_45DC:
45DC: 19             RTS ; cycles=12

loc_48EF:
48EF: 1D F7 34 80    MOV:G.W @H'F734, R0 ; refs ram_F734 in on_chip_ram; cycles=6
48F3: 1D F7 32 90    MOV:G.W R0, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=6
48F7: 0E 01          BSR loc_48FA ; cycles=14
48F9: 19             RTS ; cycles=13

loc_48FA:
48FA: 15 FB 03 F7    BTST.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=7
48FE: 26 29          BNE loc_4929 ; cycles=3/7 nt/t
4900: 15 F7 32 04 1A CMP:G.B #H'1A, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=7
4905: 27 22          BEQ loc_4929 ; cycles=3/8 nt/t
4907: 1D F7 32 05 19 00 CMP:G.W #H'1900, @H'F732 ; refs ram_F732 in on_chip_ram; cycles=6
490D: 27 1A          BEQ loc_4929 ; cycles=3/8 nt/t
490F: 1D E1 EC FD    BTST.W #13, @H'E1EC ; refs mem_E1EC in program_or_external; cycles=6
4913: 27 14          BEQ loc_4929 ; cycles=3/8 nt/t
4915: 1D E1 EC 80    MOV:G.W @H'E1EC, R0 ; refs mem_E1EC in program_or_external; cycles=6
4919: 0C 9F FF 50    AND.W #H'9FFF, R0 ; cycles=4
491D: 1D E9 EC 90    MOV:G.W R0, @H'E9EC ; refs mem_E9EC in program_or_external; cycles=6
4921: 52 80          MOV:E.B #H'80, R2 ; dataflow R2=H'80; cycles=2
4923: 5B 00 F6       MOV:I.W #H'00F6, R3 ; dataflow R3=H'00F6; cycles=3
4926: 1E F5 2B       BSR loc_3E54 ; cycles=13

loc_4929:
4929: 15 F7 6E F6    BTST.B #6, @H'F76E ; refs ram_F76E in on_chip_ram; cycles=6
492D: 26 0E          BNE loc_493D ; cycles=3/8 nt/t
492F: 15 F7 32 80    MOV:G.B @H'F732, R0 ; refs ram_F732 in on_chip_ram; cycles=6
4933: A0 12          EXTU.B R0 ; cycles=3
4935: A0 1A          SHLL.B R0 ; cycles=2
4937: F8 49 3E 80    MOV:G.W @(H'493E,R0), R0 ; cycles=6
493B: 11 D8          JSR @R0 ; JSR @R0 uses R0 loaded from pointer table H'493E via R0 (1/52 decoded targets); cycles=14

loc_493D:
493D: 19             RTS ; cycles=13

loc_5774:
5774: A9 1A          SHLL.W R1 ; cycles=3
5776: F9 E0 00 82    MOV:G.W @(-H'2000,R1), R2 ; cycles=7
577A: F9 E4 00 81    MOV:G.W @(-H'1C00,R1), R1 ; cycles=7
577E: 27 24          BEQ loc_57A4 ; cycles=3/7 nt/t
5780: A9 52          AND.W R1, R2 ; cycles=3
5782: 26 04          BNE loc_5788 ; cycles=3/7 nt/t
5784: AB 13          CLR.W R3 ; dataflow R3=H'0000; cycles=3
5786: 20 10          BRA loc_5798 ; cycles=7

loc_5788:
5788: A9 83          MOV:G.W R1, R3 ; cycles=3
578A: AB 15          NOT.W R3 ; cycles=3
578C: AB 08          ADD:Q.W #1, R3 ; cycles=4
578E: AB 32          SUB.W R3, R2 ; cycles=3
5790: 0C 00 C6 AA    MULXU.W #H'00C6, R2 ; cycles=25
5794: A9 1A          SHLL.W R1 ; cycles=3
5796: A9 BA          DIVXU.W R1, R2 ; cycles=28

loc_5798:
5798: 40 00          CMP:E #H'00, R0 ; cycles=2
579A: 27 10          BEQ loc_57AC ; cycles=3/7 nt/t
579C: 40 01          CMP:E #H'01, R0 ; cycles=2
579E: 27 1C          BEQ loc_57BC ; cycles=3/7 nt/t
57A0: 40 02          CMP:E #H'02, R0 ; cycles=2
57A2: 27 1A          BEQ loc_57BE ; cycles=3/7 nt/t

loc_57A4:
57A4: 5A 20 20       MOV:I.W #H'2020, R2 ; dataflow R2=H'2020; cycles=3
57A7: 5B 20 20       MOV:I.W #H'2020, R3 ; dataflow R3=H'2020; cycles=3
57AA: 20 14          BRA loc_57C0 ; cycles=7

loc_57AC:
57AC: A3 12          EXTU.B R3 ; cycles=3
57AE: AB 1A          SHLL.W R3 ; cycles=3
57B0: AB 1A          SHLL.W R3 ; cycles=3
57B2: FB CA 64 82    MOV:G.W @(-H'359C,R3), R2 ; cycles=7
57B6: FB CA 66 83    MOV:G.W @(-H'359A,R3), R3 ; cycles=7
57BA: 20 04          BRA loc_57C0 ; cycles=7

loc_57BC:
57BC: 20 02          BRA loc_57C0 ; cycles=7

loc_57BE:
57BE: 20 00          BRA loc_57C0 ; cycles=7

loc_57C0:
57C0: A0 10          SWAP.B R0 ; cycles=3
57C2: 40 02          CMP:E #H'02, R0 ; cycles=2
57C4: 27 27          BEQ loc_57ED ; cycles=3/7 nt/t
57C6: 40 01          CMP:E #H'01, R0 ; cycles=2
57C8: 27 0F          BEQ loc_57D9 ; cycles=3/7 nt/t
57CA: 15 FA F0 06 20 MOV:G.B #H'20, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
57CF: 15 FA F4 06 20 MOV:G.B #H'20, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
57D4: 59 00 01       MOV:I.W #H'0001, R1 ; dataflow R1=H'0001; cycles=3
57D7: 20 1D          BRA loc_57F6 ; cycles=8

loc_57D9:
57D9: 15 FA F5 06 20 MOV:G.B #H'20, @H'FAF5 ; refs ram_FAF5 in on_chip_ram; cycles=9
57DE: 15 FA F9 06 20 MOV:G.B #H'20, @H'FAF9 ; refs ram_FAF9 in on_chip_ram; cycles=9
57E3: 15 FA FA 06 20 MOV:G.B #H'20, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
57E8: 59 00 06       MOV:I.W #H'0006, R1 ; dataflow R1=H'0006; cycles=3
57EB: 20 09          BRA loc_57F6 ; cycles=8

loc_57ED:
57ED: 1D FA FE 07 20 20 MOV:G.W #H'2020, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
57F3: 59 00 0B       MOV:I.W #H'000B, R1 ; dataflow R1=H'000B; cycles=3

loc_57F6:
57F6: F1 FA F0 92    MOV:G.B R2, @(-H'0510,R1) ; cycles=7
57FA: F1 FA F2 93    MOV:G.B R3, @(-H'050E,R1) ; cycles=7
57FE: A3 10          SWAP.B R3 ; cycles=3
5800: F1 FA F1 93    MOV:G.B R3, @(-H'050F,R1) ; cycles=7
5804: 19             RTS ; cycles=12

loc_5A04:
5A04: 15 F7 13 F6    BTST.B #6, @H'F713 ; refs ram_F713 in on_chip_ram; cycles=7
5A08: 26 04          BNE loc_5A0E ; cycles=3/7 nt/t
5A0A: 15 F7 26 13    CLR.B @H'F726 ; refs ram_F726 in on_chip_ram; cycles=9

loc_5A0E:
5A0E: 58 00 07       MOV:I.W #H'0007, R0 ; dataflow R0=H'0007; cycles=3

loc_5A11:
5A11: A8 0C          ADD:Q.W #-1, R0 ; cycles=4
5A13: F8 F7 3C 81    MOV:G.W @(-H'08C4,R0), R1 ; cycles=6
5A17: 27 4C          BEQ loc_5A65 ; cycles=3/8 nt/t
5A19: A9 82          MOV:G.W R1, R2 ; cycles=3
5A1B: 0C FE 00 52    AND.W #H'FE00, R2 ; cycles=4
5A1F: 26 44          BNE loc_5A65 ; cycles=3/8 nt/t
5A21: A9 1A          SHLL.W R1 ; cycles=3
5A23: F8 F7 4C 16    TST.W @(-H'08B4,R0) ; cycles=6
5A27: 27 10          BEQ loc_5A39 ; cycles=3/8 nt/t
5A29: F9 E4 00 82    MOV:G.W @(-H'1C00,R1), R2 ; cycles=6
5A2D: F8 F7 4C 52    AND.W @(-H'08B4,R0), R2 ; cycles=6
5A31: F8 F7 4C 72    CMP:G.W @(-H'08B4,R0), R2 ; cycles=6
5A35: 27 12          BEQ loc_5A49 ; cycles=3/8 nt/t
5A37: 20 2C          BRA loc_5A65 ; cycles=8

loc_5A39:
5A39: F9 E4 00 82    MOV:G.W @(-H'1C00,R1), R2 ; cycles=6
5A3D: F8 F7 44 52    AND.W @(-H'08BC,R0), R2 ; cycles=6
5A41: F9 E4 00 72    CMP:G.W @(-H'1C00,R1), R2 ; cycles=6
5A45: 27 1E          BEQ loc_5A65 ; cycles=3/8 nt/t
5A47: 20 00          BRA loc_5A49 ; cycles=8

loc_5A49:
5A49: F9 E0 00 81    MOV:G.W @(-H'2000,R1), R1 ; cycles=6
5A4D: F8 F7 44 82    MOV:G.W @(-H'08BC,R0), R2 ; cycles=6
5A51: AA 15          NOT.W R2 ; cycles=3
5A53: AA 51          AND.W R2, R1 ; cycles=3
5A55: F8 F7 4C 71    CMP:G.W @(-H'08B4,R0), R1 ; cycles=6
5A59: 26 0A          BNE loc_5A65 ; cycles=3/8 nt/t
5A5B: F8 5A 72 81    MOV:G.W @(H'5A72,R0), R1 ; cycles=6
5A5F: 15 F7 11 49    BSET.B R1, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8
5A63: 20 08          BRA loc_5A6D ; cycles=8

loc_5A65:
5A65: F8 5A 72 81    MOV:G.W @(H'5A72,R0), R1 ; cycles=6
5A69: 15 F7 11 59    BCLR.B R1, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8

loc_5A6D:
5A6D: 01 B8 A1       SCB/F R0, loc_5A11 ; cycles=3/4/9 false/-1/t
5A70: 19             RTS ; cycles=12

loc_5A91:
5A91: E0 00 81       MOV:G.B @(H'00,R0), R1 ; cycles=6
5A94: 15 FA F0 91    MOV:G.B R1, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=7
5A98: E0 01 81       MOV:G.B @(H'01,R0), R1 ; cycles=7
5A9B: 15 FA F1 91    MOV:G.B R1, @H'FAF1 ; refs ram_FAF1 in on_chip_ram; cycles=6
5A9F: E0 02 81       MOV:G.B @(H'02,R0), R1 ; cycles=6
5AA2: 15 FA F2 91    MOV:G.B R1, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=7
5AA6: E0 03 81       MOV:G.B @(H'03,R0), R1 ; cycles=7
5AA9: 15 FA F3 91    MOV:G.B R1, @H'FAF3 ; refs ram_FAF3 in on_chip_ram; cycles=6
5AAD: E0 04 81       MOV:G.B @(H'04,R0), R1 ; cycles=6
5AB0: 15 FA F4 91    MOV:G.B R1, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=7
5AB4: E0 05 81       MOV:G.B @(H'05,R0), R1 ; cycles=7
5AB7: 15 FA F5 91    MOV:G.B R1, @H'FAF5 ; refs ram_FAF5 in on_chip_ram; cycles=6
5ABB: E0 06 81       MOV:G.B @(H'06,R0), R1 ; cycles=6
5ABE: 15 FA F6 91    MOV:G.B R1, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=7
5AC2: E0 07 81       MOV:G.B @(H'07,R0), R1 ; cycles=7
5AC5: 15 FA F7 91    MOV:G.B R1, @H'FAF7 ; refs ram_FAF7 in on_chip_ram; cycles=6
5AC9: E0 08 81       MOV:G.B @(H'08,R0), R1 ; cycles=6
5ACC: 15 FA F8 91    MOV:G.B R1, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=7
5AD0: E0 09 81       MOV:G.B @(H'09,R0), R1 ; cycles=7
5AD3: 15 FA F9 91    MOV:G.B R1, @H'FAF9 ; refs ram_FAF9 in on_chip_ram; cycles=6
5AD7: E0 0A 81       MOV:G.B @(H'0A,R0), R1 ; cycles=6
5ADA: 15 FA FA 91    MOV:G.B R1, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=7
5ADE: E0 0B 81       MOV:G.B @(H'0B,R0), R1 ; cycles=7
5AE1: 15 FA FB 91    MOV:G.B R1, @H'FAFB ; refs ram_FAFB in on_chip_ram; cycles=6
5AE5: E0 0C 81       MOV:G.B @(H'0C,R0), R1 ; cycles=6
5AE8: 15 FA FC 91    MOV:G.B R1, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=7
5AEC: E0 0D 81       MOV:G.B @(H'0D,R0), R1 ; cycles=7
5AEF: 15 FA FD 91    MOV:G.B R1, @H'FAFD ; refs ram_FAFD in on_chip_ram; cycles=6
5AF3: E0 0E 81       MOV:G.B @(H'0E,R0), R1 ; cycles=6
5AF6: 15 FA FE 91    MOV:G.B R1, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=7
5AFA: E0 0F 81       MOV:G.B @(H'0F,R0), R1 ; cycles=7
5AFD: 15 FA FF 91    MOV:G.B R1, @H'FAFF ; refs ram_FAFF in on_chip_ram; cycles=6
5B01: 19             RTS ; cycles=13

loc_5FD2:
5FD2: 15 F7 32 80    MOV:G.B @H'F732, R0 ; refs ram_F732 in on_chip_ram; cycles=7
5FD6: 15 F7 2F 70    CMP:G.B @H'F72F, R0 ; refs ram_F72F in on_chip_ram; cycles=7
5FDA: 27 41          BEQ loc_601D ; cycles=3/7 nt/t
5FDC: 1D F7 2C 13    CLR.W @H'F72C ; refs ram_F72C in on_chip_ram; cycles=9
5FE0: 15 F7 2E 13    CLR.B @H'F72E ; refs ram_F72E in on_chip_ram; cycles=9
5FE4: 15 F7 2F 90    MOV:G.B R0, @H'F72F ; refs ram_F72F in on_chip_ram; cycles=7
5FE8: A4 12          EXTU.B R4 ; cycles=3

loc_5FEA:
5FEA: AC 80          MOV:G.W R4, R0 ; cycles=3
5FEC: A0 1A          SHLL.B R0 ; cycles=2
5FEE: AB 20          ADD:G.W R3, R0 ; cycles=3
5FF0: D8 80          MOV:G.W @R0, R0 ; cycles=6
5FF2: A8 0D          ADD:Q.W #-2, R0 ; cycles=4
5FF4: D8 81          MOV:G.W @R0, R1 ; cycles=6
5FF6: 15 F7 31 71    CMP:G.B @H'F731, R1 ; refs ram_F731 in on_chip_ram; cycles=7
5FFA: 25 1E          BCS loc_601A ; cycles=3/7 nt/t
5FFC: A8 0D          ADD:Q.W #-2, R0 ; cycles=4
5FFE: D8 16          TST.W @R0 ; cycles=6
6000: 27 10          BEQ loc_6012 ; cycles=3/7 nt/t

loc_6002:
6002: D8 81          MOV:G.W @R0, R1 ; cycles=6
6004: 27 14          BEQ loc_601A ; cycles=3/7 nt/t
6006: A9 1A          SHLL.W R1 ; cycles=3
6008: F9 E4 00 16    TST.W @(-H'1C00,R1) ; cycles=7
600C: 26 04          BNE loc_6012 ; cycles=3/7 nt/t
600E: A8 0D          ADD:Q.W #-2, R0 ; cycles=4
6010: 20 F0          BRA loc_6002 ; cycles=7

loc_6012:
6012: 1D F7 2C 4C    BSET.W R4, @H'F72C ; refs ram_F72C in on_chip_ram; cycles=9
6016: 15 F7 2E 08    ADD:Q.B #1, @H'F72E ; refs ram_F72E in on_chip_ram; cycles=9

loc_601A:
601A: 01 BC CD       SCB/F R4, loc_5FEA ; cycles=3/4/8 false/-1/t

loc_601D:
601D: 15 F7 2E 80    MOV:G.B @H'F72E, R0 ; refs ram_F72E in on_chip_ram; cycles=6
6021: 27 1D          BEQ loc_6040 ; cycles=3/8 nt/t
6023: 15 F7 33 04 FF CMP:G.B #H'FF, @H'F733 ; refs ram_F733 in on_chip_ram; cycles=6
6028: 27 08          BEQ loc_6032 ; cycles=3/7 nt/t
602A: 15 F7 33 70    CMP:G.B @H'F733, R0 ; refs ram_F733 in on_chip_ram; cycles=7
602E: 23 0A          BLS loc_603A ; cycles=3/7 nt/t
6030: 20 20          BRA loc_6052 ; cycles=7

loc_6032:
6032: A0 0C          ADD:Q.B #-1, R0 ; cycles=4
6034: 15 F7 33 90    MOV:G.B R0, @H'F733 ; refs ram_F733 in on_chip_ram; cycles=7
6038: 20 18          BRA loc_6052 ; cycles=7

loc_603A:
603A: 15 F7 33 13    CLR.B @H'F733 ; refs ram_F733 in on_chip_ram; cycles=9
603E: 20 12          BRA loc_6052 ; cycles=7

loc_6040:
6040: 15 FB 03 C7    BSET.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=9
6044: 15 FB 02 06 14 MOV:G.B #H'14, @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
6049: 15 F7 2F 13    CLR.B @H'F72F ; refs ram_F72F in on_chip_ram; cycles=8
604D: 5C FF FE       MOV:I.W #H'FFFE, R4 ; dataflow R4=H'FFFE; cycles=3
6050: 20 18          BRA loc_606A ; cycles=7

loc_6052:
6052: 15 F7 33 80    MOV:G.B @H'F733, R0 ; refs ram_F733 in on_chip_ram; cycles=7
6056: A0 12          EXTU.B R0 ; cycles=3
6058: 1D F7 2C 81    MOV:G.W @H'F72C, R1 ; refs ram_F72C in on_chip_ram; cycles=7
605C: 5C 00 FF       MOV:I.W #H'00FF, R4 ; dataflow R4=H'00FF; cycles=3

loc_605F:
605F: A4 08          ADD:Q.B #1, R4 ; cycles=4
6061: A9 1B          SHLR.W R1 ; cycles=3
6063: 24 FA          BCC loc_605F ; cycles=3/8 nt/t
6065: 01 B8 F7       SCB/F R0, loc_605F ; cycles=3/4/9 false/-1/t
6068: A4 1A          SHLL.B R4 ; cycles=2

loc_606A:
606A: 19             RTS ; cycles=12

loc_6106:
6106: 1D FA F0 06 01 MOV:G.W #H'01, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=11
610B: 1D FA F2 07 01 01 MOV:G.W #H'0101, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=9
6111: 1D FA F4 07 01 01 MOV:G.W #H'0101, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
6117: 1D FA F6 07 01 01 MOV:G.W #H'0101, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
611D: 1D FA F8 07 01 01 MOV:G.W #H'0101, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9
6123: 1D FA FA 07 01 01 MOV:G.W #H'0101, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
6129: 1D FA FC 07 01 01 MOV:G.W #H'0101, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
612F: 1D FA FE 07 01 02 MOV:G.W #H'0102, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
6135: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
6138: 1E DD 91       BSR loc_3ECC ; cycles=13
613B: 19             RTS ; cycles=13

loc_613C:
613C: 1D FA F0 07 03 04 MOV:G.W #H'0304, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=11
6142: 1D FA F2 07 04 04 MOV:G.W #H'0404, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=11
6148: 1D FA F4 07 04 04 MOV:G.W #H'0404, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=11
614E: 1D FA F6 07 04 04 MOV:G.W #H'0404, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=11
6154: 1D FA F8 07 04 04 MOV:G.W #H'0404, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=11
615A: 1D FA FA 07 04 04 MOV:G.W #H'0404, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=11
6160: 1D FA FC 07 04 04 MOV:G.W #H'0404, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=11
6166: 1D FA FE 07 04 05 MOV:G.W #H'0405, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=11
616C: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
616F: 1E DD 5A       BSR loc_3ECC ; cycles=14
6172: 19             RTS ; cycles=12

loc_6173:
6173: 1D FA F0 07 20 20 MOV:G.W #H'2020, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
6179: 1D FA F2 07 20 20 MOV:G.W #H'2020, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=9
617F: 1D FA F4 07 20 20 MOV:G.W #H'2020, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
6185: 1D FA F6 07 20 20 MOV:G.W #H'2020, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
618B: 1D FA F8 07 20 20 MOV:G.W #H'2020, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9
6191: 1D FA FA 07 20 20 MOV:G.W #H'2020, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
6197: 1D FA FC 07 20 20 MOV:G.W #H'2020, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
619D: 1D FA FE 07 20 20 MOV:G.W #H'2020, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
61A3: 19             RTS ; cycles=13

loc_6206:
6206: 0C 01 FF 55    AND.W #H'01FF, R5 ; cycles=4
620A: 4D 00 7F       CMP:I #H'007F, R5 ; cycles=3
620D: 23 07          BLS loc_6216 ; cycles=3/8 nt/t
620F: 4D 01 7F       CMP:I #H'017F, R5 ; cycles=3
6212: 23 04          BLS loc_6218 ; cycles=3/7 nt/t
6214: 20 0C          BRA loc_6222 ; cycles=7

loc_6216:
6216: 20 12          BRA loc_622A ; cycles=7

loc_6218:
6218: 0C 00 80 35    SUB.W #H'0080, R5 ; cycles=4
621C: 0C 01 00 25    ADD:G.W #H'0100, R5 ; cycles=4
6220: 20 08          BRA loc_622A ; cycles=7

loc_6222:
6222: 0C 01 80 35    SUB.W #H'0180, R5 ; cycles=4
6226: 0C 02 00 25    ADD:G.W #H'0200, R5 ; cycles=4

loc_622A:
622A: 19             RTS ; cycles=12

loc_622B:
622B: AD 84          MOV:G.W R5, R4 ; cycles=3
622D: A5 12          EXTU.B R5 ; cycles=3
622F: A4 10          SWAP.B R4 ; cycles=3
6231: 04 07 54       AND.B #H'07, R4 ; cycles=3
6234: 44 00          CMP:E #H'00, R4 ; cycles=2
6236: 27 0C          BEQ loc_6244 ; cycles=3/7 nt/t
6238: 44 01          CMP:E #H'01, R4 ; cycles=2
623A: 27 11          BEQ loc_624D ; cycles=3/7 nt/t
623C: 44 02          CMP:E #H'02, R4 ; cycles=2
623E: 27 16          BEQ loc_6256 ; cycles=3/7 nt/t
6240: 44 03          CMP:E #H'03, R4 ; cycles=2
6242: 27 1B          BEQ loc_625F ; cycles=3/7 nt/t

loc_6244:
6244: 45 7F          CMP:E #H'7F, R5 ; cycles=2
6246: 22 17          BHI loc_625F ; cycles=3/7 nt/t
6248: 5C 00 00       MOV:I.W #H'0000, R4 ; dataflow R4=H'0000; cycles=3
624B: 20 17          BRA loc_6264 ; cycles=8

loc_624D:
624D: 45 FF          CMP:E #H'FF, R5 ; cycles=2
624F: 22 0E          BHI loc_625F ; cycles=3/8 nt/t
6251: 5C 00 80       MOV:I.W #H'0080, R4 ; dataflow R4=H'0080; cycles=3
6254: 20 0E          BRA loc_6264 ; cycles=7

loc_6256:
6256: 45 7F          CMP:E #H'7F, R5 ; cycles=2
6258: 22 05          BHI loc_625F ; cycles=3/7 nt/t
625A: 5C 01 80       MOV:I.W #H'0180, R4 ; dataflow R4=H'0180; cycles=3
625D: 20 05          BRA loc_6264 ; cycles=8

loc_625F:
625F: AC 13          CLR.W R4 ; dataflow R4=H'0000; cycles=3
6261: 5D 01 FF       MOV:I.W #H'01FF, R5 ; dataflow R5=H'01FF; cycles=3

loc_6264:
6264: AC 25          ADD:G.W R4, R5 ; cycles=3
6266: 19             RTS ; cycles=12

loc_6348:
6348: 1D F7 36 06 00 MOV:G.W #H'00, @H'F736 ; refs ram_F736 in on_chip_ram; cycles=11
634D: 1D F7 38 06 00 MOV:G.W #H'00, @H'F738 ; refs ram_F738 in on_chip_ram; cycles=9
6352: 1D F7 3A 06 00 MOV:G.W #H'00, @H'F73A ; refs ram_F73A in on_chip_ram; cycles=11
6357: 1D F7 3C 06 00 MOV:G.W #H'00, @H'F73C ; refs ram_F73C in on_chip_ram; cycles=9
635C: 1D F7 40 06 00 MOV:G.W #H'00, @H'F740 ; refs ram_F740 in on_chip_ram; cycles=11
6361: 1D F7 3E 06 00 MOV:G.W #H'00, @H'F73E ; refs ram_F73E in on_chip_ram; cycles=9
6366: 1D F7 42 06 00 MOV:G.W #H'00, @H'F742 ; refs ram_F742 in on_chip_ram; cycles=11
636B: 1D F7 54 06 00 MOV:G.W #H'00, @H'F754 ; refs ram_F754 in on_chip_ram; cycles=9
6370: 15 F7 31 80    MOV:G.B @H'F731, R0 ; refs ram_F731 in on_chip_ram; cycles=7
6374: 04 07 50       AND.B #H'07, R0 ; cycles=3
6377: 40 00          CMP:E #H'00, R0 ; cycles=2
6379: 27 12          BEQ loc_638D ; cycles=3/8 nt/t
637B: 40 01          CMP:E #H'01, R0 ; cycles=2
637D: 27 2C          BEQ loc_63AB ; cycles=3/8 nt/t
637F: 40 02          CMP:E #H'02, R0 ; cycles=2
6381: 27 46          BEQ loc_63C9 ; cycles=3/8 nt/t
6383: 40 03          CMP:E #H'03, R0 ; cycles=2
6385: 37 00 A7       BEQ loc_642F ; cycles=3/8 nt/t
6388: 40 04          CMP:E #H'04, R0 ; cycles=2
638A: 37 00 EF       BEQ loc_647C ; cycles=3/7 nt/t

loc_638D:
638D: 1E FD E3       BSR loc_6173 ; cycles=14
6390: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
6393: 1E DB 36       BSR loc_3ECC ; cycles=14
6396: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
6399: 1E DB 30       BSR loc_3ECC ; cycles=14
639C: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
639F: 1E DB 2A       BSR loc_3ECC ; cycles=14
63A2: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
63A5: 1E DB 24       BSR loc_3ECC ; cycles=14
63A8: 30 01 1C       BRA loc_64C7 ; cycles=7

loc_63AB:
63AB: 1E FD C5       BSR loc_6173 ; cycles=14
63AE: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
63B1: 1E DB 18       BSR loc_3ECC ; cycles=14
63B4: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
63B7: 1E DB 12       BSR loc_3ECC ; cycles=14
63BA: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
63BD: 1E DB 0C       BSR loc_3ECC ; cycles=14
63C0: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
63C3: 1E DB 06       BSR loc_3ECC ; cycles=14
63C6: 30 00 FE       BRA loc_64C7 ; cycles=7

loc_63C9:
63C9: 1E FD A7       BSR loc_6173 ; cycles=14
63CC: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
63CF: 1E DA FA       BSR loc_3ECC ; cycles=14
63D2: 20 10          BRA loc_63E4 ; cycles=7

loc_63E4:
63E4: 58 63 D4       MOV:I.W #H'63D4, R0 ; LCD text xref H'63D7 'OPERATION'; dataflow R0=H'63D4; cycles=3
63E7: 1E F6 A7       BSR loc_5A91 ; cycles=14
63EA: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
63ED: 1E DA DC       BSR loc_3ECC ; cycles=14
63F0: 20 10          BRA loc_6402 ; cycles=7

loc_6402:
6402: 58 63 F2       MOV:I.W #H'63F2, R0 ; LCD text xref H'63F5 'PAINT'; dataflow R0=H'63F2; cycles=3
6405: 1E F6 89       BSR loc_5A91 ; cycles=14
6408: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
640B: 1E DA BE       BSR loc_3ECC ; cycles=14
640E: 20 10          BRA loc_6420 ; cycles=7

loc_6420:
6420: 58 64 10       MOV:I.W #H'6410, R0 ; dataflow R0=H'6410; cycles=3
6423: 1E F6 6B       BSR loc_5A91 ; cycles=14
6426: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
6429: 1E DA A0       BSR loc_3ECC ; cycles=14
642C: 30 00 98       BRA loc_64C7 ; cycles=7

loc_642F:
642F: 1E FD 41       BSR loc_6173 ; cycles=14
6432: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
6435: 1E DA 94       BSR loc_3ECC ; cycles=14
6438: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
643B: 1E DA 8E       BSR loc_3ECC ; cycles=14
643E: 20 10          BRA loc_6450 ; cycles=7

loc_6450:
6450: 58 64 40       MOV:I.W #H'6440, R0 ; LCD text xref H'6443 'OPERATION'; dataflow R0=H'6440; cycles=3
6453: 1E F6 3B       BSR loc_5A91 ; cycles=14
6456: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
6459: 1E DA 70       BSR loc_3ECC ; cycles=14
645C: 20 10          BRA loc_646E ; cycles=7

loc_646E:
646E: 58 64 5E       MOV:I.W #H'645E, R0 ; LCD text xref H'6461 'IRIS/M.BLK'; dataflow R0=H'645E; cycles=3
6471: 1E F6 1D       BSR loc_5A91 ; cycles=14
6474: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
6477: 1E DA 52       BSR loc_3ECC ; cycles=14
647A: 20 4B          BRA loc_64C7 ; cycles=7

loc_647C:
647C: 1E FC F4       BSR loc_6173 ; cycles=13
647F: 5D 00 00       MOV:I.W #H'0000, R5 ; dataflow R5=H'0000; cycles=3
6482: 1E DA 47       BSR loc_3ECC ; cycles=13
6485: 5D 00 03       MOV:I.W #H'0003, R5 ; dataflow R5=H'0003; cycles=3
6488: 1E DA 41       BSR loc_3ECC ; cycles=13
648B: 20 10          BRA loc_649D ; cycles=8

loc_649D:
649D: 58 64 8D       MOV:I.W #H'648D, R0 ; LCD text xref H'6490 'OPERATION'; dataflow R0=H'648D; cycles=3
64A0: 1E F5 EE       BSR loc_5A91 ; cycles=13
64A3: 5D 00 01       MOV:I.W #H'0001, R5 ; dataflow R5=H'0001; cycles=3
64A6: 1E DA 23       BSR loc_3ECC ; cycles=13
64A9: 20 10          BRA loc_64BB ; cycles=8

loc_64BB:
64BB: 58 64 AB       MOV:I.W #H'64AB, R0 ; LCD text xref H'64AE 'LOCK'; dataflow R0=H'64AB; cycles=3
64BE: 1E F5 D0       BSR loc_5A91 ; cycles=13
64C1: 5D 00 02       MOV:I.W #H'0002, R5 ; dataflow R5=H'0002; cycles=3
64C4: 1E DA 05       BSR loc_3ECC ; cycles=13

loc_64C7:
64C7: 1E F5 3A       BSR loc_5A04 ; cycles=14
64CA: 19             RTS ; cycles=12
930A: 5B 93 1C       MOV:I.W #H'931C, R3 ; dataflow R3=H'931C; cycles=3
930D: 54 04          MOV:E.B #H'04, R4 ; dataflow R4=H'04; cycles=2
930F: 1E CC C0       BSR loc_5FD2 ; cycles=14
9312: FC 93 1C 84    MOV:G.W @(-H'6CE4,R4), R4 ; cycles=7
9316: 11 DC          JSR @R4 ; JSR @R4 uses R4; target not resolved; cycles=13
9318: 19             RTS ; cycles=12
9F6A: 1D F7 36 06 00 MOV:G.W #H'00, @H'F736 ; refs ram_F736 in on_chip_ram; cycles=11
9F6F: 1D F7 38 06 00 MOV:G.W #H'00, @H'F738 ; refs ram_F738 in on_chip_ram; cycles=9
9F74: 1D F7 3A 06 00 MOV:G.W #H'00, @H'F73A ; refs ram_F73A in on_chip_ram; cycles=11
9F79: 1D F7 3C 06 00 MOV:G.W #H'00, @H'F73C ; refs ram_F73C in on_chip_ram; cycles=9
9F7E: 1D F7 40 06 00 MOV:G.W #H'00, @H'F740 ; refs ram_F740 in on_chip_ram; cycles=11
9F83: 1D F7 3E 06 00 MOV:G.W #H'00, @H'F73E ; refs ram_F73E in on_chip_ram; cycles=9
9F88: 1D F7 42 06 00 MOV:G.W #H'00, @H'F742 ; refs ram_F742 in on_chip_ram; cycles=11
9F8D: 1D F7 54 06 00 MOV:G.W #H'00, @H'F754 ; refs ram_F754 in on_chip_ram; cycles=9
9F92: 1E C1 71       BSR loc_6106 ; cycles=13
9F95: 20 10          BRA loc_9FA7 ; cycles=8

loc_9FA7:
9FA7: 58 9F 97       MOV:I.W #H'9F97, R0 ; LCD text xref H'9F98 'COPY'; dataflow R0=H'9F97; cycles=3
9FAA: 1E BA E4       BSR loc_5A91 ; cycles=13
9FAD: 55 01          MOV:E.B #H'01, R5 ; dataflow R5=H'01; cycles=2
9FAF: 1E 9F 1A       BSR loc_3ECC ; cycles=14
9FB2: 20 10          BRA loc_9FC4 ; cycles=7

loc_9FC4:
9FC4: 58 9F B4       MOV:I.W #H'9FB4, R0 ; LCD text xref H'9FB5 'IN PROGRESS'; dataflow R0=H'9FB4; cycles=3
9FC7: 1E BA C7       BSR loc_5A91 ; cycles=14
9FCA: 55 02          MOV:E.B #H'02, R5 ; dataflow R5=H'02; cycles=2
9FCC: 1E 9E FD       BSR loc_3ECC ; cycles=13
9FCF: 1E C1 6A       BSR loc_613C ; cycles=14
9FD2: 1E BA 2F       BSR loc_5A04 ; cycles=13
9FD5: 19             RTS ; cycles=13
9FDA: 1D F7 36 06 00 MOV:G.W #H'00, @H'F736 ; refs ram_F736 in on_chip_ram; cycles=11
9FDF: 1D F7 38 06 00 MOV:G.W #H'00, @H'F738 ; refs ram_F738 in on_chip_ram; cycles=9
9FE4: 1D F7 3A 06 00 MOV:G.W #H'00, @H'F73A ; refs ram_F73A in on_chip_ram; cycles=11
9FE9: 1D F7 3C 06 00 MOV:G.W #H'00, @H'F73C ; refs ram_F73C in on_chip_ram; cycles=9
9FEE: 1D F7 40 06 00 MOV:G.W #H'00, @H'F740 ; refs ram_F740 in on_chip_ram; cycles=11
9FF3: 1D F7 3E 06 00 MOV:G.W #H'00, @H'F73E ; refs ram_F73E in on_chip_ram; cycles=9
9FF8: 1D F7 42 06 00 MOV:G.W #H'00, @H'F742 ; refs ram_F742 in on_chip_ram; cycles=11
9FFD: 1D F7 54 06 00 MOV:G.W #H'00, @H'F754 ; refs ram_F754 in on_chip_ram; cycles=9
A002: 1E C1 01       BSR loc_6106 ; cycles=13
A005: 20 10          BRA loc_A017 ; cycles=8

loc_A017:
A017: 58 A0 07       MOV:I.W #H'A007, R0 ; LCD text xref H'A008 'COPY'; dataflow R0=H'A007; cycles=3
A01A: 1E BA 74       BSR loc_5A91 ; cycles=13
A01D: 55 01          MOV:E.B #H'01, R5 ; dataflow R5=H'01; cycles=2
A01F: 1E 9E AA       BSR loc_3ECC ; cycles=14
A022: 20 10          BRA loc_A034 ; cycles=7

loc_A034:
A034: 58 A0 24       MOV:I.W #H'A024, R0 ; LCD text xref H'A025 'COMPLETED'; dataflow R0=H'A024; cycles=3
A037: 1E BA 57       BSR loc_5A91 ; cycles=14
A03A: 55 02          MOV:E.B #H'02, R5 ; dataflow R5=H'02; cycles=2
A03C: 1E 9E 8D       BSR loc_3ECC ; cycles=13
A03F: 1E C0 FA       BSR loc_613C ; cycles=14
A042: 1E B9 BF       BSR loc_5A04 ; cycles=13
A045: 19             RTS ; cycles=13
A04A: 1E C2 FB       BSR loc_6348 ; cycles=13
A04D: 19             RTS ; cycles=13
A052: 1D F7 36 06 00 MOV:G.W #H'00, @H'F736 ; refs ram_F736 in on_chip_ram; cycles=11
A057: 1D F7 38 06 00 MOV:G.W #H'00, @H'F738 ; refs ram_F738 in on_chip_ram; cycles=9
A05C: 1D F7 3A 06 00 MOV:G.W #H'00, @H'F73A ; refs ram_F73A in on_chip_ram; cycles=11
A061: 1D F7 3C 06 00 MOV:G.W #H'00, @H'F73C ; refs ram_F73C in on_chip_ram; cycles=9
A066: 1D F7 40 06 00 MOV:G.W #H'00, @H'F740 ; refs ram_F740 in on_chip_ram; cycles=11
A06B: 1D F7 3E 06 00 MOV:G.W #H'00, @H'F73E ; refs ram_F73E in on_chip_ram; cycles=9
A070: 1D F7 42 06 00 MOV:G.W #H'00, @H'F742 ; refs ram_F742 in on_chip_ram; cycles=11
A075: 1D F7 54 07 00 B9 MOV:G.W #H'00B9, @H'F754 ; refs ram_F754 in on_chip_ram; cycles=9
A07B: 59 00 A9       MOV:I.W #H'00A9, R1 ; dataflow R1=H'00A9; cycles=3
A07E: 58 00 00       MOV:I.W #H'0000, R0 ; dataflow R0=H'0000; cycles=3
A081: 1E B6 F0       BSR loc_5774 ; cycles=14
A084: 15 F7 30 F7    BTST.B #7, @H'F730 ; refs ram_F730 in on_chip_ram; cycles=7
A088: 27 0B          BEQ loc_A095 ; cycles=3/7 nt/t
A08A: 59 00 C5       MOV:I.W #H'00C5, R1 ; dataflow R1=H'00C5; cycles=3
A08D: 58 01 00       MOV:I.W #H'0100, R0 ; dataflow R0=H'0100; cycles=3
A090: 1E B6 E1       BSR loc_5774 ; cycles=13
A093: 20 16          BRA loc_A0AB ; cycles=8

loc_A095:
A095: 15 FA F5 06 20 MOV:G.B #H'20, @H'FAF5 ; refs ram_FAF5 in on_chip_ram; cycles=9
A09A: 1D FA F6 07 20 20 MOV:G.W #H'2020, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=11
A0A0: 1D FA F8 07 20 20 MOV:G.W #H'2020, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=11
A0A6: 15 FA FA 06 20 MOV:G.B #H'20, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9

loc_A0AB:
A0AB: 1D E2 20 FF    BTST.W #15, @H'E220 ; refs mem_E220 in program_or_external; cycles=6
A0AF: 26 17          BNE loc_A0C8 ; cycles=3/8 nt/t
A0B1: 1D E1 72 FF    BTST.W #15, @H'E172 ; refs mem_E172 in program_or_external; cycles=6
A0B5: 26 23          BNE loc_A0DA ; cycles=3/8 nt/t
A0B7: 1D E1 72 FE    BTST.W #14, @H'E172 ; refs mem_E172 in program_or_external; cycles=6
A0BB: 26 2F          BNE loc_A0EC ; cycles=3/8 nt/t
A0BD: 59 00 BC       MOV:I.W #H'00BC, R1 ; dataflow R1=H'00BC; cycles=3
A0C0: 58 02 00       MOV:I.W #H'0200, R0 ; dataflow R0=H'0200; cycles=3
A0C3: 1E B6 AE       BSR loc_5774 ; cycles=14
A0C6: 20 34          BRA loc_A0FC ; cycles=7

loc_A0C8:
A0C8: 15 FA FB 06 20 MOV:G.B #H'20, @H'FAFB ; refs ram_FAFB in on_chip_ram; cycles=9
A0CD: 1D FA FC 07 44 4C MOV:G.W #H'444C, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
A0D3: 15 FA FE 06 20 MOV:G.B #H'20, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
A0D8: 20 22          BRA loc_A0FC ; cycles=7

loc_A0DA:
A0DA: 15 FA FB 06 50 MOV:G.B #H'50, @H'FAFB ; refs ram_FAFB in on_chip_ram; cycles=9
A0DF: 1D FA FC 07 52 45 MOV:G.W #H'5245, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
A0E5: 15 FA FE 06 20 MOV:G.B #H'20, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
A0EA: 20 10          BRA loc_A0FC ; cycles=7

loc_A0EC:
A0EC: 15 FA FB 06 41 MOV:G.B #H'41, @H'FAFB ; refs ram_FAFB in on_chip_ram; cycles=9
A0F1: 1D FA FC 07 55 54 MOV:G.W #H'5554, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
A0F7: 15 FA FE 06 4F MOV:G.B #H'4F, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9

loc_A0FC:
A0FC: 15 FA F0 06 06 MOV:G.B #H'06, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
A101: 15 FA FF 06 07 MOV:G.B #H'07, @H'FAFF ; refs ram_FAFF in on_chip_ram; cycles=9
A106: 55 02          MOV:E.B #H'02, R5 ; dataflow R5=H'02; cycles=2
A108: 1E 9D C1       BSR loc_3ECC ; cycles=13
A10B: 15 FA F0 06 06 MOV:G.B #H'06, @H'FAF0 ; refs ram_FAF0 in on_chip_ram; cycles=9
A110: 15 FA F1 06 44 MOV:G.B #H'44, @H'FAF1 ; refs ram_FAF1 in on_chip_ram; cycles=9
A115: 1D FA F2 07 54 4C MOV:G.W #H'544C, @H'FAF2 ; refs ram_FAF2 in on_chip_ram; cycles=9
A11B: 15 F7 30 F7    BTST.B #7, @H'F730 ; refs ram_F730 in on_chip_ram; cycles=6
A11F: 27 14          BEQ loc_A135 ; cycles=3/8 nt/t
A121: 1D FA F4 07 20 47 MOV:G.W #H'2047, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
A127: 1D FA F6 07 41 4D MOV:G.W #H'414D, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
A12D: 1D FA F8 07 4D 41 MOV:G.W #H'4D41, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9
A133: 20 12          BRA loc_A147 ; cycles=8

loc_A135:
A135: 1D FA F4 07 20 20 MOV:G.W #H'2020, @H'FAF4 ; refs ram_FAF4 in on_chip_ram; cycles=9
A13B: 1D FA F6 07 20 20 MOV:G.W #H'2020, @H'FAF6 ; refs ram_FAF6 in on_chip_ram; cycles=9
A141: 1D FA F8 07 20 20 MOV:G.W #H'2020, @H'FAF8 ; refs ram_FAF8 in on_chip_ram; cycles=9

loc_A147:
A147: 1D FA FA 07 20 4B MOV:G.W #H'204B, @H'FAFA ; refs ram_FAFA in on_chip_ram; cycles=9
A14D: 1D FA FC 07 4E 45 MOV:G.W #H'4E45, @H'FAFC ; refs ram_FAFC in on_chip_ram; cycles=9
A153: 15 FA FE 06 45 MOV:G.B #H'45, @H'FAFE ; refs ram_FAFE in on_chip_ram; cycles=9
A158: 55 01          MOV:E.B #H'01, R5 ; dataflow R5=H'01; cycles=2
A15A: 1E 9D 6F       BSR loc_3ECC ; cycles=13
A15D: 1E BF A6       BSR loc_6106 ; cycles=14
A160: 1E BF D9       BSR loc_613C ; cycles=13
A163: 1E B8 9E       BSR loc_5A04 ; cycles=14
A166: 19             RTS ; cycles=12

loc_BA26:
BA26: 15 F9 C0 16    TST.B @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=7
BA2A: 26 FA          BNE loc_BA26 ; cycles=3/7 nt/t
BA2C: 15 F9 C0 06 64 MOV:G.B #H'64, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BA31: 15 F9 C4 06 07 MOV:G.B #H'07, @H'F9C4 ; refs ram_F9C4 in on_chip_ram; cycles=9
BA36: 1D F8 50 80    MOV:G.W @H'F850, R0 ; refs ram_F850 in on_chip_ram; cycles=7
BA3A: 1D F8 58 90    MOV:G.W R0, @H'F858 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F858 in on_chip_ram; cycles=7
BA3E: 1D F8 52 80    MOV:G.W @H'F852, R0 ; refs ram_F852 in on_chip_ram; cycles=7
BA42: 1D F8 5A 90    MOV:G.W R0, @H'F85A ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F85A in on_chip_ram; cycles=7
BA46: 15 F8 54 80    MOV:G.B @H'F854, R0 ; refs ram_F854 in on_chip_ram; cycles=7
BA4A: 15 F8 5C 90    MOV:G.B R0, @H'F85C ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F85C in on_chip_ram; cycles=7
BA4E: 50 5A          MOV:E.B #H'5A, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX checksum starts from seed H'005A; confidence high; dataflow R0=H'5A; cycles=2
BA50: 15 F8 58 60    XOR.B @H'F858, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F858 in on_chip_ram; cycles=7
BA54: 15 F8 59 60    XOR.B @H'F859, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F859 in on_chip_ram; cycles=7
BA58: 15 F8 5A 60    XOR.B @H'F85A, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F85A in on_chip_ram; cycles=7
BA5C: 15 F8 5B 60    XOR.B @H'F85B, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F85B in on_chip_ram; cycles=7
BA60: 15 F8 5C 60    XOR.B @H'F85C, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F85C in on_chip_ram; cycles=7
BA64: 15 F8 5D 90    MOV:G.B R0, @H'F85D ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate checksum byte write targets H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: XOR chain appears to feed the H'F85D checksum byte; confidence high; refs ram_F85D in on_chip_ram; cycles=7

loc_BA68:
BA68: 15 FE DC F7    BTST.B #7, @SCI1_SSR ; wait for SCI1 transmit data register empty (TDRE=1); SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; refs SCI1_SSR in register_field; cycles=7
BA6C: 27 FA          BEQ loc_BA68 ; repeat SCI1 transmit-empty wait while TDRE=0; cycles=3/7 nt/t
BA6E: 15 F8 58 80    MOV:G.B @H'F858, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: initial SCI1 TDR send is supported by a read from H'F858; confidence high; refs ram_F858 in on_chip_ram; cycles=7
BA72: 15 FE DB 90    MOV:G.B R0, @SCI1_TDR ; SCI1_TDR; write RS232/SCI byte to SCI1 TDR for transmission; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: initial SCI1 TDR send is supported by a read from H'F858; confidence high; SCI1 TDR write transmits on traced RS232/MAX202 path: H8 pin 66 P95/TXD -> MAX202 pin 11; cycles=7
BA76: 15 F9 C2 06 01 MOV:G.B #H'01, @H'F9C2 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: write evidence supports TX index H'F9C2 being initialized to 1; confidence high; refs ram_F9C2 in on_chip_ram; cycles=9
BA7B: 15 FE DC D7    BCLR.B #7, @SCI1_SSR ; clear TDRE (bit 7) of SCI1_SSR; clear SCI1 TDRE after TDR write; TXI can fire again when hardware reasserts TDRE; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8
BA7F: 15 FE DA C7    BSET.B #7, @SCI1_SCR ; set TIE (bit 7) of SCI1_SCR; enable SCI1 TX interrupt (TIE); gates TXI when hardware sets TDRE; SCI1 SCR write TE=1 RE=1; TE/RE select the traced RS232/MAX202 pins (P95/TXD pin 66 to MAX202 pin 11, P96/RXD pin 67 to MAX202 pin 12); cycles=8
BA83: 19             RTS ; cycles=13

vec_sci1_txi_BA84:
BA84: 15 FA A2 F3    BTST.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=7
BA88: 27 1F          BEQ loc_BAA9 ; cycles=3/7 nt/t
BA8A: 15 FA A5 F7    BTST.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=7
BA8E: 27 19          BEQ loc_BAA9 ; cycles=3/7 nt/t
BA90: 15 F9 C3 16    TST.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=7
BA94: 27 13          BEQ loc_BAA9 ; cycles=3/7 nt/t
BA96: 15 FA A2 D3    BCLR.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BA9A: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=9
BA9E: 15 FE DA D7    BCLR.B #7, @SCI1_SCR ; clear TIE (bit 7) of SCI1_SCR; disable SCI1 TX interrupt (TIE); gates TXI when hardware sets TDRE; SCI1 SCR write TE=1 RE=1; TE/RE select the traced RS232/MAX202 pins (P95/TXD pin 66 to MAX202 pin 11, P96/RXD pin 67 to MAX202 pin 12); cycles=9
BAA2: 15 F9 C0 06 1F MOV:G.B #H'1F, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BAA7: 20 48          BRA loc_BAF1 ; cycles=8

loc_BAA9:
BAA9: BF 90          MOV:G.W R0, @-R7 ; cycles=5
BAAB: 15 F9 C2 80    MOV:G.B @H'F9C2, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX ISR sends SCI1 TDR from indexed H'F858 buffer; confidence high; refs ram_F9C2 in on_chip_ram; cycles=6
BAAF: A0 12          EXTU.B R0 ; cycles=3
BAB1: F0 F8 58 80    MOV:G.B @(-H'07A8,R0), R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX ISR sends SCI1 TDR from indexed H'F858 buffer; confidence high; cycles=6
BAB5: 15 FE DB 90    MOV:G.B R0, @SCI1_TDR ; SCI1_TDR; write RS232/SCI byte to SCI1 TDR for transmission; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX ISR sends SCI1 TDR from indexed H'F858 buffer; confidence high; SCI1 TDR write transmits on traced RS232/MAX202 path: H8 pin 66 P95/TXD -> MAX202 pin 11; cycles=6
BAB9: CF 80          MOV:G.W @R7+, R0 ; cycles=6
BABB: 15 FE DC D7    BCLR.B #7, @SCI1_SSR ; clear TDRE (bit 7) of SCI1_SSR; clear SCI1 TDRE after TDR write; TXI can fire again when hardware reasserts TDRE; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8
BABF: 15 F9 C2 08    ADD:Q.B #1, @H'F9C2 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX ISR increments TX index H'F9C2; confidence high; refs ram_F9C2 in on_chip_ram; cycles=8
BAC3: 15 F9 C2 04 06 CMP:G.B #H'06, @H'F9C2 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: candidate TX ISR compares TX index to frame length 6; confidence high; refs ram_F9C2 in on_chip_ram; cycles=6
BAC8: 26 27          BNE loc_BAF1 ; cycles=3/7 nt/t
BACA: 15 FE DA D7    BCLR.B #7, @SCI1_SCR ; clear TIE (bit 7) of SCI1_SCR; disable SCI1 TX interrupt (TIE); gates TXI when hardware sets TDRE; SCI1 SCR write TE=1 RE=1; TE/RE select the traced RS232/MAX202 pins (P95/TXD pin 66 to MAX202 pin 11, P96/RXD pin 67 to MAX202 pin 12); cycles=9
BACE: 15 F7 95 F6    BTST.B #6, @H'F795 ; refs ram_F795 in on_chip_ram; cycles=7
BAD2: 26 14          BNE loc_BAE8 ; cycles=3/7 nt/t
BAD4: 15 F7 91 F7    BTST.B #7, @H'F791 ; refs ram_F791 in on_chip_ram; cycles=7
BAD8: 26 07          BNE loc_BAE1 ; cycles=3/7 nt/t
BADA: 15 F9 C0 06 09 MOV:G.B #H'09, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BADF: 20 0C          BRA loc_BAED ; cycles=8

loc_BAE1:
BAE1: 15 F9 C0 06 09 MOV:G.B #H'09, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BAE6: 20 05          BRA loc_BAED ; cycles=7

loc_BAE8:
BAE8: 15 F9 C0 06 F0 MOV:G.B #H'F0, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9

loc_BAED:
BAED: 15 F9 C1 13    CLR.B @H'F9C1 ; refs ram_F9C1 in on_chip_ram; cycles=8

loc_BAF1:
BAF1: 0A             RTE ; cycles=14

loc_BAF2:
BAF2: 15 F9 B5 81    MOV:G.B @H'F9B5, R1 ; refs ram_F9B5 in on_chip_ram; cycles=7
BAF6: A1 12          EXTU.B R1 ; cycles=3
BAF8: 15 F9 B0 71    CMP:G.B @H'F9B0, R1 ; refs ram_F9B0 in on_chip_ram; cycles=7
BAFC: 26 02          BNE loc_BB00 ; cycles=3/7 nt/t
BAFE: 20 56          BRA loc_BB56 ; cycles=7

loc_BB00:
BB00: 15 FA A2 C3    BSET.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BB04: A9 80          MOV:G.W R1, R0 ; cycles=3
BB06: A8 1A          SHLL.W R0 ; cycles=3
BB08: F8 F8 70 80    MOV:G.W @(-H'0790,R0), R0 ; cycles=7
BB0C: A8 85          MOV:G.W R0, R5 ; cycles=3
BB0E: 1E A6 F5       BSR loc_6206 ; cycles=13
BB11: A8 81          MOV:G.W R0, R1 ; cycles=3
BB13: A1 10          SWAP.B R1 ; cycles=3
BB15: A1 1B          SHLR.B R1 ; cycles=2
BB17: A1 82          MOV:G.B R1, R2 ; cycles=2
BB19: 04 07 51       AND.B #H'07, R1 ; cycles=3
BB1C: 15 F8 50 91    MOV:G.B R1, @H'F850 ; refs ram_F850 in on_chip_ram; cycles=7
BB20: 15 F8 52 95    MOV:G.B R5, @H'F852 ; refs ram_F852 in on_chip_ram; cycles=7
BB24: A5 10          SWAP.B R5 ; cycles=3
BB26: 04 78 52       AND.B #H'78, R2 ; cycles=3
BB29: A2 45          OR.B R2, R5 ; cycles=2
BB2B: 15 F8 51 95    MOV:G.B R5, @H'F851 ; refs ram_F851 in on_chip_ram; cycles=6
BB2F: 0C 01 FF 50    AND.W #H'01FF, R0 ; cycles=4
BB33: A8 1A          SHLL.W R0 ; cycles=3
BB35: F8 E8 00 84    MOV:G.W @(-H'1800,R0), R4 ; cycles=6
BB39: 15 F8 54 94    MOV:G.B R4, @H'F854 ; refs ram_F854 in on_chip_ram; cycles=6
BB3D: A4 10          SWAP.B R4 ; cycles=3
BB3F: 15 F8 53 94    MOV:G.B R4, @H'F853 ; refs ram_F853 in on_chip_ram; cycles=6
BB43: 1E FE E0       BSR loc_BA26 ; cycles=14
BB46: 1D F9 C6 07 01 F4 MOV:G.W #H'01F4, @H'F9C6 ; refs ram_F9C6 in on_chip_ram; cycles=11
BB4C: 15 F9 C8 06 14 MOV:G.B #H'14, @H'F9C8 ; refs ram_F9C8 in on_chip_ram; cycles=9
BB51: 15 FA A3 06 80 MOV:G.B #H'80, @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=9

loc_BB56:
BB56: 19             RTS ; cycles=12

vec_sci1_eri_BB57:
BB57: 15 FA A4 C7    BSET.B #7, @H'FAA4 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; refs ram_FAA4 in on_chip_ram; cycles=8
BB5B: 15 FE DC D5    BCLR.B #5, @SCI1_SSR ; clear ORER (bit 5) of SCI1_SSR; clear SCI1 ORER with SSR R/(W)* semantics: write 0 clears latched hardware flag, write 1 preserves hardware-owned state; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8
BB5F: 15 FE DC D4    BCLR.B #4, @SCI1_SSR ; clear FER (bit 4) of SCI1_SSR; clear SCI1 FER with SSR R/(W)* semantics: write 0 clears latched hardware flag, write 1 preserves hardware-owned state; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8
BB63: 15 FE DC D3    BCLR.B #3, @SCI1_SSR ; clear PER (bit 3) of SCI1_SSR; clear SCI1 PER with SSR R/(W)* semantics: write 0 clears latched hardware flag, write 1 preserves hardware-owned state; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8

vec_sci1_rxi_BB67:
BB67: 12 03          STM.W {R0,R1}, @-SP ; cycles=12
BB69: 15 FE DC D6    BCLR.B #6, @SCI1_SSR ; clear RDRF (bit 6) of SCI1_SSR; clear SCI1 RDRF with SSR R/(W)* semantics: write 0 clears latched hardware flag, write 1 preserves hardware-owned state; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: ROM clears SCI1 SSR.RDRF before reading SCI1_RDR; preserve this observed ordering even though the manual describes the canonical RDR-read then RDRF-clear sequence; confidence high; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; SCI1 SSR status for traced RS232/MAX202 path; TDRE/RDRF/error flags gate TDR/RDR use; cycles=8
BB6D: 15 FE DD 80    MOV:G.B @SCI1_RDR, R0 ; read SCI1 received byte from RDR; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 RX ISR reads a byte from SCI1_RDR; confidence high; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: ROM clears SCI1 SSR.RDRF before reading SCI1_RDR; preserve this observed ordering even though the manual describes the canonical RDR-read then RDRF-clear sequence; confidence high; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: SCI1 ERI latches FAA4.bit7, clears ORER/FER/PER, then falls through into the same RXI byte-capture path; confidence high; SCI1 RDR read receives from traced RS232/MAX202 path: MAX202 pin 12 -> H8 pin 67 P96/RXD; refs SCI1_RDR in register_field; cycles=6
BB71: 15 F9 C1 16    TST.B @H'F9C1 ; refs ram_F9C1 in on_chip_ram; cycles=6
BB75: 26 06          BNE loc_BB7D ; cycles=3/8 nt/t
BB77: 15 F9 C3 13    CLR.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=8
BB7B: 20 0D          BRA loc_BB8A ; cycles=8

loc_BB7D:
BB7D: 15 F9 C3 04 05 CMP:G.B #H'05, @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=6
BB82: 23 06          BLS loc_BB8A ; cycles=3/7 nt/t
BB84: 15 FA A4 13    CLR.B @H'FAA4 ; refs ram_FAA4 in on_chip_ram; cycles=9
BB88: 20 19          BRA loc_BBA3 ; cycles=7

loc_BB8A:
BB8A: 15 F9 C3 81    MOV:G.B @H'F9C3, R1 ; refs ram_F9C3 in on_chip_ram; cycles=7
BB8E: A1 12          EXTU.B R1 ; cycles=3
BB90: F1 F8 68 90    MOV:G.B R0, @(-H'0798,R1) ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: received bytes are stored into candidate capture buffer H'F868-H'F86D; confidence high; cycles=7
BB94: A1 08          ADD:Q.B #1, R1 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX byte count/index is incremented and stored at H'F9C3; confidence high; cycles=4
BB96: 15 F9 C3 91    MOV:G.B R1, @H'F9C3 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX byte count/index is incremented and stored at H'F9C3; confidence high; refs ram_F9C3 in on_chip_ram; cycles=7
BB9A: 41 06          CMP:E #H'06, R1 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX ISR compares incremented count to candidate frame length 6; confidence high; cycles=2
BB9C: 26 05          BNE loc_BBA3 ; cycles=3/7 nt/t
BB9E: 15 F9 C5 06 14 MOV:G.B #H'14, @H'F9C5 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX ISR sets H'F9C5 after count reaches 6; confidence high; refs ram_F9C5 in on_chip_ram; cycles=9

loc_BBA3:
BBA3: 15 F9 C1 06 05 MOV:G.B #H'05, @H'F9C1 ; refs ram_F9C1 in on_chip_ram; cycles=9
BBA8: 02 03          LDM.W @SP+, {R0,R1} ; cycles=14
BBAA: 0A             RTE ; cycles=13

loc_BBAB:
BBAB: 15 F9 C3 04 06 CMP:G.B #H'06, @H'F9C3 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing path requires H'F9C3 to equal 6; confidence high; refs ram_F9C3 in on_chip_ram; cycles=6
BBB0: 36 02 BC       BNE loc_BE6F ; cycles=3/7 nt/t
BBB3: 1D F8 68 80    MOV:G.W @H'F868, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F868 in on_chip_ram; cycles=6
BBB7: 1D F8 60 90    MOV:G.W R0, @H'F860 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F860 in on_chip_ram; cycles=6
BBBB: 1D F8 6A 80    MOV:G.W @H'F86A, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F86A in on_chip_ram; cycles=6
BBBF: 1D F8 62 90    MOV:G.W R0, @H'F862 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F862 in on_chip_ram; cycles=6
BBC3: 1D F8 6C 80    MOV:G.W @H'F86C, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F86C in on_chip_ram; cycles=6
BBC7: 1D F8 64 90    MOV:G.W R0, @H'F864 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX processing copies candidate capture buffer H'F868-H'F86D to validation buffer H'F860-H'F865; confidence high; refs ram_F864 in on_chip_ram; cycles=6
BBCB: 15 F9 C3 13    CLR.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=8
BBCF: 15 FA A4 F7    BTST.B #7, @H'FAA4 ; refs ram_FAA4 in on_chip_ram; cycles=6
BBD3: 36 02 53       BNE loc_BE29 ; cycles=3/8 nt/t
BBD6: 50 5A          MOV:E.B #H'5A, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: candidate RX checksum validation starts from seed H'005A; confidence high; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; dataflow R0=H'5A; cycles=2
BBD8: 15 F8 60 60    XOR.B @H'F860, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F860 in on_chip_ram; cycles=7
BBDC: 15 F8 61 60    XOR.B @H'F861, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F861 in on_chip_ram; cycles=7
BBE0: 15 F8 62 60    XOR.B @H'F862, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F862 in on_chip_ram; cycles=7
BBE4: 15 F8 63 60    XOR.B @H'F863, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F863 in on_chip_ram; cycles=7
BBE8: 15 F8 64 60    XOR.B @H'F864, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F864 in on_chip_ram; cycles=7
BBEC: 15 F8 65 70    CMP:G.B @H'F865, R0 ; candidate/evidence-supported SCI1 6-byte RX frame; capture H'F868-H'F86D, validate H'F860-H'F865, checksum H'F865 seeded by H'005A; evidence: RX path XORs H'F860-H'F864 and compares the result with H'F865; confidence high; refs ram_F865 in on_chip_ram; cycles=7
BBF0: 36 02 36       BNE loc_BE29 ; cycles=3/7 nt/t
BBF3: 15 FA A6 13    CLR.B @H'FAA6 ; refs ram_FAA6 in on_chip_ram; cycles=8
BBF7: 15 F8 61 85    MOV:G.B @H'F861, R5 ; refs ram_F861 in on_chip_ram; cycles=6
BBFB: A5 10          SWAP.B R5 ; cycles=3
BBFD: 15 F8 62 85    MOV:G.B @H'F862, R5 ; refs ram_F862 in on_chip_ram; cycles=6
BC01: 1E A6 27       BSR loc_622B ; cycles=14
BC04: AD 84          MOV:G.W R5, R4 ; cycles=3
BC06: AC 1A          SHLL.W R4 ; cycles=3
BC08: 15 F8 60 80    MOV:G.B @H'F860, R0 ; refs ram_F860 in on_chip_ram; cycles=7
BC0C: 04 07 50       AND.B #H'07, R0 ; cycles=3
BC0F: 15 FA A2 16    TST.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=6
BC13: 26 25          BNE loc_BC3A ; cycles=3/8 nt/t

loc_BC15:
BC15: 15 FA A2 C7    BSET.B #7, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BC19: 15 F8 61 F7    BTST.B #7, @H'F861 ; refs ram_F861 in on_chip_ram; cycles=6
BC1D: 36 00 EB       BNE loc_BD0B ; cycles=3/8 nt/t
BC20: 40 00          CMP:E #H'00, R0 ; cycles=2
BC22: 27 45          BEQ loc_BC69 ; cycles=3/7 nt/t
BC24: 40 01          CMP:E #H'01, R0 ; cycles=2
BC26: 37 00 AE       BEQ loc_BCD7 ; cycles=3/7 nt/t
BC29: 40 02          CMP:E #H'02, R0 ; cycles=2
BC2B: 37 00 D6       BEQ loc_BD04 ; cycles=3/8 nt/t
BC2E: 40 07          CMP:E #H'07, R0 ; cycles=2
BC30: 37 01 D2       BEQ loc_BE05 ; cycles=3/7 nt/t
BC33: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BC37: 30 02 35       BRA loc_BE6F ; cycles=8

loc_BC3A:
BC3A: A0 F2          BTST.B #2, R0 ; cycles=2
BC3C: 27 1E          BEQ loc_BC5C ; cycles=3/7 nt/t
BC3E: 15 F8 61 F7    BTST.B #7, @H'F861 ; refs ram_F861 in on_chip_ram; cycles=7
BC42: 36 01 E2       BNE loc_BE27 ; cycles=3/7 nt/t
BC45: 40 04          CMP:E #H'04, R0 ; cycles=2
BC47: 37 00 C4       BEQ loc_BD0E ; cycles=3/8 nt/t
BC4A: 40 05          CMP:E #H'05, R0 ; cycles=2
BC4C: 37 01 31       BEQ loc_BD80 ; cycles=3/7 nt/t
BC4F: 40 06          CMP:E #H'06, R0 ; cycles=2
BC51: 37 01 87       BEQ loc_BDDB ; cycles=3/8 nt/t
BC54: 40 07          CMP:E #H'07, R0 ; cycles=2
BC56: 37 01 AC       BEQ loc_BE05 ; cycles=3/7 nt/t
BC59: 30 02 13       BRA loc_BE6F ; cycles=8

loc_BC5C:
BC5C: 15 FA A2 D3    BCLR.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BC60: 37 02 0C       BEQ loc_BE6F ; cycles=3/7 nt/t
BC63: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=8
BC67: 20 AC          BRA loc_BC15 ; cycles=8

loc_BC69:
BC69: AD 16          TST.W R5 ; cycles=3
BC6B: 26 1E          BNE loc_BC8B ; cycles=3/8 nt/t
BC6D: 15 F8 63 80    MOV:G.B @H'F863, R0 ; refs ram_F863 in on_chip_ram; cycles=6
BC71: A0 10          SWAP.B R0 ; cycles=3
BC73: 50 80          MOV:E.B #H'80, R0 ; dataflow R0=H'80; cycles=2
BC75: FC E0 00 90    MOV:G.W R0, @(-H'2000,R4) ; cycles=6
BC79: FC E8 00 90    MOV:G.W R0, @(-H'1800,R4) ; cycles=6
BC7D: 15 F8 64 06 80 MOV:G.B #H'80, @H'F864 ; refs ram_F864 in on_chip_ram; cycles=9
BC82: F5 EC 00 C7    BSET.B #7, @(-H'1400,R5) ; cycles=9
BC86: 1E 01 E7       BSR loc_BE70 ; cycles=13
BC89: 20 25          BRA loc_BCB0 ; cycles=8

loc_BC8B:
BC8B: 15 F8 63 80    MOV:G.B @H'F863, R0 ; refs ram_F863 in on_chip_ram; cycles=6
BC8F: A0 10          SWAP.B R0 ; cycles=3
BC91: 15 F8 64 80    MOV:G.B @H'F864, R0 ; refs ram_F864 in on_chip_ram; cycles=6
BC95: FC E0 00 90    MOV:G.W R0, @(-H'2000,R4) ; cycles=6
BC99: FC E8 00 90    MOV:G.W R0, @(-H'1800,R4) ; cycles=6
BC9D: F5 EC 00 C7    BSET.B #7, @(-H'1400,R5) ; cycles=8
BCA1: FC C5 64 81    MOV:G.W @(-H'3A9C,R4), R1 ; cycles=6
BCA5: A1 12          EXTU.B R1 ; cycles=3
BCA7: 27 04          BEQ loc_BCAD ; cycles=3/8 nt/t
BCA9: F9 F4 00 90    MOV:G.W R0, @(-H'0C00,R1) ; cycles=6

loc_BCAD:
BCAD: 1E 01 C0       BSR loc_BE70 ; cycles=14

loc_BCB0:
BCB0: 15 F8 50 06 04 MOV:G.B #H'04, @H'F850 ; refs ram_F850 in on_chip_ram; cycles=9
BCB5: 15 F8 61 80    MOV:G.B @H'F861, R0 ; refs ram_F861 in on_chip_ram; cycles=6
BCB9: 15 F8 51 90    MOV:G.B R0, @H'F851 ; refs ram_F851 in on_chip_ram; cycles=6
BCBD: 1D F8 62 80    MOV:G.W @H'F862, R0 ; refs ram_F862 in on_chip_ram; cycles=6
BCC1: 1D F8 52 90    MOV:G.W R0, @H'F852 ; refs ram_F852 in on_chip_ram; cycles=6
BCC5: 15 F8 64 80    MOV:G.B @H'F864, R0 ; refs ram_F864 in on_chip_ram; cycles=6
BCC9: 15 F8 54 90    MOV:G.B R0, @H'F854 ; refs ram_F854 in on_chip_ram; cycles=6
BCCD: 1E FD 56       BSR loc_BA26 ; cycles=14
BCD0: 15 FA A2 D7    BCLR.B #7, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BCD4: 30 01 98       BRA loc_BE6F ; cycles=7

loc_BCD7:
BCD7: 15 F8 50 06 04 MOV:G.B #H'04, @H'F850 ; refs ram_F850 in on_chip_ram; cycles=9
BCDC: 15 F8 61 80    MOV:G.B @H'F861, R0 ; refs ram_F861 in on_chip_ram; cycles=7
BCE0: 15 F8 51 90    MOV:G.B R0, @H'F851 ; refs ram_F851 in on_chip_ram; cycles=7
BCE4: 15 F8 62 80    MOV:G.B @H'F862, R0 ; refs ram_F862 in on_chip_ram; cycles=7
BCE8: 15 F8 51 90    MOV:G.B R0, @H'F851 ; refs ram_F851 in on_chip_ram; cycles=7
BCEC: FC E0 00 80    MOV:G.W @(-H'2000,R4), R0 ; cycles=7
BCF0: 15 F8 54 90    MOV:G.B R0, @H'F854 ; refs ram_F854 in on_chip_ram; cycles=7
BCF4: A0 10          SWAP.B R0 ; cycles=3
BCF6: 15 F8 53 90    MOV:G.B R0, @H'F853 ; refs ram_F853 in on_chip_ram; cycles=7
BCFA: 1E FD 29       BSR loc_BA26 ; cycles=13
BCFD: 15 FA A2 D7    BCLR.B #7, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BD01: 30 01 6B       BRA loc_BE6F ; cycles=8

loc_BD04:
BD04: 15 FA A2 D7    BCLR.B #7, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BD08: 30 01 64       BRA loc_BE6F ; cycles=7

loc_BD0B:
BD0B: 30 01 61       BRA loc_BE6F ; cycles=8

loc_BD0E:
BD0E: AD 16          TST.W R5 ; cycles=3
BD10: 26 19          BNE loc_BD2B ; cycles=3/7 nt/t
BD12: 15 F8 63 80    MOV:G.B @H'F863, R0 ; refs ram_F863 in on_chip_ram; cycles=7
BD16: A0 10          SWAP.B R0 ; cycles=3
BD18: 50 80          MOV:E.B #H'80, R0 ; dataflow R0=H'80; cycles=2
BD1A: FC E0 00 90    MOV:G.W R0, @(-H'2000,R4) ; cycles=7
BD1E: FC E8 00 90    MOV:G.W R0, @(-H'1800,R4) ; cycles=7
BD22: F5 EC 00 C7    BSET.B #7, @(-H'1400,R5) ; cycles=9
BD26: 1E 01 47       BSR loc_BE70 ; cycles=13
BD29: 20 3C          BRA loc_BD67 ; cycles=8

loc_BD2B:
BD2B: 15 F8 63 80    MOV:G.B @H'F863, R0 ; refs ram_F863 in on_chip_ram; cycles=6
BD2F: A0 10          SWAP.B R0 ; cycles=3
BD31: 15 F8 64 80    MOV:G.B @H'F864, R0 ; refs ram_F864 in on_chip_ram; cycles=6
BD35: FC E0 00 90    MOV:G.W R0, @(-H'2000,R4) ; cycles=6
BD39: F5 EC 00 C7    BSET.B #7, @(-H'1400,R5) ; cycles=8
BD3D: F4 C5 65 81    MOV:G.B @(-H'3A9B,R4), R1 ; cycles=6
BD41: A1 12          EXTU.B R1 ; cycles=3
BD43: 27 1F          BEQ loc_BD64 ; cycles=3/8 nt/t
BD45: F9 F4 00 90    MOV:G.W R0, @(-H'0C00,R1) ; cycles=6
BD49: 15 F7 6E F7    BTST.B #7, @H'F76E ; refs ram_F76E in on_chip_ram; cycles=6
BD4D: 27 15          BEQ loc_BD64 ; cycles=3/8 nt/t
BD4F: 12 31          STM.W {R0,R4,R5}, @-SP ; cycles=15
BD51: 15 F7 6E 84    MOV:G.B @H'F76E, R4 ; refs ram_F76E in on_chip_ram; cycles=6
BD55: A4 10          SWAP.B R4 ; cycles=3
BD57: A1 84          MOV:G.B R1, R4 ; cycles=2
BD59: 0C 0F FE 54    AND.W #H'0FFE, R4 ; cycles=4
BD5D: A8 85          MOV:G.W R0, R5 ; cycles=3
BD5F: 1E 02 7E       BSR loc_BFE0 ; cycles=14
BD62: 02 31          LDM.W @SP+, {R0,R4,R5} ; cycles=18

loc_BD64:
BD64: 1E 01 09       BSR loc_BE70 ; cycles=13

loc_BD67:
BD67: 15 FA A2 F3    BTST.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=6
BD6B: 27 08          BEQ loc_BD75 ; cycles=3/8 nt/t
BD6D: 15 F9 B5 08    ADD:Q.B #1, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=8
BD71: 15 F9 B5 D7    BCLR.B #7, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=8

loc_BD75:
BD75: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=8
BD79: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BD7D: 30 00 EF       BRA loc_BE6F ; cycles=8

loc_BD80:
BD80: 4D 00 6C       CMP:I #H'006C, R5 ; cycles=3
BD83: 27 3A          BEQ loc_BDBF ; cycles=3/8 nt/t
BD85: 4D 00 6D       CMP:I #H'006D, R5 ; cycles=3
BD88: 27 35          BEQ loc_BDBF ; cycles=3/7 nt/t
BD8A: 4D 00 6E       CMP:I #H'006E, R5 ; cycles=3
BD8D: 27 30          BEQ loc_BDBF ; cycles=3/8 nt/t
BD8F: 4D 00 6E       CMP:I #H'006E, R5 ; cycles=3
BD92: 27 2B          BEQ loc_BDBF ; cycles=3/7 nt/t
BD94: 15 F7 31 F7    BTST.B #7, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=7
BD98: 27 28          BEQ loc_BDC2 ; cycles=3/7 nt/t
BD9A: 4D 00 6B       CMP:I #H'006B, R5 ; cycles=3
BD9D: 27 16          BEQ loc_BDB5 ; cycles=3/8 nt/t
BD9F: 4D 00 96       CMP:I #H'0096, R5 ; cycles=3
BDA2: 27 11          BEQ loc_BDB5 ; cycles=3/7 nt/t
BDA4: 4D 00 97       CMP:I #H'0097, R5 ; cycles=3
BDA7: 27 0C          BEQ loc_BDB5 ; cycles=3/8 nt/t
BDA9: 4D 00 C6       CMP:I #H'00C6, R5 ; cycles=3
BDAC: 27 07          BEQ loc_BDB5 ; cycles=3/7 nt/t
BDAE: 4D 00 F8       CMP:I #H'00F8, R5 ; cycles=3
BDB1: 27 02          BEQ loc_BDB5 ; cycles=3/8 nt/t
BDB3: 20 0D          BRA loc_BDC2 ; cycles=8

loc_BDB5:
BDB5: 15 F7 31 D7    BCLR.B #7, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=8
BDB9: 15 F7 90 D7    BCLR.B #7, @H'F790 ; refs ram_F790 in on_chip_ram; cycles=8
BDBD: 20 03          BRA loc_BDC2 ; cycles=8

loc_BDBF:
BDBF: 1E 00 AE       BSR loc_BE70 ; cycles=14

loc_BDC2:
BDC2: 15 FA A2 F3    BTST.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=7
BDC6: 27 08          BEQ loc_BDD0 ; cycles=3/7 nt/t
BDC8: 15 F9 B5 08    ADD:Q.B #1, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=9
BDCC: 15 F9 B5 D7    BCLR.B #7, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=9

loc_BDD0:
BDD0: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=9
BDD4: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=9
BDD8: 30 00 94       BRA loc_BE6F ; cycles=7

loc_BDDB:
BDDB: 15 F8 63 80    MOV:G.B @H'F863, R0 ; refs ram_F863 in on_chip_ram; cycles=6
BDDF: A0 10          SWAP.B R0 ; cycles=3
BDE1: 15 F8 64 80    MOV:G.B @H'F864, R0 ; refs ram_F864 in on_chip_ram; cycles=6
BDE5: FC E4 00 90    MOV:G.W R0, @(-H'1C00,R4) ; cycles=6
BDE9: F5 EC 00 C6    BSET.B #6, @(-H'1400,R5) ; cycles=8
BDED: 15 FA A2 F3    BTST.B #3, @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=6
BDF1: 27 08          BEQ loc_BDFB ; cycles=3/8 nt/t
BDF3: 15 F9 B5 08    ADD:Q.B #1, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=8
BDF7: 15 F9 B5 D7    BCLR.B #7, @H'F9B5 ; refs ram_F9B5 in on_chip_ram; cycles=8

loc_BDFB:
BDFB: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=8
BDFF: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BE03: 20 6A          BRA loc_BE6F ; cycles=8

loc_BE05:
BE05: 1D F8 58 80    MOV:G.W @H'F858, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F858 in on_chip_ram; cycles=6
BE09: 1D F8 50 90    MOV:G.W R0, @H'F850 ; refs ram_F850 in on_chip_ram; cycles=6
BE0D: 1D F8 5A 80    MOV:G.W @H'F85A, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F85A in on_chip_ram; cycles=6
BE11: 1D F8 52 90    MOV:G.W R0, @H'F852 ; refs ram_F852 in on_chip_ram; cycles=6
BE15: 1D F8 5C 80    MOV:G.W @H'F85C, R0 ; candidate/evidence-supported SCI1 6-byte TX frame; H'F858-H'F85D, checksum H'F85D seeded by H'005A; evidence: TX buffer-region references cluster around H'F858-H'F85D; confidence high; refs ram_F85C in on_chip_ram; cycles=6
BE19: 1D F8 54 90    MOV:G.W R0, @H'F854 ; refs ram_F854 in on_chip_ram; cycles=6
BE1D: 15 F9 C0 06 1F MOV:G.B #H'1F, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BE22: 1E FC 01       BSR loc_BA26 ; cycles=13
BE25: 20 48          BRA loc_BE6F ; cycles=8

loc_BE27:
BE27: 20 46          BRA loc_BE6F ; cycles=8

loc_BE29:
BE29: 15 FA A4 D7    BCLR.B #7, @H'FAA4 ; refs ram_FAA4 in on_chip_ram; cycles=8
BE2D: 15 FA A5 F7    BTST.B #7, @H'FAA5 ; refs ram_FAA5 in on_chip_ram; cycles=6
BE31: 27 3A          BEQ loc_BE6D ; cycles=3/8 nt/t
BE33: 15 FA A6 08    ADD:Q.B #1, @H'FAA6 ; refs ram_FAA6 in on_chip_ram; cycles=8
BE37: 15 FA A6 04 02 CMP:G.B #H'02, @H'FAA6 ; refs ram_FAA6 in on_chip_ram; cycles=6
BE3C: 25 0F          BCS loc_BE4D ; cycles=3/7 nt/t
BE3E: 15 F9 C0 06 1F MOV:G.B #H'1F, @H'F9C0 ; refs ram_F9C0 in on_chip_ram; cycles=9
BE43: 15 FA A3 13    CLR.B @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=8
BE47: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BE4B: 20 20          BRA loc_BE6D ; cycles=8

loc_BE4D:
BE4D: 15 F8 50 06 07 MOV:G.B #H'07, @H'F850 ; refs ram_F850 in on_chip_ram; cycles=9
BE52: 15 F8 61 80    MOV:G.B @H'F861, R0 ; refs ram_F861 in on_chip_ram; cycles=7
BE56: 15 F8 51 90    MOV:G.B R0, @H'F851 ; refs ram_F851 in on_chip_ram; cycles=7
BE5A: 1D F8 62 80    MOV:G.W @H'F862, R0 ; refs ram_F862 in on_chip_ram; cycles=7
BE5E: 1D F8 52 90    MOV:G.W R0, @H'F852 ; refs ram_F852 in on_chip_ram; cycles=7
BE62: 15 F8 64 80    MOV:G.B @H'F864, R0 ; refs ram_F864 in on_chip_ram; cycles=7
BE66: 15 F8 54 90    MOV:G.B R0, @H'F854 ; refs ram_F854 in on_chip_ram; cycles=7
BE6A: 1E FB B9       BSR loc_BA26 ; cycles=13

loc_BE6D:
BE6D: 20 00          BRA loc_BE6F ; cycles=8

loc_BE6F:
BE6F: 19             RTS ; cycles=13

loc_BE70:
BE70: 15 F9 B9 83    MOV:G.B @H'F9B9, R3 ; refs ram_F9B9 in on_chip_ram; cycles=7
BE74: A3 12          EXTU.B R3 ; cycles=3
BE76: AB 1A          SHLL.W R3 ; cycles=3
BE78: 15 F9 B4 81    MOV:G.B @H'F9B4, R1 ; refs ram_F9B4 in on_chip_ram; cycles=7
BE7C: A1 12          EXTU.B R1 ; cycles=3
BE7E: A9 1A          SHLL.W R1 ; cycles=3

loc_BE80:
BE80: A3 71          CMP:G.B R3, R1 ; cycles=2
BE82: 27 0D          BEQ loc_BE91 ; cycles=3/7 nt/t
BE84: FB F9 70 75    CMP:G.W @(-H'0690,R3), R5 ; cycles=7
BE88: 27 13          BEQ loc_BE9D ; cycles=3/7 nt/t
BE8A: A3 09          ADD:Q.B #2, R3 ; cycles=4
BE8C: 04 3F 53       AND.B #H'3F, R3 ; cycles=3
BE8F: 20 EF          BRA loc_BE80 ; cycles=8

loc_BE91:
BE91: F9 F9 70 95    MOV:G.W R5, @(-H'0690,R1) ; cycles=6
BE95: 15 F9 B4 08    ADD:Q.B #1, @H'F9B4 ; refs ram_F9B4 in on_chip_ram; cycles=8
BE99: 15 F9 B4 D5    BCLR.B #5, @H'F9B4 ; refs ram_F9B4 in on_chip_ram; cycles=8

loc_BE9D:
BE9D: 19             RTS ; cycles=13

loc_BE9E:
BE9E: 15 FA A5 80    MOV:G.B @H'FAA5, R0 ; refs ram_FAA5 in on_chip_ram; cycles=7
BEA2: 04 80 50       AND.B #H'80, R0 ; cycles=3
BEA5: 15 FA A3 50    AND.B @H'FAA3, R0 ; refs ram_FAA3 in on_chip_ram; cycles=6
BEA9: 15 FA A3 90    MOV:G.B R0, @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=6
BEAD: 26 06          BNE loc_BEB5 ; cycles=3/8 nt/t
BEAF: 15 FA A2 13    CLR.B @H'FAA2 ; refs ram_FAA2 in on_chip_ram; cycles=8
BEB3: 20 33          BRA loc_BEE8 ; cycles=8

loc_BEB5:
BEB5: 1D F9 C6 16    TST.W @H'F9C6 ; refs ram_F9C6 in on_chip_ram; cycles=6
BEB9: 26 2D          BNE loc_BEE8 ; cycles=3/8 nt/t
BEBB: 15 F9 C8 16    TST.B @H'F9C8 ; refs ram_F9C8 in on_chip_ram; cycles=6
BEBF: 27 23          BEQ loc_BEE4 ; cycles=3/8 nt/t
BEC1: 15 F9 C8 0C    ADD:Q.B #-1, @H'F9C8 ; refs ram_F9C8 in on_chip_ram; cycles=8
BEC5: 1D F9 C6 07 01 F4 MOV:G.W #H'01F4, @H'F9C6 ; refs ram_F9C6 in on_chip_ram; cycles=9
BECB: 15 FA A3 F7    BTST.B #7, @H'FAA3 ; refs ram_FAA3 in on_chip_ram; cycles=6
BECF: 27 17          BEQ loc_BEE8 ; cycles=3/8 nt/t
BED1: 15 F9 C3 13    CLR.B @H'F9C3 ; refs ram_F9C3 in on_chip_ram; cycles=8
BED5: 1E FB 4E       BSR loc_BA26 ; cycles=14
BED8: 20 0E          BRA loc_BEE8 ; cycles=7

loc_BEE4:
BEE4: 15 F9 C5 13    CLR.B @H'F9C5 ; refs ram_F9C5 in on_chip_ram; cycles=9

loc_BEE8:
BEE8: 19             RTS ; cycles=12

vec_frt1_ocia_BEEA:
BEEA: 15 FE 91 D5    BCLR.B #5, @FRT1_TCSR ; clear OCFA (bit 5) of FRT1_TCSR; candidate/evidence-supported RAM role post_tx_report_delay at H'F9C0; evidence: candidate periodic tick ISR at H'BEEA for FRT1 OCIA vector H'0062 clears OCFA; confidence candidate/evidence-supported; candidate/evidence-supported RAM role secondary_tx_report_delay at H'F9C1; evidence: candidate periodic tick ISR at H'BEEA for FRT1 OCIA vector H'0062 clears OCFA; confidence candidate/evidence-supported; candidate/evidence-supported RAM role periodic_report_countdown at H'F9C6; evidence: candidate periodic tick ISR at H'BEEA for FRT1 OCIA vector H'0062 clears OCFA; confidence candidate/evidence-supported; cycles=9
BEEE: 15 F9 C0 16    TST.B @H'F9C0 ; candidate/evidence-supported RAM role post_tx_report_delay at H'F9C0; evidence: candidate post-TX/report delay timer is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C0 in on_chip_ram; cycles=7
BEF2: 27 04          BEQ loc_BEF8 ; cycles=3/7 nt/t
BEF4: 15 F9 C0 0C    ADD:Q.B #-1, @H'F9C0 ; candidate/evidence-supported RAM role post_tx_report_delay at H'F9C0; evidence: candidate post-TX/report delay timer is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C0 in on_chip_ram; cycles=9

loc_BEF8:
BEF8: 15 F9 C1 16    TST.B @H'F9C1 ; candidate/evidence-supported RAM role secondary_tx_report_delay at H'F9C1; evidence: candidate secondary TX/report delay timer is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C1 in on_chip_ram; cycles=7
BEFC: 27 04          BEQ loc_BF02 ; cycles=3/7 nt/t
BEFE: 15 F9 C1 0C    ADD:Q.B #-1, @H'F9C1 ; candidate/evidence-supported RAM role secondary_tx_report_delay at H'F9C1; evidence: candidate secondary TX/report delay timer is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C1 in on_chip_ram; cycles=9

loc_BF02:
BF02: 1D F9 C6 16    TST.W @H'F9C6 ; candidate/evidence-supported RAM role periodic_report_countdown at H'F9C6; evidence: candidate periodic report countdown is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C6 in on_chip_ram; cycles=7
BF06: 27 04          BEQ loc_BF0C ; cycles=3/7 nt/t
BF08: 1D F9 C6 0C    ADD:Q.W #-1, @H'F9C6 ; candidate/evidence-supported RAM role periodic_report_countdown at H'F9C6; evidence: candidate periodic report countdown is decremented by the FRT1 OCIA periodic tick ISR; confidence candidate/evidence-supported; refs ram_F9C6 in on_chip_ram; cycles=9

loc_BF0C:
BF0C: 15 F6 F6 F7    BTST.B #7, @H'F6F6 ; refs ram_F6F6 in on_chip_ram; cycles=7
BF10: 27 10          BEQ loc_BF22 ; cycles=3/7 nt/t
BF12: 1D F6 F4 16    TST.W @H'F6F4 ; refs ram_F6F4 in on_chip_ram; cycles=7
BF16: 26 06          BNE loc_BF1E ; cycles=3/7 nt/t
BF18: 15 F6 F6 C5    BSET.B #5, @H'F6F6 ; refs ram_F6F6 in on_chip_ram; cycles=9
BF1C: 20 04          BRA loc_BF22 ; cycles=7

loc_BF1E:
BF1E: 1D F6 F4 0C    ADD:Q.W #-1, @H'F6F4 ; refs ram_F6F4 in on_chip_ram; cycles=9

loc_BF22:
BF22: 0A             RTE ; cycles=13

vec_frt2_ocia_BF23:
BF23: 15 FE A1 D5    BCLR.B #5, @FRT2_TCSR ; clear OCFA (bit 5) of FRT2_TCSR; cycles=8
BF27: 15 F9 C4 16    TST.B @H'F9C4 ; refs ram_F9C4 in on_chip_ram; cycles=6
BF2B: 27 04          BEQ loc_BF31 ; cycles=3/8 nt/t
BF2D: 15 F9 C4 0C    ADD:Q.B #-1, @H'F9C4 ; refs ram_F9C4 in on_chip_ram; cycles=8

loc_BF31:
BF31: 15 F9 C5 16    TST.B @H'F9C5 ; refs ram_F9C5 in on_chip_ram; cycles=6
BF35: 27 04          BEQ loc_BF3B ; cycles=3/8 nt/t
BF37: 15 F9 C5 0C    ADD:Q.B #-1, @H'F9C5 ; refs ram_F9C5 in on_chip_ram; cycles=8

loc_BF3B:
BF3B: 15 F7 24 16    TST.B @H'F724 ; refs ram_F724 in on_chip_ram; cycles=6
BF3F: 27 06          BEQ loc_BF47 ; cycles=3/8 nt/t
BF41: 15 F7 24 0C    ADD:Q.B #-1, @H'F724 ; refs ram_F724 in on_chip_ram; cycles=8
BF45: 20 09          BRA loc_BF50 ; cycles=8

loc_BF47:
BF47: 15 F7 24 06 03 MOV:G.B #H'03, @H'F724 ; refs ram_F724 in on_chip_ram; cycles=9
BF4C: 15 F7 23 15    NOT.B @H'F723 ; refs ram_F723 in on_chip_ram; cycles=9

loc_BF50:
BF50: 15 FB 03 F7    BTST.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=7
BF54: 27 17          BEQ loc_BF6D ; cycles=3/7 nt/t
BF56: 15 FB 02 16    TST.B @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=7
BF5A: 27 06          BEQ loc_BF62 ; cycles=3/7 nt/t
BF5C: 15 FB 02 0C    ADD:Q.B #-1, @H'FB02 ; refs ram_FB02 in on_chip_ram; cycles=9
BF60: 20 0B          BRA loc_BF6D ; cycles=7

loc_BF62:
BF62: 15 FB 03 D7    BCLR.B #7, @H'FB03 ; refs ram_FB03 in on_chip_ram; cycles=9
BF66: 12 3F          STM.W {R0,R1,R2,R3,R4,R5}, @-SP ; cycles=24
BF68: 1E 89 84       BSR loc_48EF ; cycles=13
BF6B: 02 3F          LDM.W @SP+, {R0,R1,R2,R3,R4,R5} ; cycles=30

loc_BF6D:
BF6D: 15 F7 6C 16    TST.B @H'F76C ; refs ram_F76C in on_chip_ram; cycles=6
BF71: 27 04          BEQ loc_BF77 ; cycles=3/8 nt/t
BF73: 15 F7 6C 0C    ADD:Q.B #-1, @H'F76C ; refs ram_F76C in on_chip_ram; cycles=8

loc_BF77:
BF77: 15 F8 40 16    TST.B @H'F840 ; refs ram_F840 in on_chip_ram; cycles=6
BF7B: 27 04          BEQ loc_BF81 ; cycles=3/8 nt/t
BF7D: 15 F8 40 0C    ADD:Q.B #-1, @H'F840 ; refs ram_F840 in on_chip_ram; cycles=8

loc_BF81:
BF81: 15 F7 26 16    TST.B @H'F726 ; refs ram_F726 in on_chip_ram; cycles=6
BF85: 27 1C          BEQ loc_BFA3 ; cycles=3/8 nt/t
BF87: 15 F7 26 0C    ADD:Q.B #-1, @H'F726 ; refs ram_F726 in on_chip_ram; cycles=8
BF8B: 26 16          BNE loc_BFA3 ; cycles=3/8 nt/t
BF8D: 15 F7 13 D6    BCLR.B #6, @H'F713 ; refs ram_F713 in on_chip_ram; cycles=8
BF91: 26 10          BNE loc_BFA3 ; cycles=3/8 nt/t
BF93: 15 F7 11 D7    BCLR.B #7, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8
BF97: 15 F7 11 D6    BCLR.B #6, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8
BF9B: 15 F7 11 D5    BCLR.B #5, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8
BF9F: 15 F7 11 D4    BCLR.B #4, @H'F711 ; refs ram_F711 in on_chip_ram; cycles=8

loc_BFA3:
BFA3: 15 F7 97 16    TST.B @H'F797 ; refs ram_F797 in on_chip_ram; cycles=6
BFA7: 27 0A          BEQ loc_BFB3 ; cycles=3/8 nt/t
BFA9: 15 F7 97 0C    ADD:Q.B #-1, @H'F797 ; refs ram_F797 in on_chip_ram; cycles=8
BFAD: 26 04          BNE loc_BFB3 ; cycles=3/8 nt/t
BFAF: 15 F7 31 D7    BCLR.B #7, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=8

loc_BFB3:
BFB3: 15 F7 98 16    TST.B @H'F798 ; refs ram_F798 in on_chip_ram; cycles=6
BFB7: 27 0A          BEQ loc_BFC3 ; cycles=3/8 nt/t
BFB9: 15 F7 98 0C    ADD:Q.B #-1, @H'F798 ; refs ram_F798 in on_chip_ram; cycles=8
BFBD: 26 04          BNE loc_BFC3 ; cycles=3/8 nt/t
BFBF: 15 F7 31 D7    BCLR.B #7, @H'F731 ; refs ram_F731 in on_chip_ram; cycles=8

loc_BFC3:
BFC3: 0A             RTE ; cycles=14

vec_interval_timer_BFC4:
BFC4: 15 FE EC F7    BTST.B #7, @WDT_TCSR_R ; refs WDT_TCSR_R in register_field; cycles=7
BFC8: 1D FE EC 07 A5 3F MOV:G.W #H'A53F, @WDT_TCSR_R ; WDT_TCSR_R = H'A53F (OVF=0 WT/IT=0 TME=1 CKS2=1 CKS1=1 CKS0=1; TCSR password H'A5, WDT enabled, interval IRQ0, clock phi/4096); cycles=11
BFCE: 15 F7 94 08    ADD:Q.B #1, @H'F794 ; refs ram_F794 in on_chip_ram; cycles=9
BFD2: 15 F7 94 04 0A CMP:G.B #H'0A, @H'F794 ; refs ram_F794 in on_chip_ram; cycles=7
BFD7: 26 06          BNE loc_BFDF ; cycles=3/8 nt/t
BFD9: 1D FE EC 07 A5 7F MOV:G.W #H'A57F, @WDT_TCSR_R ; WDT_TCSR_R = H'A57F (OVF=0 WT/IT=1 TME=1 CKS2=1 CKS1=1 CKS0=1; TCSR password H'A5, WDT enabled, watchdog NMI, clock phi/4096); cycles=9

loc_BFDF:
BFDF: 0A             RTE ; cycles=14

loc_BFE0:
BFE0: 15 F8 40 06 0A MOV:G.B #H'0A, @H'F840 ; refs ram_F840 in on_chip_ram; cycles=9

loc_BFE5:
BFE5: AD 82          MOV:G.W R5, R2 ; cycles=3
BFE7: 0E 27          BSR loc_C010 ; cycles=14
BFE9: 0E 4E          BSR loc_C039 ; cycles=14
BFEB: AA 75          CMP:G.W R2, R5 ; cycles=3
BFED: 27 0E          BEQ loc_BFFD ; cycles=3/8 nt/t
BFEF: 15 F8 40 16    TST.B @H'F840 ; refs ram_F840 in on_chip_ram; cycles=6
BFF3: 27 04          BEQ loc_BFF9 ; cycles=3/8 nt/t
BFF5: AA 85          MOV:G.W R2, R5 ; cycles=3
BFF7: 20 EC          BRA loc_BFE5 ; cycles=8

loc_BFF9:
BFF9: 15 F8 41 C7    BSET.B #7, @H'F841 ; refs ram_F841 in on_chip_ram; cycles=8

loc_BFFD:
BFFD: 19             RTS ; cycles=13

loc_BFFE:
BFFE: 15 F8 40 06 0A MOV:G.B #H'0A, @H'F840 ; refs ram_F840 in on_chip_ram; cycles=9
C003: 0E 34          BSR loc_C039 ; cycles=14
C005: 15 F8 40 16    TST.B @H'F840 ; refs ram_F840 in on_chip_ram; cycles=6
C009: 26 04          BNE loc_C00F ; cycles=3/8 nt/t
C00B: 15 F8 41 C6    BSET.B #6, @H'F841 ; refs ram_F841 in on_chip_ram; cycles=8

loc_C00F:
C00F: 19             RTS ; cycles=13

loc_C010:
C010: 0E 58          BSR loc_C06A ; cycles=13

loc_C012:
C012: 15 F8 40 16    TST.B @H'F840 ; refs ram_F840 in on_chip_ram; cycles=7
C016: 27 20          BEQ loc_C038 ; cycles=3/7 nt/t
C018: 1E 01 06       BSR loc_C121 ; cycles=13
C01B: A3 80          MOV:G.B R3, R0 ; cycles=2
C01D: 0E 6C          BSR loc_C08B ; cycles=14
C01F: 27 F1          BEQ loc_C012 ; cycles=3/8 nt/t
C021: A4 80          MOV:G.B R4, R0 ; cycles=2
C023: 0E 66          BSR loc_C08B ; cycles=14
C025: 27 EB          BEQ loc_C012 ; cycles=3/8 nt/t
C027: AD 80          MOV:G.W R5, R0 ; cycles=3
C029: A0 10          SWAP.B R0 ; cycles=3
C02B: 0E 5E          BSR loc_C08B ; cycles=14
C02D: 27 E3          BEQ loc_C012 ; cycles=3/8 nt/t
C02F: A5 80          MOV:G.B R5, R0 ; cycles=2
C031: 0E 58          BSR loc_C08B ; cycles=14
C033: 27 DD          BEQ loc_C012 ; cycles=3/8 nt/t
C035: 1E 01 0A       BSR loc_C142 ; cycles=14

loc_C038:
C038: 19             RTS ; cycles=12

loc_C039:
C039: 0E 2F          BSR loc_C06A ; cycles=14

loc_C03B:
C03B: 15 F8 40 16    TST.B @H'F840 ; refs ram_F840 in on_chip_ram; cycles=6
C03F: 27 28          BEQ loc_C069 ; cycles=3/8 nt/t
C041: 1E 00 DD       BSR loc_C121 ; cycles=14
C044: A3 80          MOV:G.B R3, R0 ; cycles=2
C046: 0E 43          BSR loc_C08B ; cycles=13
C048: 27 F1          BEQ loc_C03B ; cycles=3/7 nt/t
C04A: A4 80          MOV:G.B R4, R0 ; cycles=2
C04C: 0E 3D          BSR loc_C08B ; cycles=13
C04E: 27 EB          BEQ loc_C03B ; cycles=3/7 nt/t
C050: 1E 00 CE       BSR loc_C121 ; cycles=13
C053: A3 80          MOV:G.B R3, R0 ; cycles=2
C055: A0 C0          BSET.B #0, R0 ; cycles=2
C057: 0E 32          BSR loc_C08B ; cycles=14
C059: 27 E0          BEQ loc_C03B ; cycles=3/8 nt/t
C05B: 1E 00 7D       BSR loc_C0DB ; cycles=14
C05E: A5 10          SWAP.B R5 ; cycles=3
C060: 1E 00 A9       BSR loc_C10C ; cycles=13
C063: 1E 00 75       BSR loc_C0DB ; cycles=14
C066: 1E 00 D9       BSR loc_C142 ; cycles=13

loc_C069:
C069: 19             RTS ; cycles=13

loc_C06A:
C06A: 0C 0F FF 54    AND.W #H'0FFF, R4 ; cycles=4
C06E: 4C 08 00       CMP:I #H'0800, R4 ; cycles=3
C071: 24 0B          BCC loc_C07E ; cycles=3/8 nt/t
C073: AC 83          MOV:G.W R4, R3 ; cycles=3
C075: A3 10          SWAP.B R3 ; cycles=3
C077: A3 1A          SHLL.B R3 ; cycles=2
C079: 04 A0 43       OR.B #H'A0, R3 ; cycles=3
C07C: 20 0C          BRA loc_C08A ; cycles=7

loc_C07E:
C07E: AC 83          MOV:G.W R4, R3 ; cycles=3
C080: A3 10          SWAP.B R3 ; cycles=3
C082: A3 1A          SHLL.B R3 ; cycles=2
C084: 04 0E 53       AND.B #H'0E, R3 ; cycles=3
C087: 04 E0 43       OR.B #H'E0, R3 ; cycles=3

loc_C08A:
C08A: 19             RTS ; cycles=12

loc_C08B:
C08B: 59 00 07       MOV:I.W #H'0007, R1 ; dataflow R1=H'0007; cycles=3

loc_C08E:
C08E: A0 1A          SHLL.B R0 ; cycles=2
C090: 24 06          BCC loc_C098 ; cycles=3/7 nt/t
C092: 15 FE FF C7    BSET.B #7, @P9DR ; set bit 7 of P9DR; cycles=9
C096: 20 04          BRA loc_C09C ; cycles=7

loc_C098:
C098: 15 FE FF D7    BCLR.B #7, @P9DR ; clear bit 7 of P9DR; cycles=9

loc_C09C:
C09C: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C0A0: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C0A4: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C0A8: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=9
C0AC: 01 B9 DF       SCB/F R1, loc_C08E ; cycles=3/4/8 false/-1/t
C0AF: 15 FE FE 06 13 MOV:G.B #H'13, @P9DDR ; P9DDR = H'13; cycles=9
C0B4: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C0B8: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C0BC: 15 FE FF F7    BTST.B #7, @P9DR ; refs P9DR in register_field; cycles=7
C0C0: 27 0D          BEQ loc_C0CF ; cycles=3/7 nt/t
C0C2: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=9
C0C6: 15 FE FE 06 93 MOV:G.B #H'93, @P9DDR ; P9DDR = H'93; cycles=9
C0CB: 50 00          MOV:E.B #H'00, R0 ; dataflow R0=H'00; cycles=2
C0CD: 20 0B          BRA loc_C0DA ; cycles=8

loc_C0CF:
C0CF: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=8
C0D3: 15 FE FE 06 93 MOV:G.B #H'93, @P9DDR ; P9DDR = H'93; cycles=9
C0D8: 50 01          MOV:E.B #H'01, R0 ; dataflow R0=H'01; cycles=2

loc_C0DA:
C0DA: 19             RTS ; cycles=12

loc_C0DB:
C0DB: 15 FE FE 06 13 MOV:G.B #H'13, @P9DDR ; P9DDR = H'13; cycles=9
C0E0: 59 00 07       MOV:I.W #H'0007, R1 ; dataflow R1=H'0007; cycles=3

loc_C0E3:
C0E3: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C0E7: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C0EB: 15 FE FF F7    BTST.B #7, @P9DR ; refs P9DR in register_field; cycles=6
C0EF: 27 04          BEQ loc_C0F5 ; cycles=3/8 nt/t
C0F1: A5 49          BSET.B R1, R5 ; cycles=2
C0F3: 20 02          BRA loc_C0F7 ; cycles=8

loc_C0F5:
C0F5: A5 59          BCLR.B R1, R5 ; cycles=2

loc_C0F7:
C0F7: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=8
C0FB: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=8
C0FF: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=8
C103: 01 B9 DD       SCB/F R1, loc_C0E3 ; cycles=3/4/9 false/-1/t
C106: 15 FE FE 06 93 MOV:G.B #H'93, @P9DDR ; P9DDR = H'93; cycles=9
C10B: 19             RTS ; cycles=13

loc_C10C:
C10C: 15 FE FF D7    BCLR.B #7, @P9DR ; clear bit 7 of P9DR; cycles=9
C110: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C114: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C118: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C11C: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=9
C120: 19             RTS ; cycles=12

loc_C121:
C121: 15 FE FF C7    BSET.B #7, @P9DR ; set bit 7 of P9DR; cycles=8
C125: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C129: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C12D: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C131: 15 FE FF D7    BCLR.B #7, @P9DR ; clear bit 7 of P9DR; cycles=8
C135: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C139: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=8
C13D: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=8
C141: 19             RTS ; cycles=13

loc_C142:
C142: 15 FE FF D7    BCLR.B #7, @P9DR ; clear bit 7 of P9DR; cycles=9
C146: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C14A: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C14E: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C152: 15 FE FF C7    BSET.B #7, @P9DR ; set bit 7 of P9DR; cycles=9
C156: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C15A: 15 FE FF C1    BSET.B #1, @P9DR ; set bit 1 of P9DR; cycles=9
C15E: 15 FE FF D1    BCLR.B #1, @P9DR ; clear bit 1 of P9DR; cycles=9
C162: 19             RTS ; cycles=12
