The Western Design Center, Inc.Table 6-7 (continued)Address Mode Note Cycle VPB MLB VDA16a. Direct, X d,xADC, AND, BIT, CMP, EOR, LDALDY, ORA, SBC, STA, STY, STZ,12 OpCodes,2 bytes, 4,5,and 6 cycles(2)(1)16b. Direct, X (R-M-W) d,xASL, DEC, INC, LSR, ROL, ROR,6 OpCodes, 2 bytes, 6,7,8 and 9 cycles (2)17. Direct, Y d,yLDX, STX2 OpCodes, 2 bytes, 4,5 and 6 cycles (2)18.Immediate #ADC, AND, BIT, CMP, CPX, CPY,EOR, LDA, LDX, LDY, ORA, REP,SEC, SEP14 OpCodes, 2 and 3 bytes, 2 and 3cycles19a. Implied iCLC, CLD, CLI, CLV, DEX, DEY,INX, INY, NOP, SEC, SED, SEI,TAX, TAY, TCD, TCS, TDC, TSC,TSX, TXA, TXS, TXY, TYA, TYX,XCE25 OpCodes, 1 byte, 2 cycles19b. Implied iXBA1 OpCode, 1 byte, 3 cycles19c. Stop the ClockSTP1 OpCode1 byte RESB=13 cycles RESB=0RESB=0RESB=1(See 22a. Stack Hardware Interrupt)19d. Wait for InterruptWAI1 OpCode,1 byte3 cycles IRQB, NMIB(1)(3),(17)(1)(1)(1)(6)RDY=1(9)RDY=1RDY=0RDY=1122a344a122a344a56a6122a344a122a121231231c1b1a11231111111111111111111111111111111111111111111111111110000011111111111111111111111111000111000110111000111001010010000011001(14)VPA(14)1100001100000001100001111010010000011001Address Bus(15)PBR,PCPBR,PC+1PBR,PC+1PBR,PC+10,D+DO+X0,D+DO+X+1PBR,PCPBR,PC+1PBR,PC+1PBR,PC+10,D+DO+X0,D+DO+X+10,D+DO+X+10,D+DO+X+10,D+DO+XPBR,PCPBR,PC+1PBR,PC+1PBR,PC+10,D+DO+Y0,D+DO+Y+1PBR,PCPBR,PC+1PBR,PC+2PBR,PCPBR,PC+1PBR,PCPBR,PC+1PBR,PC+1PBR,PCPBR,PC+1PBR,PC+1PBR,PC+1PBR,PC+1PBR,PC+1PBR,PC+1PBR,PCPBR,PC+1PBR,PC+1PBR,PC+1W65C816S <strong>Data</strong> <strong>Sheet</strong><strong>Data</strong> BusOpCodeDOIOIO<strong>Data</strong> Low<strong>Data</strong> HighOpCodeDOIOIO<strong>Data</strong> Low<strong>Data</strong> HighIO<strong>Data</strong> High<strong>Data</strong> LowOpCodeDOIOIO<strong>Data</strong> Low<strong>Data</strong> HighOpCodeIDLIDHOpCodeIOOpCodeIOIOOpCodeIOIORES (BRK)RES (BRK)RES (BRK)BEGINOpCodeIOIOIRQ(BRK)RWB11111/01/011111110011111/01/01111111111111111111(see Table 6-8 for abbreviationsThe Western Design Center W65C816S 46
The Western Design Center, Inc.20. Relative rBCC, BCS, BEQ, BMI, BNE, BPL, BRA,BVC,BVS9 OpCodes, 2 bytes, 2,3 and 4 cycles21. Relative Long rlBRL1 OpCode, 3 bytes, 4 cycles22a. Stack sABORT, IRQ, NMI, RES4 hardware interrupts0 bytes, 7 and 8 cyclesTable 6-7 (continued)Address Mode Note Cycle VPB MLB VDA(14)1 1 1 12 1 1 0(5) 2a 1 1 0(6) 2b 1 1 01 1 1 122b. Stack sPLA, PLB, PLD, PLP, PLX, PLYDifferent than N65026 Op Codes,1 byte, 4 and 5 cycles22c. Stack sPHA, PHB PHP, PHD, PHK, PHX, PHY7 Op Codes, 1 byte, 3 and 4 cycles22d. Stack sPEA1 Op Code, 3 bytes, 5 cycles(3)(7)(10)(10)(10)(11)(1)(1)(12)22e. Stack sPEI1 Op Code, 2 bytes, 6 and 7 cycles (2)22f. Stack sPER1 Op Code, 3 bytes, 6 cycles(see Table 6-8 for abbreviations)1234112345678112344a123a312345122a3456123456111111111110011111111111111111111111111111111111111111111111111111111111111111111110001101111111100111011100111001111100011VPA(14)1100111101100000001100001000111001100000111000W65C816S <strong>Data</strong> <strong>Sheet</strong>Address Bus (15) <strong>Data</strong> Bus RWBPBR,PCPBR,PC+1PBR,PC+1PBR,PC+1PBR,PC+OffsetPBR,PCPBR,PC+1PBR,PC+2PBR,PC+2PBR,PC+OffsetPBR,PCPBR,PC0,S0,S-10,S-20.S-30,VA0,VA+10,AAVPBR,PCPBR,PC+1PBR,PC+10,S+10,S+2PBR,PCPBR,PC+10,S0,S-1PBR,PCPBR,PC+1PBR,PC+20,S0,S-1PBR,PCPBR,PC+1PBR,PC+10,D+DO0,D+DO+10,S0,S-1PBR,PCPBR,PC+1PBR,PC+2PBR,PC+20,S0,S-1OpCodeOffsetIOIOOpCodeOpCodeOffset LowOffset HighIOOpCodeIOIOPBRPCHPCLPAAVLAAVHNext OpCodeOpCodeIOIOREG LowREG HighOpCodeIOREG HighREG LowOpCodeAALAAHAAHAALOpCodeDOIOAALAAHAAHAALOpCodeOffset LowOffset HighIOPCH+Offset+CarryPCL+Offset1111111111110000111111111111111001111100111100The Western Design Center W65C816S 47
- Page 1 and 2: The Western Design Center, Inc.Upda
- Page 3 and 4: The Western Design Center, Inc.W65C
- Page 5 and 6: The Western Design Center, Inc.W65C
- Page 7 and 8: The Western Design Center, Inc.1 IN
- Page 9 and 10: The Western Design Center, Inc.W65C
- Page 11 and 12: The Western Design Center, Inc.W65C
- Page 13 and 14: The Western Design Center, Inc.3 PI
- Page 15 and 16: The Western Design Center, Inc.W65C
- Page 17 and 18: The Western Design Center, Inc.W65C
- Page 19 and 20: The Western Design Center, Inc.3.13
- Page 21 and 22: The Western Design Center, Inc.W65C
- Page 23 and 24: The Western Design Center, Inc.W65C
- Page 25 and 26: The Western Design Center, Inc.W65C
- Page 27 and 28: The Western Design Center, Inc.W65C
- Page 29 and 30: The Western Design Center, Inc.5.2
- Page 31 and 32: The Western Design Center, Inc.W65C
- Page 33 and 34: The Western Design Center, Inc.W65C
- Page 35 and 36: The Western Design Center, Inc.Tabl
- Page 37 and 38: iThe Western Design Center, Inc.W65
- Page 39 and 40: iThe Western Design Center, Inc.W65
- Page 41 and 42: The Western Design Center, Inc.W65C
- Page 43 and 44: The Western Design Center, Inc.Tabl
- Page 45: The Western Design Center, Inc.Tabl
- Page 49 and 50: The Western Design Center, Inc.W65C
- Page 51 and 52: The Western Design Center, Inc.W65C
- Page 53 and 54: The Western Design Center, Inc.W65C
- Page 55 and 56: The Western Design Center, Inc.W65C
- Page 57 and 58: The Western Design Center, Inc.W65C
- Page 59 and 60: The Western Design Center, Inc.W65C
- Page 61 and 62: The Western Design Center, Inc.W65C