
;  GNU C 2.7.2 [AL 1.1, MM 40] RISC NEWS-OS compiled by CC

;  Cc1 defaults:
;  -mmemcpy

;  Cc1 arguments (-G value = 0, Cpu = 3000, ISA = 1):
;  -quiet -dumpbase -O2 -Wall -o

gcc2_compiled.:
__gnu_compiled_c:
	.global	m6800_op_table
	.code
	.align	2
m6800_op_table:
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_NOP_INHERENT
	.byte	0
	.byte	2
	.half	2434
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_LSRD_INHERENT
	.byte	0
	.byte	3
	.half	2811
	.word	m6800op_ASLD_INHERENT
	.byte	0
	.byte	3
	.half	2797
	.word	m6800op_TAP_INHERENT
	.byte	0
	.byte	2
	.half	2577
	.word	m6800op_TPA_INHERENT
	.byte	0
	.byte	2
	.half	2590
	.word	m6800op_INX_INHERENT
	.byte	0
	.byte	3
	.half	1952
	.word	m6800op_DEX_INHERENT
	.byte	0
	.byte	3
	.half	1926
	.word	m6800op_CLV_INHERENT
	.byte	0
	.byte	2
	.half	2525
	.word	m6800op_SEV_INHERENT
	.byte	0
	.byte	2
	.half	2564
	.word	m6800op_CLC_INHERENT
	.byte	0
	.byte	2
	.half	2499
	.word	m6800op_SEC_INHERENT
	.byte	0
	.byte	2
	.half	2538
	.word	m6800op_CLI_INHERENT
	.byte	0
	.byte	2
	.half	2512
	.word	m6800op_SEI_INHERENT
	.byte	0
	.byte	2
	.half	2551
	.word	m6800op_SBA_INHERENT
	.byte	0
	.byte	2
	.half	1676
	.word	m6800op_CBA_INHERENT
	.byte	0
	.byte	2
	.half	607
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_TAB_INHERENT
	.byte	0
	.byte	2
	.half	1797
	.word	m6800op_TBA_INHERENT
	.byte	0
	.byte	2
	.half	1810
	.word	m6800op_XGDX_INHERENT
	.byte	0
	.byte	2
	.half	2995
	.word	m6800op_DAA_INHERENT
	.byte	0
	.byte	2
	.half	726
	.word	m6800op_SLP_INHERENT
	.byte	0
	.byte	4
	.half	3009
	.word	m6800op_ABA_INHERENT
	.byte	0
	.byte	2
	.half	109
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_BRA_ADDRESS
	.byte	4
	.byte	3
	.half	2176
	.word	m6800op_BRN_ADDRESS
	.byte	4
	.byte	3
	.half	2838
	.word	m6800op_BHI_ADDRESS
	.byte	4
	.byte	3
	.half	2254
	.word	m6800op_BLS_ADDRESS
	.byte	4
	.byte	3
	.half	2280
	.word	m6800op_BCC_ADDRESS
	.byte	4
	.byte	3
	.half	2189
	.word	m6800op_BCS_ADDRESS
	.byte	4
	.byte	3
	.half	2202
	.word	m6800op_BNE_ADDRESS
	.byte	4
	.byte	3
	.half	2319
	.word	m6800op_BEQ_ADDRESS
	.byte	4
	.byte	3
	.half	2215
	.word	m6800op_BVC_ADDRESS
	.byte	4
	.byte	3
	.half	2332
	.word	m6800op_BVS_ADDRESS
	.byte	4
	.byte	3
	.half	2345
	.word	m6800op_BPL_ADDRESS
	.byte	4
	.byte	3
	.half	2358
	.word	m6800op_BMI_ADDRESS
	.byte	4
	.byte	3
	.half	2306
	.word	m6800op_BGE_ADDRESS
	.byte	4
	.byte	3
	.half	2228
	.word	m6800op_BLT_ADDRESS
	.byte	4
	.byte	3
	.half	2293
	.word	m6800op_BGT_ADDRESS
	.byte	4
	.byte	3
	.half	2241
	.word	m6800op_BLE_ADDRESS
	.byte	4
	.byte	3
	.half	2267
	.word	m6800op_TSX_INHERENT
	.byte	0
	.byte	3
	.half	2163
	.word	m6800op_INS_INHERENT
	.byte	0
	.byte	4
	.half	1965
	.word	m6800op_PULA_INHERENT
	.byte	0
	.byte	4
	.half	1197
	.word	m6800op_PULB_INHERENT
	.byte	0
	.byte	4
	.half	1211
	.word	m6800op_DES_INHERENT
	.byte	0
	.byte	4
	.half	1939
	.word	m6800op_TXS_INHERENT
	.byte	0
	.byte	3
	.half	2150
	.word	m6800op_PSHA_INHERENT
	.byte	0
	.byte	3
	.half	1169
	.word	m6800op_PSHB_INHERENT
	.byte	0
	.byte	3
	.half	1183
	.word	m6800op_PULX_INHERENT
	.byte	0
	.byte	5
	.half	2878
	.word	m6800op_RTS_INHERENT
	.byte	0
	.byte	5
	.half	2460
	.word	m6800op_ABX_INHERENT
	.byte	0
	.byte	3
	.half	2851
	.word	m6800op_RTI_INHERENT
	.byte	0
	.byte	10
	.half	2447
	.word	m6800op_PSHX_INHERENT
	.byte	0
	.byte	4
	.half	2864
	.word	m6800op_MUL_INHERENT
	.byte	0
	.byte	10
	.half	2825
	.word	m6800op_WAI_INHERENT
	.byte	0
	.byte	9
	.half	2486
	.word	m6800op_SWI_INHERENT
	.byte	0
	.byte	12
	.half	2473
	.word	m6800op_NEGA_INHERENT
	.byte	0
	.byte	2
	.half	698
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_COMA_INHERENT
	.byte	0
	.byte	2
	.half	645
	.word	m6800op_LSRA_INHERENT
	.byte	0
	.byte	2
	.half	1462
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_RORA_INHERENT
	.byte	0
	.byte	2
	.half	1303
	.word	m6800op_ASRA_INHERENT
	.byte	0
	.byte	2
	.half	1409
	.word	m6800op_ASLA_INHERENT
	.byte	0
	.byte	2
	.half	1356
	.word	m6800op_ROLA_INHERENT
	.byte	0
	.byte	2
	.half	1250
	.word	m6800op_DECA_INHERENT
	.byte	0
	.byte	2
	.half	764
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_INCA_INHERENT
	.byte	0
	.byte	2
	.half	925
	.word	m6800op_TSTA_INHERENT
	.byte	0
	.byte	2
	.half	1848
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_CLRA_INHERENT
	.byte	0
	.byte	2
	.half	471
	.word	m6800op_NEGB_INHERENT
	.byte	0
	.byte	2
	.half	712
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_COMB_INHERENT
	.byte	0
	.byte	2
	.half	659
	.word	m6800op_LSRB_INHERENT
	.byte	0
	.byte	2
	.half	1476
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_RORB_INHERENT
	.byte	0
	.byte	2
	.half	1317
	.word	m6800op_ASRB_INHERENT
	.byte	0
	.byte	2
	.half	1423
	.word	m6800op_ASLB_INHERENT
	.byte	0
	.byte	2
	.half	1370
	.word	m6800op_ROLB_INHERENT
	.byte	0
	.byte	2
	.half	1264
	.word	m6800op_DECB_INHERENT
	.byte	0
	.byte	2
	.half	778
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_INCB_INHERENT
	.byte	0
	.byte	2
	.half	939
	.word	m6800op_TSTB_INHERENT
	.byte	0
	.byte	2
	.half	1862
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_CLRB_INHERENT
	.byte	0
	.byte	2
	.half	485
	.word	m6800op_NEG_ADDRESS
	.byte	3
	.byte	6
	.half	673
	.word	m6800op_AIM_DATA
	.byte	5
	.byte	7
	.half	2914
	.word	m6800op_OIM_DATA
	.byte	5
	.byte	7
	.half	2937
	.word	m6800op_COM_ADDRESS
	.byte	3
	.byte	6
	.half	620
	.word	m6800op_LSR_ADDRESS
	.byte	3
	.byte	6
	.half	1437
	.word	m6800op_EIM_DATA
	.byte	5
	.byte	7
	.half	2960
	.word	m6800op_ROR_ADDRESS
	.byte	3
	.byte	6
	.half	1278
	.word	m6800op_ASR_ADDRESS
	.byte	3
	.byte	6
	.half	1384
	.word	m6800op_ASL_ADDRESS
	.byte	3
	.byte	6
	.half	1331
	.word	m6800op_ROL_ADDRESS
	.byte	3
	.byte	6
	.half	1225
	.word	m6800op_DEC_ADDRESS
	.byte	3
	.byte	6
	.half	739
	.word	m6800op_TIM_DATA
	.byte	5
	.byte	5
	.half	2983
	.word	m6800op_INC_ADDRESS
	.byte	3
	.byte	6
	.half	900
	.word	m6800op_TST_ADDRESS
	.byte	3
	.byte	6
	.half	1823
	.word	m6800op_JMP_ADDRESS
	.byte	3
	.byte	3
	.half	2384
	.word	m6800op_CLR_ADDRESS
	.byte	3
	.byte	6
	.half	446
	.word	m6800op_NEG_ADDRESS
	.byte	6
	.byte	6
	.half	685
	.word	m6800op_AIM_DATA
	.byte	5
	.byte	6
	.half	2903
	.word	m6800op_OIM_DATA
	.byte	5
	.byte	6
	.half	2926
	.word	m6800op_COM_ADDRESS
	.byte	6
	.byte	6
	.half	632
	.word	m6800op_LSR_ADDRESS
	.byte	6
	.byte	6
	.half	1449
	.word	m6800op_EIM_DATA
	.byte	5
	.byte	6
	.half	2949
	.word	m6800op_ROR_ADDRESS
	.byte	6
	.byte	6
	.half	1290
	.word	m6800op_ASR_ADDRESS
	.byte	6
	.byte	6
	.half	1396
	.word	m6800op_ASL_ADDRESS
	.byte	6
	.byte	6
	.half	1343
	.word	m6800op_ROL_ADDRESS
	.byte	6
	.byte	6
	.half	1237
	.word	m6800op_DEC_ADDRESS
	.byte	6
	.byte	6
	.half	751
	.word	m6800op_TIM_DATA
	.byte	5
	.byte	4
	.half	2972
	.word	m6800op_INC_ADDRESS
	.byte	6
	.byte	6
	.half	912
	.word	m6800op_TST_ADDRESS
	.byte	6
	.byte	6
	.half	1835
	.word	m6800op_JMP_ADDRESS
	.byte	6
	.byte	3
	.half	2396
	.word	m6800op_CLR_ADDRESS
	.byte	6
	.byte	6
	.half	458
	.word	m6800op_SUBA_DATA
	.byte	1
	.byte	2
	.half	1568
	.word	m6800op_CMPA_DATA
	.byte	1
	.byte	2
	.half	499
	.word	m6800op_SBCA_DATA
	.byte	1
	.byte	2
	.half	1689
	.word	m6800op_SUBD_DATA
	.byte	5
	.byte	4
	.half	2743
	.word	m6800op_ANDA_DATA
	.byte	1
	.byte	2
	.half	230
	.word	m6800op_BITA_DATA
	.byte	1
	.byte	2
	.half	338
	.word	m6800op_LDAA_DATA
	.byte	1
	.byte	2
	.half	953
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_EORA_DATA
	.byte	1
	.byte	2
	.half	792
	.word	m6800op_ADCA_DATA
	.byte	1
	.byte	2
	.half	122
	.word	m6800op_ORAA_DATA
	.byte	1
	.byte	2
	.half	1061
	.word	m6800op_ADDA_DATA
	.byte	1
	.byte	2
	.half	1
	.word	m6800op_CPX_DATA
	.byte	5
	.byte	4
	.half	1876
	.word	m6800op_BSR_ADDRESS
	.byte	4
	.byte	6
	.half	2371
	.word	m6800op_LDS_DATA
	.byte	5
	.byte	3
	.half	2028
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_SUBA_ADDRESS
	.byte	2
	.byte	3
	.half	1583
	.word	m6800op_CMPA_ADDRESS
	.byte	2
	.byte	3
	.half	514
	.word	m6800op_SBCA_ADDRESS
	.byte	2
	.byte	3
	.half	1704
	.word	m6800op_SUBD_ADDRESS
	.byte	2
	.byte	5
	.half	2758
	.word	m6800op_ANDA_ADDRESS
	.byte	2
	.byte	3
	.half	245
	.word	m6800op_BITA_ADDRESS
	.byte	2
	.byte	3
	.half	353
	.word	m6800op_LDAA_ADDRESS
	.byte	2
	.byte	3
	.half	968
	.word	m6800op_STAA_ADDRESS
	.byte	2
	.byte	4
	.half	1490
	.word	m6800op_EORA_ADDRESS
	.byte	2
	.byte	3
	.half	807
	.word	m6800op_ADCA_ADDRESS
	.byte	2
	.byte	3
	.half	137
	.word	m6800op_ORAA_ADDRESS
	.byte	2
	.byte	3
	.half	1076
	.word	m6800op_ADDA_ADDRESS
	.byte	2
	.byte	3
	.half	16
	.word	m6800op_CPX_ADDRESS
	.byte	2
	.byte	5
	.half	1890
	.word	m6800op_JSR_ADDRESS
	.byte	2
	.byte	5
	.half	2892
	.word	m6800op_LDS_ADDRESS
	.byte	2
	.byte	4
	.half	2042
	.word	m6800op_STS_ADDRESS
	.byte	2
	.byte	5
	.half	2114
	.word	m6800op_SUBA_ADDRESS
	.byte	3
	.byte	4
	.half	1595
	.word	m6800op_CMPA_ADDRESS
	.byte	3
	.byte	4
	.half	526
	.word	m6800op_SBCA_ADDRESS
	.byte	3
	.byte	4
	.half	1716
	.word	m6800op_SUBD_ADDRESS
	.byte	3
	.byte	6
	.half	2770
	.word	m6800op_ANDA_ADDRESS
	.byte	3
	.byte	4
	.half	257
	.word	m6800op_BITA_ADDRESS
	.byte	3
	.byte	4
	.half	365
	.word	m6800op_LDAA_ADDRESS
	.byte	3
	.byte	4
	.half	980
	.word	m6800op_STAA_ADDRESS
	.byte	3
	.byte	4
	.half	1502
	.word	m6800op_EORA_ADDRESS
	.byte	3
	.byte	4
	.half	819
	.word	m6800op_ADCA_ADDRESS
	.byte	3
	.byte	4
	.half	149
	.word	m6800op_ORAA_ADDRESS
	.byte	3
	.byte	4
	.half	1088
	.word	m6800op_ADDA_ADDRESS
	.byte	3
	.byte	4
	.half	28
	.word	m6800op_CPX_ADDRESS
	.byte	3
	.byte	6
	.half	1901
	.word	m6800op_JSR_ADDRESS
	.byte	3
	.byte	6
	.half	2409
	.word	m6800op_LDS_ADDRESS
	.byte	3
	.byte	5
	.half	2053
	.word	m6800op_STS_ADDRESS
	.byte	3
	.byte	5
	.half	2125
	.word	m6800op_SUBA_ADDRESS
	.byte	6
	.byte	4
	.half	1608
	.word	m6800op_CMPA_ADDRESS
	.byte	6
	.byte	4
	.half	539
	.word	m6800op_SBCA_ADDRESS
	.byte	6
	.byte	4
	.half	1729
	.word	m6800op_SUBD_ADDRESS
	.byte	6
	.byte	6
	.half	2783
	.word	m6800op_ANDA_ADDRESS
	.byte	6
	.byte	4
	.half	270
	.word	m6800op_BITA_ADDRESS
	.byte	6
	.byte	4
	.half	378
	.word	m6800op_LDAA_ADDRESS
	.byte	6
	.byte	4
	.half	993
	.word	m6800op_STAA_ADDRESS
	.byte	6
	.byte	4
	.half	1515
	.word	m6800op_EORA_ADDRESS
	.byte	6
	.byte	4
	.half	832
	.word	m6800op_ADCA_ADDRESS
	.byte	6
	.byte	4
	.half	162
	.word	m6800op_ORAA_ADDRESS
	.byte	6
	.byte	4
	.half	1101
	.word	m6800op_ADDA_ADDRESS
	.byte	6
	.byte	4
	.half	41
	.word	m6800op_CPX_ADDRESS
	.byte	6
	.byte	6
	.half	1913
	.word	m6800op_JSR_ADDRESS
	.byte	6
	.byte	6
	.half	2421
	.word	m6800op_LDS_ADDRESS
	.byte	6
	.byte	5
	.half	2065
	.word	m6800op_STS_ADDRESS
	.byte	6
	.byte	5
	.half	2137
	.word	m6800op_SUBB_DATA
	.byte	1
	.byte	2
	.half	1622
	.word	m6800op_CMPB_DATA
	.byte	1
	.byte	2
	.half	553
	.word	m6800op_SBCB_DATA
	.byte	1
	.byte	2
	.half	1743
	.word	m6800op_ADDD_DATA
	.byte	5
	.byte	4
	.half	2689
	.word	m6800op_ANDB_DATA
	.byte	1
	.byte	2
	.half	284
	.word	m6800op_BITB_DATA
	.byte	1
	.byte	2
	.half	392
	.word	m6800op_LDAB_DATA
	.byte	1
	.byte	2
	.half	1007
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_EORB_DATA
	.byte	1
	.byte	2
	.half	846
	.word	m6800op_ADCB_DATA
	.byte	1
	.byte	2
	.half	176
	.word	m6800op_ORAB_DATA
	.byte	1
	.byte	2
	.half	1115
	.word	m6800op_ADDB_DATA
	.byte	1
	.byte	2
	.half	55
	.word	m6800op_LDD_DATA
	.byte	5
	.byte	3
	.half	2603
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_LDX_DATA
	.byte	5
	.byte	3
	.half	1978
	.word	m6800op_ERR_INHERENT
	.byte	0
	.byte	0
	.half	0
	.word	m6800op_SUBB_ADDRESS
	.byte	2
	.byte	3
	.half	1637
	.word	m6800op_CMPB_ADDRESS
	.byte	2
	.byte	3
	.half	568
	.word	m6800op_SBCB_ADDRESS
	.byte	2
	.byte	3
	.half	1758
	.word	m6800op_ADDD_ADDRESS
	.byte	2
	.byte	5
	.half	2704
	.word	m6800op_ANDB_ADDRESS
	.byte	2
	.byte	3
	.half	299
	.word	m6800op_BITB_ADDRESS
	.byte	2
	.byte	3
	.half	407
	.word	m6800op_LDAB_ADDRESS
	.byte	2
	.byte	3
	.half	1022
	.word	m6800op_STAB_ADDRESS
	.byte	2
	.byte	4
	.half	1529
	.word	m6800op_EORB_ADDRESS
	.byte	2
	.byte	3
	.half	861
	.word	m6800op_ADCB_ADDRESS
	.byte	2
	.byte	3
	.half	191
	.word	m6800op_ORAB_ADDRESS
	.byte	2
	.byte	3
	.half	1130
	.word	m6800op_ADDB_ADDRESS
	.byte	2
	.byte	3
	.half	70
	.word	m6800op_LDD_ADDRESS
	.byte	2
	.byte	4
	.half	2617
	.word	m6800op_STD_ADDRESS
	.byte	2
	.byte	4
	.half	2653
	.word	m6800op_LDX_ADDRESS
	.byte	2
	.byte	4
	.half	1992
	.word	m6800op_STX_ADDRESS
	.byte	2
	.byte	4
	.half	2078
	.word	m6800op_SUBB_ADDRESS
	.byte	3
	.byte	4
	.half	1649
	.word	m6800op_CMPB_ADDRESS
	.byte	3
	.byte	4
	.half	580
	.word	m6800op_SBCB_ADDRESS
	.byte	3
	.byte	4
	.half	1770
	.word	m6800op_ADDD_ADDRESS
	.byte	3
	.byte	6
	.half	2716
	.word	m6800op_ANDB_ADDRESS
	.byte	3
	.byte	4
	.half	311
	.word	m6800op_BITB_ADDRESS
	.byte	3
	.byte	4
	.half	419
	.word	m6800op_LDAB_ADDRESS
	.byte	3
	.byte	4
	.half	1034
	.word	m6800op_STAB_ADDRESS
	.byte	3
	.byte	4
	.half	1541
	.word	m6800op_EORB_ADDRESS
	.byte	3
	.byte	4
	.half	873
	.word	m6800op_ADCB_ADDRESS
	.byte	3
	.byte	4
	.half	203
	.word	m6800op_ORAB_ADDRESS
	.byte	3
	.byte	4
	.half	1142
	.word	m6800op_ADDB_ADDRESS
	.byte	3
	.byte	4
	.half	82
	.word	m6800op_LDD_ADDRESS
	.byte	3
	.byte	5
	.half	2628
	.word	m6800op_STD_ADDRESS
	.byte	3
	.byte	5
	.half	2664
	.word	m6800op_LDX_ADDRESS
	.byte	3
	.byte	5
	.half	2003
	.word	m6800op_STX_ADDRESS
	.byte	3
	.byte	5
	.half	2089
	.word	m6800op_SUBB_ADDRESS
	.byte	6
	.byte	4
	.half	1662
	.word	m6800op_CMPB_ADDRESS
	.byte	6
	.byte	4
	.half	593
	.word	m6800op_SBCB_ADDRESS
	.byte	6
	.byte	4
	.half	1783
	.word	m6800op_ADDD_ADDRESS
	.byte	6
	.byte	6
	.half	2729
	.word	m6800op_ANDB_ADDRESS
	.byte	6
	.byte	4
	.half	324
	.word	m6800op_BITB_ADDRESS
	.byte	6
	.byte	4
	.half	432
	.word	m6800op_LDAB_ADDRESS
	.byte	6
	.byte	4
	.half	1047
	.word	m6800op_STAB_ADDRESS
	.byte	6
	.byte	4
	.half	1554
	.word	m6800op_EORB_ADDRESS
	.byte	6
	.byte	4
	.half	886
	.word	m6800op_ADCB_ADDRESS
	.byte	6
	.byte	4
	.half	216
	.word	m6800op_ORAB_ADDRESS
	.byte	6
	.byte	4
	.half	1155
	.word	m6800op_ADDB_ADDRESS
	.byte	6
	.byte	4
	.half	95
	.word	m6800op_LDD_ADDRESS
	.byte	6
	.byte	5
	.half	2640
	.word	m6800op_STD_ADDRESS
	.byte	6
	.byte	5
	.half	2676
	.word	m6800op_LDX_ADDRESS
	.byte	6
	.byte	5
	.half	2015
	.word	m6800op_STX_ADDRESS
	.byte	6
	.byte	5
	.half	2101
	.global	m6800_op_name_table
	.align	2
