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 1 Z_60 ds 1 Z_61 ds 1 Z_62 ds 1 Z_63 ds 1 Org $0100 ;*** Stack Page S_100 ds 5 S_105 ds 251 Org $0200 ;*** I/O Page ClkFrq ds 2 WtcDog ds 14 Org $0300 ;*** RAM R_300 ds 1 R_301 ds 1 R_302 ds 1 R_303 ds 1 R_304 ds 1 R_305 ds 1 R_306 ds 1 R_307 ds 1 R_308 ds 1 R_309 ds 1 R_30A ds 1 R_30B ds 1 R_30C ds 1 R_30D ds 1 R_30E ds 1 Org $0400 ;*** RAM R_400 ds 1 R_401 ds 1 R_402 ds 1 R_403 ds 1 R_404 ds 1 R_405 ds 1 R_406 ds 1 R_407 ds 1 R_408 ds 1 R_409 ds 1 R_40A ds 1 R_40B ds 1 R_40C ds 1 R_40D ds 1 R_40E ds 1 R_40F ds 1 R_410 ds 1 R_411 ds 1 R_412 ds 1 R_413 ds 1 R_414 ds 1 R_415 ds 1 R_416 ds 1 R_417 ds 1 R_418 ds 1 R_419 ds 1 R_41A ds 1 R_41B ds 1 R_41C ds 1 R_41D ds 1 R_41E ds 1 R_41F ds 1 R_420 ds 1 Org $0500 ;*** RAM D_500 ds 1 D_501 ds 1 Org $800 ;*** EPROM Start ;_______________________________OpC, Bytes,Mode____________ Start: Brk ;00 1, Inh OrA (Z_00,X) ;01 2, InX MUL Z_02 ;02 1, Inh db $03 ;03 1, ILL TSB Z_01 ;04 2, PgZ OrA Z_02 ;05 2, PgZ ASL Z_03 ;06 2, PgZ RMB 0,Z_04 ;07 2, PgZ PHP ;08 1, Inh OrA #$00 ;09 2, IMM ASL A ;0A 1, Inh db $0B ;0B 1, ILL TSB R_300 ;0C 2, Rel OrA R_301 ;0D 3, Abs ASL R_302 ;0E 3, Abs RL_C0F: BBR 0,Z_05,RL_C0F ;0F 3, BZR RL_C10: BPL RL_C10 ;10 2, Rel OrA (Z_06),Y ;11 2, InY OrA (Z_07) ;12 2, InZ db $13 ;13 1, ILL TRB Z_08 ;14 2, PgZ OrA Z_09,X ;15 2, PzX ASL Z_0A,X ;16 2, PzX RMB 1,Z_0B ;17 2, PgZ CLC ;18 1, Inh OrA R_400,Y ;19 3, AbY INC A ;1A 1, Inh db $1B ;1B 1, ILL TRB R_401 ;1C 3, Abs OrA R_402,X ;1D 3, AbX ASL R_403,X ;1E 3, AbX RL_C1F: BBR 1,Z_0C,RL_C1F ;1F 3, BZR JSR P_8001 ;20 3, Abs And (Z_0D,X) ;21 2, InX db $22 ;22 1, ILL db $23 ;23 1, ILL Bit Z_0E ;24 2, PgZ And Z_0F ;25 2, PgZ ROL Z_10 ;26 2, PgZ RMB 2,Z_11 ;27 2, PgZ PLP ;28 1, Inh And #$01 ;29 2, Imm ROL A ;2A 1, Inh db $2B ;2B 1, ILL Bit R_404 ;2C 3, Abs And R_303 ;2D 3, Abs ROL R_304 ;2E 3, Abs RL_C2F: BBR 2,Z_12,RL_C2F ;2F 3, BZR RL_C30: BMI RL_C30 ;30 2, Rel And (Z_13),Y ;31 2, InY And (Z_14) ;32 2, InZ db $33 ;33 1, ILL Bit Z_15,X ;34 2, PzX And Z_16,X ;35 2, PzX ROL Z_17,X ;36 2, PzX RMB 3,Z_18 ;37 2, PgZ SEC ;38 1, Inh And R_405,Y ;39 3, AbY DEC A ;3A 1, Inh db $3B ;3B 1, ILL Bit R_406,X ;3C 3, AbX And R_407,X ;3D 3, AbX ROL R_408,X ;3E 3, AbX RL_C3F: BBR 3,Z_19,RL_C3F ;3F 3, BZR RTI ;40 1, Inh EOR (Z_1A,X) ;41 2, InX db $42 ;42 1, ILL db $43 ;43 1, ILL db $44 ;44 1, ILL EOR Z_1B ;45 2, PgZ LSR Z_1C ;46 2, PgZ RMB 4,Z_1D ;47 2, PgZ PHA ;48 1, Inh EOR #$89 ;49 2, Imm LSR A ;4A 1, Inh db $4B ;4B 1, ILL Jmp L_8000 ;4C 3, Abs EOR R_41F ;4D 3, Abs LSR R_409 ;4E 3, Abs RL_C4F: BBR 4,Z_1E,RL_C4F ;4F 3, BZR RL_C50: BVC RL_C50 ;50 2, Rel EOR (Z_1F),Y ;51 2, InY EOR (Z_20) ;52 2, InZ db $53 ;53 1, ILL db $54 ;54 1, ILL EOR Z_21,X ;55 2, PzX LSR Z_22,X ;56 2, PzX RMB 5,Z_23 ;57 2, PgZ CLI ;58 1, Inh EOR R_420,Y ;59 3, AbY PHY ;5A 1, Inh db $5B ;5B 1, ILL db $5C ;5C 1, ILL EOR R_40A,X ;5D 3, AbX LSR R_40B,X ;5E 3, AbX RL_C5F: BBR 5,Z_24,RL_C5F ;5F 3, BZR RTS ;60 1, Inh ADC (Z_25,X) ;61 2, InX db $62 ;62 1, ILL db $63 ;63 1, ILL STZ Z_26 ;64 2, PgZ ADC Z_27 ;65 2, PgZ ROR Z_28 ;66 2, PgZ RMB 6,Z_29 ;67 2, PgZ PLA ;68 1, Inh ADC #$A9 ;69 2, IMM ROR A ;6A 1, Inh db $6B ;6B 1, ILL Jmp (D_500) ;6C 3, Ind ADC R_305 ;6D 3, Abs ROR R_306 ;6E 3, Abs RL_C6F: BBR 6,Z_2A,RL_C6F ;6F 3, BZR RL_C70: BVS RL_C70 ;70 2, Rel ADC (Z_2B),Y ;71 2, InY ADC (Z_2C) ;72 2, InZ db $73 ;73 1, ILL STZ Z_2D,X ;74 2, PzX ADC Z_2E,X ;75 2, PZX ROR Z_2F,X ;76 2, PzX RMB 7,Z_30 ;77 2, PgZ SEI ;78 1, Inh ADC R_40C,Y ;79 3, AbY PLY ;7A 1, Inh db $7B ;7B 1, ILL db $7C ;7C 1, ILL ADC R_40D,X ;7D 3, AbX ROR R_40E,X ;7E 3, AbX RL_C7F: BBR 7,Z_31,RL_C7F ;7F 3, BZR RL_C80: BRA RL_C80 ;80 2, Rel STA (Z_32,X) ;81 2, InX db $82 ;82 1, ILL db $83 ;83 1, ILL STY Z_33 ;84 2, PgZ STA Z_34 ;85 2, PgZ STX Z_35 ;86 2, PgZ SMB 0,Z_36 ;87 2, PgZ DEY ;88 1, Inh Bit #$04 ;89 2, Imm TXA ;8A 1, Inh db $8B ;8B 1, ILL STY R_307 ;8C 3, Abs STA WtcDog ;8D 3, Abs STX R_308 ;8E 3, Abs RL_C8F: BBS 0,Z_37,RL_C8F ;8F 3, BZR RL_C90: BCC RL_C90 ;90 2, Rel STA (Z_38),Y ;91 2, InY STA (Z_39) ;92 2, InZ db $93 ;93 1, ILL STY Z_3A,X ;94 2, PzX STA Z_3B,X ;95 2, PzX STX Z_3C,Y ;96 2, PzY SMB 1,Z_3D ;97 2, PgZ TYA ;98 1, Inh STA R_40F,Y ;99 3, AbY TXS ;9A 1, Inh db $9B ;9B 1, ILL STZ R_410 ;9C 3, Abs STA R_411,X ;9D 3, AbX STZ R_309,X ;9E 3, AbX RL_C9F: BBS 1,Z_3E,RL_C9F ;9F 3, BZR LDY #$10 ;A0 2, Imm LDA (Z_3F,X) ;A1 2, InX LDX #$14 ;A2 2, Imm db $A3 ;A3 1, ILL LDY Z_40 ;A4 2, PgZ LDA Z_41 ;A5 2, PgZ LDX Z_42 ;A6 2, PgZ SMB 2,Z_43 ;A7 2, PgZ TAY ;A8 1, Inh LDA #$01 ;A9 2, Imm TAX ;AA 1, Inh db $AB ;AB 1, ILL LDY D_501 ;AC 3, Abs LDA R_30A ;AD 3, Abs LDX R_412 ;AE 3, Abs RL_CAF: BBS 2,Z_44,RL_CAF ;AF 3, BZR RL_CB0: BCS RL_CB0 ;B0 2, Rel LDA (Z_45),Y ;B1 2, InY LDA (Z_46) ;B2 2, InZ db $B3 ;B3 1, ILL LDY Z_47,X ;B4 2, PzX LDA Z_48,X ;B5 2, PzX LDX Z_49,Y ;B6 2, PzY SMB 3,Z_4A ;B7 2, PgZ CLV ;B8 1, Inh LDA R_30B,Y ;B9 3, AbY TSX ;BA 1, Inh db $BB ;BB 1, ILL LDY R_413,X ;BC 3, AbX LDA R_414,X ;BD 3, AbX LDX R_415,Y ;BE 3, AbY RL_CBF: BBS 3,Z_4B,RL_CBF ;BF 3, BZR CPY #$33 ;C0 2, Imm CMP (Z_4C,X) ;C1 2, InX db $C2 ;C2 1, ILL db $C3 ;C3 1, ILL CPY Z_4D ;C4 2, PgZ CMP Z_4E ;C5 2, PgZ DEC Z_4F ;C6 2, PgZ SMB 4,Z_50 ;C7 2, PgZ INY ;C8 1, Inh CMP #$00 ;C9 2, Imm DEX ;CA 1, Inh db $CB ;CB 1, ILL CPY R_416 ;CC 3, Abs CMP R_417 ;CD 3, Abs DEC R_418 ;CE 3, Abs RL_CCF: BBS 4,Z_51,RL_CCF ;CF 3, BZR RL_CD0: BNE RL_CD0 ;D0 2, Rel CMP (Z_52),Y ;D1 2, InY CMP (Z_53) ;D2 2, InZ db $D3 ;D3 1, ILL db $D4 ;D4 1, ILL CMP Z_54,X ;D5 2, PzX DEC Z_55,X ;D6 2, PzX SMB 5,Z_56 ;D7 2, PgZ CLD ;D8 1, Inh CMP R_419,Y ;D9 3, AbY PHX ;DA 1, Inh db $DB ;DB 1, ILL db $DC ;DC 1, ILL CMP R_30C,X ;DD 3, AbX DEC R_41A,X ;DE 3, AbX RL_CDF: BBS 5,Z_63,RL_CDF ;DF 3, BZR CPX #$60 ;E0 2, Imm SBC (Z_57,X) ;E1 2, InX db $E2 ;E2 1, ILL db $E3 ;E3 1, ILL CPX Z_58 ;E4 2, PgZ SBC Z_59 ;E5 2, PgZ INC Z_5A ;E6 2, PgZ SMB 6,Z_5B ;E7 2, PgZ INX ;E8 1, Inh SBC #$00 ;E9 2, Imm Nop ;EA 1, Inh db $EB ;EB 1, ILL CPX R_41B ;EC 3, Abs SBC R_30D ;ED 3, Abs INC R_30E ;EE 3, Abs RL_CEF: BBS 6,Z_5C,RL_CEF ;EF 3, BZR RL_CF0: BEQ RL_CF0 ;F0 2, Rel SBC (Z_5D),Y ;F1 2, InY SBC (Z_5E) ;F2 2, InZ db $F3 ;F3 1, ILL db $F4 ;F4 1, ILL SBC Z_5F,X ;F5 2, PzX INC Z_60,X ;F6 2, PzX SMB 7,Z_61 ;F7 2, PgZ SED ;F8 1, Inh SBC R_41C,Y ;F9 3, AbY PLX ;FA 1, Inh db $FB ;FB 1, ILL db $FC ;FC 1, ILL SBC R_41D,X ;FD 3, AbX INC R_41E,X ;FE 3, AbX RL_CFF BBS 7,Z_62,RL_CFF ;FF 3, BZR Org $8000 L_8000: Brk P_8001: Brk P_8002: Brk P_8003: Brk P_8004: Brk P_8005: Brk P_8006: Brk P_8007: Brk P_8008: Brk P_8009: Brk P_800A: Brk P_800B: Brk P_800C: Brk Org $FFE8 ;*** Entry Point Table EP_P87: dw P_8002 EP_I2S: dw P_8003 EP_I2M: dw P_8004 EP_I1S: dw P_8005 EP_I3M: dw P_8006 EP_TM3: dw P_8007 EP_TM2: dw P_8008 EP_TM1: dw P_8009 EP_Unk: dw P_800A EP_NMI: dw P_800B EP_RES: dw Start EP_IRQ: dw P_800C END