m6800_op_name_table:
	.ascii	"\000ADDA immediate\000ADDA direct\000ADDA indexed\000ADD"
	.ascii	"A extended\000ADDB immediate\000ADDB direct\000ADDB inde"
	.ascii	"xed\000ADDB extended\000ABA inherent\000ADCA immediate\000"
	.ascii	"ADCA direct\000ADCA indexed\000ADCA extended\000ADCB imm"
	.ascii	"ediate\000ADCB direct\000ADCB indexed\000ADCB extended\000"
	.ascii	"ANDA immediate\000ANDA direct\000ANDA indexed\000ANDA ex"
	.ascii	"tended\000ANDB immediate\000ANDB direct\000ANDB indexed\000"
	.ascii	"ANDB extended\000BITA immediate\000BITA direct\000BITA i"
	.ascii	"ndexed\000BITA extended\000BITB immediate\000BITB direct"
	.ascii	"\000BITB indexed\000BITB extended\000CLR indexed\000CLR "
	.ascii	"extended\000CLRA inherent\000CLRB inherent\000CMPA immed"
	.ascii	"iate\000CMPA direct\000CMPA indexed\000CMPA extended\000"
	.ascii	"CMPB immediate\000CMPB direct\000CMPB indexed\000CMPB ex"
	.ascii	"tended\000CBA inherent\000COM indexed\000COM extended\000"
	.ascii	"COMA inherent\000COMB inherent\000NEG indexed\000NEG ext"
	.ascii	"ended\000NEGA inherent\000NEGB inherent\000DAA inherent\000"
	.ascii	"DEC indexed\000DEC extended\000DECA inherent\000DECB inh"
	.ascii	"erent\000EORA immediate\000EORA direct\000EORA indexed\000"
	.ascii	"EORA extended\000EORB immediate\000EORB direct\000EORB i"
	.ascii	"ndexed\000EORB extended\000INC indexed\000INC extended\000"
	.ascii	"INCA inherent\000INCB inherent\000LDAA immediate\000LDAA"
	.ascii	" direct\000LDAA indexed\000LDAA extended\000LDAB immedia"
	.ascii	"te\000LDAB direct\000LDAB indexed\000LDAB extended\000OR"
	.ascii	"AA immediate\000ORAA direct\000ORAA indexed\000ORAA exte"
	.ascii	"nded\000ORAB immediate\000ORAB direct\000ORAB indexed\000"
	.ascii	"ORAB extended\000PSHA inherent\000PSHB inherent\000PULA "
	.ascii	"inherent\000PULB inherent\000ROL indexed\000ROL extended"
	.ascii	"\000ROLA inherent\000ROLB inherent\000ROR indexed\000ROR"
	.ascii	" extended\000RORA inherent\000RORB inherent\000ASL index"
	.ascii	"ed\000ASL extended\000ASLA inherent\000ASLB inherent\000"
	.ascii	"ASR indexed\000ASR extended\000ASRA inherent\000ASRB inh"
	.ascii	"erent\000LSR indexed\000LSR extended\000LSRA inherent\000"
	.ascii	"LSRB inherent\000STAA direct\000STAA indexed\000STAA ext"
	.ascii	"ended\000STAB direct\000STAB indexed\000STAB extended\000"
	.ascii	"SUBA immediate\000SUBA direct\000SUBA indexed\000SUBA ex"
	.ascii	"tended\000SUBB immediate\000SUBB direct\000SUBB indexed\000"
	.ascii	"SUBB extended\000SBA inherent\000SBCA immediate\000SBCA "
	.ascii	"direct\000SBCA indexed\000SBCA extended\000SBCB immediat"
	.ascii	"e\000SBCB direct\000SBCB indexed\000SBCB extended\000TAB"
	.ascii	" inherent\000TBA inherent\000TST indexed\000TST extended"
	.ascii	"\000TSTA inherent\000TSTB inherent\000CPX immediate\000C"
	.ascii	"PX direct\000CPX indexed\000CPX extended\000DEX inherent"
	.ascii	"\000DES inherent\000INX inherent\000INS inherent\000LDX "
	.ascii	"immediate\000LDX dire"
	.ascii	"ct\000LDX indexed\000LDX extended\000LDS immediate\000LD"
	.ascii	"S direct\000LDS indexed\000LDS extended\000STX direct\000"
	.ascii	"STX indexed\000STX extended\000STS direct\000STS indexed"
	.ascii	"\000STS extended\000TXS inherent\000TSX inherent\000BRA "
	.ascii	"relative\000BCC relative\000BCS relative\000BEQ relative"
	.ascii	"\000BGE relative\000BGT relative\000BHI relative\000BLE "
	.ascii	"relative\000BLS relative\000BLT relative\000BMI relative"
	.ascii	"\000BNE relative\000BVC relative\000BVS relative\000BPL "
	.ascii	"relative\000BSR relative\000JMP indexed\000JMP extended\000"
	.ascii	"JSR indexed\000JSR extended\000NOP inherent\000RTI inher"
	.ascii	"ent\000RTS inherent\000SWI inherent\000WAI inherent\000C"
	.ascii	"LC inherent\000CLI inherent\000CLV inherent\000SEC inher"
	.ascii	"ent\000SEI inherent\000SEV inherent\000TAP inherent\000T"
	.ascii	"PA inherent\000LDD immediate\000LDD direct\000LDD indexe"
	.ascii	"d\000LDD extended\000STD direct\000STD indexed\000STD ex"
	.ascii	"tended\000ADDD immediate\000ADDD direct\000ADDD indexed\000"
	.ascii	"ADDD extended\000SUBD immediate\000SUBD direct\000SUBD i"
	.ascii	"ndexed\000SUBD extended\000ASLD inherent\000LSRD inheren"
	.ascii	"t\000MUL inherent\000BRN relative\000ABX inherent\000PSH"
	.ascii	"X inherent\000PULX inherent\000JSR direct\000AIM direct\000"
	.ascii	"AIM indexed\000OIM direct\000OIM indexed\000EIM direct\000"
	.ascii	"EIM indexed\000TIM direct\000TIM indexed\000XGDX inheren"
	.ascii	"t\000SLP inherent\000\000"
	.code
	.align	1
	.global	m6800_check_pending
m6800_check_pending:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xld.ub	%r11,[%r12+10]
	ld.ub	%r11,[%r12]
	ld.ub	%r10,%r11
	cmp	%r10,0x0
	jreq	__LX70		; 	xjreq	__L70
	ld.ub	%r10,[%r12]	; 	xld.ub	%r10,[%r12]
	and	%r10,0x10	; 	xand	%r10,%r10,0x00000010
	jrne	__LX70		; 	xjrne	__L70
	ld.w	%r10,%r11
	and	%r10,0x1	; 	xand	%r10,%r10,0x00000001
	jreq	__LX73		; 	xjreq	__L73
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000fe
	and	%r10,0x3e
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000fff8		; 65528
	ld.w	%r13,0x38
	jp	__LX80		; 	xjp	__L80
__LX73:				; __L73:
	ld.w	%r10,%r11
	and	%r10,0x2	; 	xand	%r10,%r10,0x00000002
	jreq	__LX74		; 	xjreq	__L74
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000fd
	and	%r10,0x3d
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000fff6		; 65526
	ld.w	%r13,0x36
	jp	__LX80		; 	xjp	__L80
__LX74:				; __L74:
	ld.w	%r10,%r11
	and	%r10,0x4	; 	xand	%r10,%r10,0x00000004
	jreq	__LX75		; 	xjreq	__L75
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000fb
	and	%r10,0x3b
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000fff4		; 65524
	ld.w	%r13,0x34
	jp	__LX80		; 	xjp	__L80
__LX75:				; __L75:
	ld.w	%r10,%r11
	and	%r10,0x8	; 	xand	%r10,%r10,0x00000008
	jreq	__LX76		; 	xjreq	__L76
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000f7
	and	%r10,0x37
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000fff2		; 65522
	ld.w	%r13,0x32
	jp	__LX80		; 	xjp	__L80
__LX76:				; __L76:
	ld.w	%r10,%r11
	and	%r10,0x10	; 	xand	%r10,%r10,0x00000010
	jreq	__LX77		; 	xjreq	__L77
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000ef
	and	%r10,0x2f
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000ffec		; 65516
	ld.w	%r13,0x2c
	jp	__LX80		; 	xjp	__L80
__LX77:				; __L77:
	ld.w	%r10,%r11
	ext	0x0		; 	xand	%r10,%r10,0x00000020
	and	%r10,0x20
	jreq	__LX78		; 	xjreq	__L78
	ld.w	%r10,%r11
	ext	0x3		; 	xand	%r10,%r10,0x000000df
	and	%r10,0x1f
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000ffea		; 65514
	ld.w	%r13,0x2a
	jp	__LX80		; 	xjp	__L80
__LX78:				; __L78:
	ld.w	%r10,%r11
	ext	0x1		; 	xand	%r10,%r10,0x00000040
	and	%r10,0x0
	jreq	__LX70		; 	xjreq	__L70
	ld.w	%r10,%r11
	ext	0x2		; 	xand	%r10,%r10,0x000000bf
	and	%r10,0x3f
	ext	0xa		; 	xld.b	[%r12+10],%r10
	ld.b	[%r12],%r10
	ext	0x3ff		; 	xld.w	%r13,0x0000fff0		; 65520
	ld.w	%r13,0x30
__LX80:				; __L80:
	call	m6800_int	; 	xcall	m6800_int
__LX70:				; __L70:
	ret
	.align	1
	.global	m6800_int
m6800_int:
;	.frame	%sp,16,$31		# vars= 0, regs= 4/0, args= 0, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	ld.w	%r0,%r12
	ld.w	%r2,%r13
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	ext	0x8		; 	xld.ub	%r14,[%r0+8]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x9		; 	xld.ub	%r14,[%r0+9]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x4		; 	xld.ub	%r14,[%r0+4]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x5		; 	xld.ub	%r14,[%r0+5]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x3		; 	xld.ub	%r14,[%r0+3]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x2		; 	xld.ub	%r14,[%r0+2]
	ld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	sub	%r13,0x1	; 	xsub	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ld.ub	%r14,[%r0]	; 	xld.ub	%r14,[%r0]
	ext	0x14		; 	xld.w	%r10,[%r0+20]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x6		; 	xld.uh	%r10,[%r0+6]
	ld.uh	%r10,[%r0]
	sub	%r10,0x1	; 	xsub	%r10,%r10,1
	ext	0x6		; 	xld.h	[%r0+6],%r10
	ld.h	[%r0],%r10
	bset	[%r0],0x4	; 	xbset	[%r0],0x4
	ld.uh	%r13,%r2
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ld.w	%r1,%r10
	add	%r2,0x1		; 	xadd	%r2,%r2,1
	ld.uh	%r2,%r2
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	ld.w	%r13,%r2
	call	%r10
	ld.ub	%r1,%r1
	sll	%r1,0x8		; 	xsll	%r1,8
	ld.ub	%r10,%r10
	or	%r10,%r1
	ext	0x8		; 	xld.h	[%r0+8],%r10
	ld.h	[%r0],%r10
	ld.w	%r11,0x0
	ext	0xb		; 	xld.b	[%r0+11],%r11
	ld.b	[%r0],%r11
	popn	%r2
	ret
	.align	1
	.global	m6800_rti
m6800_rti:
;	.frame	%sp,8,$31		# vars= 0, regs= 2/0, args= 0, extra= 0
;	.mask	0x80010000,-4
;	.fmask	0x00000000,0
	pushn	%r0
	ld.w	%r0,%r12
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	call	%r10
	ld.b	[%r0],%r10	; 	xld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x2		; 	xld.b	[%r0+2],%r10
	ld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x3		; 	xld.b	[%r0+3],%r10
	ld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x5		; 	xld.b	[%r0+5],%r10
	ld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x4		; 	xld.b	[%r0+4],%r10
	ld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x9		; 	xld.b	[%r0+9],%r10
	ld.b	[%r0],%r10
	ext	0x6		; 	xld.uh	%r13,[%r0+6]
	ld.uh	%r13,[%r0]
	add	%r13,0x1	; 	xadd	%r13,%r13,1
	ext	0x6		; 	xld.h	[%r0+6],%r13
	ld.h	[%r0],%r13
	ld.uh	%r13,%r13
	ext	0x10		; 	xld.w	%r10,[%r0+16]
	ld.w	%r10,[%r0]
	ld.w	%r12,%r0
	call	%r10
	ext	0x8		; 	xld.b	[%r0+8],%r10
	ld.b	[%r0],%r10
	ld.ub	%r10,[%r0]	; 	xld.ub	%r10,[%r0]
	ext	0x3		; 	xoor	%r10,%r10,0x000000c0
	or	%r10,0x0
	ld.b	[%r0],%r10	; 	xld.b	[%r0],%r10
	ld.w	%r12,%r0
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	popn	%r0
	ret
	.align	1
	.global	m6800_reset
m6800_reset:
;	.frame	%sp,16,$31		# vars= 0, regs= 4/0, args= 0, extra= 0
;	.mask	0x80070000,-4
;	.fmask	0x00000000,0
	pushn	%r2
	ld.w	%r1,%r12
	ld.w	%r0,%r13
	ld.w	%r2,%r14
	ld.w	%r13,0x0
	ld.w	%r14,0x18	; 	xld.w	%r14,0x00000018		; 24
	ext	memset@rm	; 	xcall	memset
	call	memset@rl
	cmp	%r0,0x0
	jrne	__LX184		; 	xjrne	__L184
	ext	m6800_internal_read+0x0@h	; 	xld.w	%r0,m6800_internal_read
	ext	m6800_internal_read+0x0@m
	ld.w	%r0,m6800_internal_read+0x0@l
__LX184:				; __L184:
	ext	0x10		; 	xld.w	[%r1+16],%r0
	ld.w	[%r1],%r0
	ld.w	%r14,%r2
	cmp	%r14,0x0
	jrne	__LX185		; 	xjrne	__L185
	ext	m6800_internal_write+0x0@h	; 	xld.w	%r14,m6800_internal_write
	ext	m6800_internal_write+0x0@m
	ld.w	%r14,m6800_internal_write+0x0@l
__LX185:				; __L185:
	ext	0x14		; 	xld.w	[%r1+20],%r14
	ld.w	[%r1],%r14
	ext	0x3		; 	xld.w	%r10,0x000000d0		; 208
	ld.w	%r10,0x10
	ld.b	[%r1],%r10	; 	xld.b	[%r1],%r10
	ext	0x10		; 	xld.w	%r10,[%r1+16]
	ld.w	%r10,[%r1]
	ld.w	%r12,%r1
	ext	0x3ff		; 	xld.w	%r13,0x0000fffe		; 65534
	ld.w	%r13,0x3e
	call	%r10
	ld.w	%r0,%r10
	ext	0x10		; 	xld.w	%r10,[%r1+16]
	ld.w	%r10,[%r1]
	ld.w	%r12,%r1
	ext	0x3ff		; 	xld.w	%r13,0x0000ffff		; 65535
	ld.w	%r13,0x3f
	call	%r10
	ld.ub	%r0,%r0
	sll	%r0,0x8		; 	xsll	%r0,8
	ld.ub	%r10,%r10
	or	%r10,%r0
	ext	0x8		; 	xld.h	[%r1+8],%r10
	ld.h	[%r1],%r10
	popn	%r2
	ret
	.align	1
	.global	m6800_nmi
m6800_nmi:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0x3ff		; 	xld.w	%r13,0x0000fffc		; 65532
	ld.w	%r13,0x3c
	ext	m6800_int@rm	; 	xcall	m6800_int
	call	m6800_int@rl
	ret
	.align	1
	.global	m6800_irq1
m6800_irq1:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x0
	bset	[%r12],0x0
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_ici
m6800_ici:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x1
	bset	[%r12],0x1
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_oci
m6800_oci:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x2
	bset	[%r12],0x2
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_toi
m6800_toi:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x3
	bset	[%r12],0x3
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_sio
m6800_sio:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x6
	bset	[%r12],0x6
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_cmi
m6800_cmi:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x4
	bset	[%r12],0x4
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_irq2
m6800_irq2:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ext	0xa		; 	xbset	[%r12+10],0x5
	bset	[%r12],0x5
	ext	m6800_check_pending@rm	; 	xcall	m6800_check_pending
	call	m6800_check_pending@rl
	ret
	.align	1
	.global	m6800_dump
m6800_dump:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	ret
; APP
	
	.code
	.global m6800_run2
m6800_run2:
	pushn %r0
	ld.w %r0, %sp		; スタック退避
	ext	0x40		; 	xld.w %r10, 0x1000	; 0x0e00〜0x1000にスタック切替
	ld.w	%r10,0x0
	ld.w %sp, %r10
	ext	m6800_run@rm	; 	xcall m6800_run
	call	m6800_run@rl
	ld.w %sp, %r0		; スタック復元
	popn %r0
	ret

