MOS 6509 DATASHEET REVISION 10/86 WARNING

Similar documents
COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

The 6502 Instruction Set

Regarding the change of names mentioned in the document, such as Mitsubishi Electric and Mitsubishi XX, to Renesas Technology Corp.

NMOS 6500 MICROPROCESSORS

A. CPU INSTRUCTION SET SUMMARY

; Once Initialized, monitor character in calls to CN05 ; set carry for input, to be tested CN35 C SEC

68HC11 PROGRAMMER'S MODEL

Example Programs for 6502 Microprocessor Kit

commodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA Tel.: 215/ TWX: 510/ (MEMORY, I/O, TIMER ARRAY)

Table 1: Mnemonics Operations Dictionary. Add Accumulators Add B to Y. Add with carry to B. Add Memory to B. Add 16-bit to D And B with Memory

instruction 1 Fri Oct 13 13:05:

Content. 1. General informations 2. direct addressing 3. indirect addressing 4. Examples including informations

CMOS G65SC02-A 8-BIT MICROPROCESSOR

DAN64: an AVR based 8-bit Microcomputer

The Motorola 68HC11 Instruc5on Set

INI M O S 6500/1 ONE-CHIP MICROCOMPUTER

G65SC802 G65SC816. Microcircuits. CMOS 8-Bit/16-Bit Microprocessor Family ADVANCE INFORMATION. Features. General Description. Features (G65SC802 Only)

CPU08RM/AD REV 3 8M68HC08M. CPU08 Central Processor Unit. Reference Manual

Programming the Motorola MC68HC11 Microcontroller

CAT25C02/04/08/16/32 2K/4K/8K/16K/32K SPI Serial CMOS E 2 PROM FEATURES

SECTION 5 RESETS AND INTERRUPTS

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

THE MICROPROCESSOR Von Neumann s Architecture Model

CMOS SyncFIFO 64 X 9, 256 x 9, 512 x 9, 1,024 X 9, 2,048 X 9, 4,096 x 9 and 8,192 x 9

Chapter. Computer Architecture

0b) [2] Can you name 2 people form technical support services (stockroom)?

OSIAC Read OSIAC 5362 posted on the course website

3. The MC6802 MICROPROCESSOR

MOS 6502 Architecture

Peripheral Interface Adapter (PIA) W65C21S

DS1302. Trickle Charge Timekeeping Chip FEATURES PIN ASSIGNMENT PIN DESCRIPTION

ISSI IS25C02 IS25C04 2K-BIT/4K-BIT SPI SERIAL ELECTRICALLY ERASABLE PROM FEATURES DESCRIPTION. Advanced Information January 2005

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1

August 30, W65C21 (W65C21N and W65C21S) Peripheral Interface Adapter (PIA)

CMOS SuperSync FIFO 65,536 x 9 131,072 x 9

INSTRUCTION SET AND EXECUTION

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

538 Lecture Notes Week 5

COSC 243. Assembly Language Techniques. Lecture 9. COSC 243 (Computer Architecture)

CMOS SuperSync FIFO 8,192 x 18. IDT72265LA LEAD FINISH (SnPb) ARE IN EOL PROCESS - LAST TIME BUY EXPIRES JUNE 15, 2018

A24C08. AiT Semiconductor Inc. ORDERING INFORMATION

CAT28C K-Bit Parallel EEPROM

ECE331 Handout 3- ASM Instructions, Address Modes and Directives

A Technical Overview of Commodore Copy Protection. Glenn Holmer ( ShadowM ) World of Commodore Expo, 12/01/2007

Code Secrets of Wolfenstein 3D IIGS. Eric Shepherd

538 Lecture Notes Week 5

PROGRAM CONTROL UNIT (PCU)

These three counters can be programmed for either binary or BCD count.

3.3 VOLT CMOS SuperSync FIFO 65,536 x 9. IDT72V291 LEAD FINISH (SnPb) ARE IN EOL PROCESS - LAST TIME BUY EXPIRES JUNE 15, 2018

AT49BV004(T) TSOP Top View Type 1 1. AT49BV4096A(T) TSOP Top View Type 1 A16 BYTE GND I/O7 I/O14 I/O6 I/O13 I/O5 I/O12 I/O4 VCC I/O11 I/O3 I/O10 I/O2

Mark II Aiken Relay Calculator

24C08/24C16. Two-Wire Serial EEPROM. Preliminary datasheet 8K (1024 X 8)/16K (2048 X 8) General Description. Pin Configuration

3.3 VOLT HIGH DENSITY CMOS SUPERSYNC FIFO 262,144 x 9 524,288 x 9

CAT28C17A 16K-Bit CMOS PARALLEL EEPROM

CMOS SyncFIFO 64 x 8, 256 x 8, 512 x 8, 1,024 x 8, 2,048 x 8 and 4,096 x 8 LEAD FINISH (SnPb) ARE IN EOL PROCESS - LAST TIME BUY EXPIRES JUNE 15, 2018

HCTL-2017 Quadrature Decoder/Counter Interface ICs

SECTION 5 PROGRAM CONTROL UNIT

AT28C16. 16K (2K x 8) CMOS E 2 PROM. Features. Description. Pin Configurations

DS1676 Total Elapsed Time Recorder, Erasable

1. Internal Architecture of 8085 Microprocessor

ISSI Preliminary Information January 2006

EPCQA Serial Configuration Device Datasheet

D0 - D8 INPUT REGISTER. RAM ARRAY 64 x 9, 256 x 9, 512 x 9, 1,024 x 9, 2,048 x 9, 4,096 x 9, 8,192 x 9 OUTPUT REGISTER RESET LOGIC RCLK REN1

Digital IP Cell 8-bit Microcontroller PE80

IS62/65WVS5128GALL IS62/65WVS5128GBLL. 512Kx8 LOW VOLTAGE, FAST SERIAL SRAM with SPI, SDI and SQI INTERFACE KEY FEATURES DESCRIPTION

Preliminary TK23H256 High Temperature ROM

AT24C01A/02/04/08/16. 2-Wire Serial CMOS E 2 PROM. Features. Description. Pin Configurations. 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8)

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

LSI Computer Systems, Inc Walt Whitman Road, Melville, NY (631) FAX (631) BIT QUADRATURE COUNTER

ME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6

IRQA. INTERRUPT STATUS CONTROLA CONTROL REGISTER A (CRA) OUTPUT BUS PERIPHERAL OUTPUT REGISTER A (ORA) PERIPHERAL OUTPUT REGISTER B (ORB) INPUT BUS

CMOS SyncFIFO 64 X 9, 256 x 9, 512 x 9, 1024 X 9, 2048 X 9 and 4096 x 9

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:


Quad-Serial Configuration (EPCQ) Devices Datasheet

CAT22C Bit Nonvolatile CMOS Static RAM

W65C816S 8/16 bit Microprocessor

Keyboard and PS/2 Mouse Controller

DS1821 Programmable Digital Thermostat and Thermometer

FM24C02B/04B/08B/16B 2-Wire Serial EEPROM

Rev. No. History Issue Date Remark

ST78C34 GENERAL PURPOSE PARALLEL PRINTER PORT WITH 83 BYTE FIFO DESCRIPTION. PLCC Package FEATURES ORDERING INFORMATION

Question Bank Microprocessor and Microcontroller

A24C02. AiT Semiconductor Inc. ORDERING INFORMATION

Chapter 7 Central Processor Unit (S08CPUV2)

D0-D17 INPUT REGISTER WRITE CONTROL LOGIC. RAM ARRAY 256 x 18, 512 x 18 1,024 x 18, 2,048 x 18 4,096 x 18 Q0-Q17

VCC NC PROTECT DI DO. Table 1

Blog -

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Chapter 1: Basics of Microprocessor [08 M]

TOSHIBA MOS DIGITAL INTEGRATED CIRCUIT SILICON GATE CMOS

GT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)

Aug.3, W65C816S 8/16 bit Microprocessor

III. Flags of the Processor Staus Register

3.3 VOLT CMOS SuperSync FIFO 32,768 x 18 65,536 x 18

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

User s Guide. pico Viewer v.1.01

Transcription:

MOS 6509 DATASHEET REVISION 10/86 WARNING This datasheet contains an error in the pinout: pins 38 and 40 are swapped. Pin 38 should be ^2 and Pin 40 should be ^1. For verification, see the CBM-II computer schematics. The error was discovered by Jim Brain on Feb 27, 2018.

C om m odore Sem ico nducto r G roup o division of Commodore Business Machines, Inc. 950 Rirrenhouse Rood. Norristown PA 19400 215/666-7950 TWX 510-660-4168 IMMOS 6509 MICROPROCESSOR WITH MEMORY MANAGEMENT DESCRIPTION The 6509 is a low-cost m icroprocessor capable of solving a broad range of sm all-system s and memory management problems at minimum cost to the user. A memory management system allows for up to One Mega-Byte of memory for ease in down loading languages, operating systems or other data. The Three-State sixteen-bit Address Bus allows Direct Memory Accessing (DMA) and m ultiprocessor systems sharing a common memory while the Four-bit Extended Address Register allows for up to one Mega-byte of data storage. The internal processor architecture is identical to the Commodore Sem iconductor Group 6502 to provide software compatibility. 6509 MICROPROCESSOR WITH MEMORY MANAGEMENT FEATURES OF THE 6509 Memory management On board clock logic Addressable memory range of up to 1 M bytes Single +5 volt supply N channel, silicon gate, depletion load technology Eight bit parallel processing 56 Instructions Decimal and binary arithmetic Thirteen addressing modes True indexing capability Programmable stack pointer Variable length stack Interrupt capability 8 Bit Bi-Directional Data Bus Program Addressable memory range of up to 65K bytes Direct memory access capability Bus compatible with M6800 Pipeline architecture 1 MHz, 2 MHz, and 3 MHz operation Use with any type or speed memory PIN CONFIGURATION READY C= 1 40 Z> 02 IN IRQ cz 2 39 ZD RESET SYNC cz 3 38 3 0, IN nmt cz 4 37 ZJ R /W AEC cz 5 36 =3 DO VDD cz 6 35 Z J D1 A0 cz 7 34 3 D2 A1 cz 8 33 3 D3 A2 cz 9 32 3 D4 A3 cz 10 6509 31 D5 A4 cz 11 30 D6 A5 cz 12 29 D7 A6 cz 13 28 SO A7 cz 14 27 PO A8 cz 15 26 P1 A9 cz 16 25 P2 A10 cz 17 24 P3 A 11 cz 18 23 A15 A12 cz 19 22 A14 A13 cz 20 21 VSS 10/86

6509 BLOCK DIAGRAM 2

6509 CHARACTERISTICS MAXIMUM RATINGS RATING SYMBOL VALUE UNIT < OoSUPPLY VOLTAGE 0.3 to + 7.0 Vdc INPUT VOLTAGE Vin -0.3 to + 7.0 Vdc OPERATING TEMPERATURE ta 0 to + 70 C This device contains input protection against damage due to high static voltages or electric fields; however, precautions should be taken to avoid application of voltages higher than the maximum rating. STORAGE TEMPERATURE t stg - 5 5 to + 150 C ELECTRICAL CHARACTERISTICS (Vcc = 5.0V ± 5%, Vss = 0, Ta - 0 to + 70 C) CHARACTERISTIC SYMBOL MIN. TYP. MAX. UNIT Input High Voltage 0.. 0 2(in) VIH V cc-0.2 Vcc + 1,0 V Vdc Input High Voltage RES, P0-PriRQ. Data Input Low Voltage 2.0 - Vdc. 02(in) VIL 0.2 Vdc RES. P0-P? IRQ. Data 0.8 Vdc Input Leakage Current (Vjn = 0 to 5.25V, Vcc = 5.25V) Logic I in 2.5 /UA 0>02tin) 100 Three State (Off State) Input Current (V,n = 0.4 to 2.4V. Vcc = 5.25V) Data Lines ITSI 10 a*a Output High Voltage (loh = -1 OO/uAdc, Vcc = 4.75V) Data. A0-A1 5, R/W, P0-Pr VOH 2.4 Vdc Out Low Voltage (lol = 1 SmAdc. Vcc = 4.75V) Data. A0-A15. R/W. P0-P; VOL +0.60 Vdc Power Supply Current ICC 125 ma Capacitance Vjn = 0, Ta = 25 C. 1= 1MHz) Logic, P0-P7 Data A0-A1 5, R/W Cout C Cm 10-15 12 pf 0. C0! 30 50 0, C 02 50 80 3

4

CLOCK TIM ING TIMING FOR WRITING DATA TO MEMORY OR PERIPHERALS 5

<C CHARACTEF ISTICS 1 MHz TIM ING 2 MHz TIM ING 3 MHz TIM ING ELECTRICAL CHARACTERISTICS (VCC = 5V + 5%, VSS = OV, Clock Timing T4 = 0-70 C) CH AR ACTERISTIC S Y M B O L MIN. MAX MIN MAX MIN. MAX U N ITS C ycle Tim e T CYC tooo _ 500 333 ns C lock Pulse W idth 181 (Measured at VCC - 0 2V) 02 PW H 0, PW H02 430 470 _ 215 235 145 165 ns ns Fall Time, Rise Time (M easured from 0 2V to VC C - 0.2V) T F. T r _ 25 15 _ 15 ns Delay Tim e betw een C locks (Measured at 0.2V) T d 0 0 _ ns Read/Write Timing (Load = 1 TTL) CHARACTERISTIC S Y M 80L MIN MAX MIN MAX MIN. MAX. UNITS Read- Write Setup Time from 6509 T RWS - 300-150 - 125 ns Address Setup Time from 6509 t ADS - 300-150 125 ns M em ory Read A cce ss Tim e t a c c - 575-300 - 250 ns Data Stability Tim e Period t DSU 100-50 - 50 - ns Data Hold Tim e-r ead t HR 10-10 - 10 - ns Data Hold Time-W rne T h w 10-10 - 10 - ns Data Setup Time from 6509 t MDS - 200-100 - 100 ns A ddress Hold Tim e < I h- 10-10 - 10 - ns R /W Hold Time t h r w 10-10 - 10 - ns Port O utput Data Valid (M em ory Managements t p d w _ 300 _ 150 _ 125 /JS RDY Setup Time t r d y 100-50 - 15 - ns S.O Setup Time r s.o. too - 50 _ 50 - ns SYNC Setup Time from 6509 t s y n c - 350-175 - 120 ns Address Enable Setup Time t a e s - 75-75 - 75 ns Data Enable Setup Tim e t d e s - 120 _ 120-120 ns Address Disable See Note 1 t a e d - 120-120 - 120 ns Data Disable See Note 1 t d e d - 130-130 - 130 ns Note 1 1TTL Load C L = 30pf. SIGNAL DESCRIPTION Clocks (^,0 2 ) The 6509 requires a two phase non-overlapping clock that runs at the Vcc voltage level. Address Bus (Ag-A-ig) The tri-state outputs are TTL compatible, capable of driving one standard TTL load and 130 pf. Data Bus (DQ-D7) Eight pins are used for the data bus. This is a Bi Directional bus. transferring data to and from the device and peripherals. The outputs are tri-state buffers capable of driving one standard TTL load and 130 pf. Reset This input is used to reset or start the m icroprocessor from a power down condition. During the time that this line is held low, writing to or from the m icroprocessor is inhibited. When a positive edge is detected on the input, the m icroprocessor will immediately begin the reset sequence. After a system initialization time of six clock cycles, the mask interrupt flag will be set and the m icroprocessor will load the program counter from the memory vector locations FFFC and FFFD. This is the start location for program contro' After Vcc reaches 4.75 volts in a power up routine, reset must be held low for at least two clock cycles. At this time the R /W signal will become valid. When the reset signal goes high following these two clock cycles, the m icroprocessor will proceed with the normal reset procedure detailed above. 6

In te rru p t R eq u est (IR Q ) NMI also requires an external 3K resistor to Vc c for proper w ire -O R operations. Inputs IRQ and NMI are hardware interrupt lines that are sampled during 0 2 (phase 2) and will begin the appropriate interrupt routine on the 01 (phase 1) following the com pletion of the current instruction. This TTL level input requests that an interrupt sequence begin within the m icroprocessor. The m icroprocessor will com plete the current instruction being executed before recognizing the request. At that time, the interrupt mask bit in the Status Code Register will be examined. If the interrupt mask flag is not set, the m icroprocessor will begin an interrupt sequence. The Program Counter and Processor Status Register are stored in the stack. The m icroprocessor will then set the interrupt mask flag high so that no further interrupts may occur. At the end of this cycle, the program counter low will be loaded from address FFFE. and program counter high from location FFFF, therefore tran sfe rring program co n tro l to the m emory vector located at these addresses. Set O v e rflo w Flag (.S.O.) A NEGATIVE going edge on this input sets the overflow bit in the Status Code Register. This signal is sampled on the trailing edge of 0 1. SYNC This output line is provided to identify those cycles in which the m icroprocessor is doing an OP CODE fetch. The SYNC line goes high during 0i of an OP CODE fetch and stays high for the rem ainder of that cycle. If the RDY line is pulled low during the 01 clock pulse in which SYNC went high, the processor will stop in its current state and will remain in the state until the RDY line goes high. In this manner, the SYNC signal can be used to control RDY to cause single instruction execution. A ddress E n ab le C o n tro l (A E C ) The Address Bus, Data Bus, and R /W signal are valid only when the Address Enable Control line is high. When low, the Address Bus is in a high-im pedance state. This feature allows easy DMA and m ultiprocessor systems. R e a d /W rite (R /W ) This signal is generated by the m icroprocessor to control the direction of data transfers on the Data Bus. This line is high except when the m icroprocessor is writing to memory or a peripheral device. M e m o ry M a n a g e m e n t C o n tro l (P 0 -P 3 ) The four extended address pins, P0 -P3, enable the p ro cesso rto align to one of sixteen banks of 64K memory space. The use of the instructions: Load A indirect Y (B 116) and Store A indirect Y (9116), transfers the processor from the normal execute mode to the indirect mode. In the execute mode, the processor is aligned to a particular mem ory bank. The indirect mode aligns the p ro c e s s o r to a p re de te rm ine d m em ory b lock. The contents of the extended address registers is controlled by software with the execute register at location 0000 and indirect register at 0001. During fetch and execution of the indirect mode instructions, the processor remains in execute mode until data transfer is to occur. At this tim e the processor sw itches to the indirect mode aligning itself to the new mem ory block. After one cycle the processor returns to the execute mode. The upper four bits of the data bus are logic 0"s during a re a d /w rite to the extended address registers. Also, these registers are set to logic 1 "s during reset. The extended address pins are not under control of AEC and are not tri-statable. R ead y (R D Y ) This input signal allows the user to single cycle the m icroprocessor on all cycles except write cycles. A negative transition to the low state during or coincident with phase one ( 0 - ) and up to 100ns after phase two (0 2 ) will halt the m icroprocessor with the output address lines re fle c tin g the cu rre n t address being fe tch e d. This condition will remain through a subsequent phase two (0 2 ) in which the Ready signal is low. This feature allows m icroprocessor interfacing with low speed PROMS as well as fast (max. 2 cycle) D irect M em ory A ccess (DMA). If Ready is low during a write cycle, it is ignored until the following read operation. N o n -M a s k a b fe In te rru p t (N M I) A negative going edge on this input requests that a non-m askable interrupt sequence be generated within the m icroprocessor. NMI isan unconditional interrupt. Following com pletion of the cu rre nt instruction, the sequence of operations defined for IRQ will be performed, regardless of the interrupt mask flag status. The vector address loaded into the program counter, low and high, are locations FFFA and FFFB respectively, thereby transferring program control to the mem ory vector located at these addresses. The instructions loaded at these locations cause the m icroprocessor to branch to a non-m askable interrupt routine in memory. 7

ADDRESSING MODES Accumulator Addressing This form of addressing is represented with a one byte instruction, implying an operation on the accumulator. Immediate Addressing In immediate addressing, the operand is contained in the second byte of the instruction, with no further memory addressing required. Absolute Addressing In absolute addressing, the second byte of the instruction specified the eight low order bits of the effective address while the third byte specifies the eight high order bits Thus, the absolute addressing mode allows access to the entire 65K bytes of addressable memory. Zero Page Addressing The zero page instructions allow for shorter code and execution times by only fetching the second byte of the instruction and assuming a zero high address byte. Careful use of the zero page can result in significant increase in code efficiency. Indexed Zero Page Addressing (X, Y indexing). T hisform of addressing is used in conjunction with the index register and is referred to as Zero Page, X" or "Zero Page, Y. The effective address is calculated by adding the second byte to the contents of the index register Since this is a form of "Zero Page" addressing, the content of the second byte references a location in page zero. Additionally, due to the "Zero Page" addressing nature of this mode, no carry is added to the high order 8 bits of memory and crossing of page boundaries does not occur. Indexed Absolute Addressing (X, Y indexing). T hisform of addressing is used in conjunction with X and Y index register and is referred to as "Absolute, X." and "Absolute, Y." The effective address is formed by adding the contents of X and Y to the address contained in the second and third bytes of the instruction. This mode allows the index register to contain the index or count value and the instruction to contain the base address. This type of indexing allows any location referencing and the index to modify multiple fields resulting in reduced coding and execution time Implied Addressing In the implied addressing mode, the address containing the operand is im plicitly stated in the operation code of the instruction. Relative Addressing Relative addressing is used only with branch instructions and establishes a destination for the conditional branch. The second byte of the instruction becom es the operand which is an "O ffset" added to the contents of the lower eight bits of the program counter when the counter is set at the next instruction. The range of the offset is -128 to +127 bytes from the next instruction. Indexed Indirect Addressing In indexed indirect addressing (referred to as [Indirect, X]), the second byte of the instruction is added to the contents of the X index register, discarding the carry The result of this addition points to a memory location on page zero whose contents is the low order eight bits of the effective address. The next memory location in page zero contains the high order eight bits of the effective address. Both memory locations specifying the high and low order bytes of the effective address must be in page zero. Indirect Indexed Addressing In indirect indexed addressing (referred to as [Indirect. Y]), the second byte of the instruction points to a m em ory location in page zero. The contents of this memory location is added to the contents of the Y index register, the result being the low order eight bits of the effective address. The carry from this addition is added to the contents of the next page zero m em ory location, the result being the high order eight bits of the effective address. Absolute Indirect The second byte of the instruction contains the low order eight bits of a memory location The high order eight bits of that memory location is contained in the third byte of the instruction. The contents of the fully specified memory location is the low order byte of the effective address. The next memory location contains the high order byte of the effective address which is loaded into the sixteen bits of the program counter. INSTRUCTION SET ALPHABETIC SEQUENCE AD C AND ASL Add M em ory to A c c u m u la to r with Carry "A N D " M em ory with A c c u m u la to r Shift Left O ne Bit (M em ory or A c c u m u la to r) BCC 8C S 8EQ BIT BMI BNE BPL BRK BVC BVS Branch on C arry C lear B ranch on C arry Set B ranch on Result Z ero Test Bits in M em ory w ith A cc u m u la to r B ranch on Result M inus Branch on Result not Zero Branch on Result Plus Force Break B ranch on O verflo w Clear B rancn on O verflow Set CLC CLD CLI CLV CMP CPX CPY Clear Carry Flag Clear D e cim al M ode C lear interrupt D isable C lear O verflo w Flag Com oare M em ory ana Com pare M em ory ana C o m pare M em ory and DEC DEX DEY D e crem ent M em ory Oy O ne D e crem ent Index X Oy O ne D e crem ent Index Y by O ne EOR 'E x c!u s iv e -o r' M em o ry w ith A c c u m u la to r INC INX INY in crem ent M em ory by One Incre m en i Inoex X by O ne in crem ent tnaex Y by O ne JMP JSR Jum p to New Location Jum p to N ew Loca tio n Saving Return A ddress Bit A cc u m u la to r Index X in dex Y LD A LDX LDY LSR Loa d A cc u m u la to r w ith M em ory Load Index X w ith M em ory Load Index Y with M em ory Shift O ne Bit Right fm e m o ry or A cc u m u la to r) NOP No O peration ORA "O R " M em o ry w ith A cc u m u la to r PHA P HP PLA PL P Push A c c u m u la to r on S tack Push P rocesso r Status on S tack Pull A c c u m u la to r from S tack Pull P rocesso r Status from S tack ROL ROR RTI RTS Rotate Rotate R eturn Return SBC SEC SED SEI STA STX STY S u btract M em ory from A c c u m u la to r with Borrow Set C arry Flag Set D e cim al M ode Set Interrupt D isable Status Store A cc u m u la to r m M em ory Store Index X in M em ory Store Index Y m M em ory TAX TA Y TSX TXA TXS TY A T ransfer T ransfer T ransfer T ransfer T ransfer Transfer O ne O ne from from Bit Left (M e m o ry or A c c u m u la to r) Bit Right (M e m o ry or A c c u m u la to r) Interrupt Subroutine A c c u m u la to r to Index X A c c u m u la to r to Index Y S tack Pointer to Index X Index X to A c c u m u la to r Index X to S tack R egister Index Y to A cc u m u la to r

7 0 LZ 7 A ( Y 0! 15 7 X u 1 PCH I... 87 PCL 0 LI. S PROGRAMMING MODEL ACCUMULATOR IND xregis'er INOFaRf Gi^'f U PROGRAM CuU'. STAi...* POiP.it R - EEH P R O C E S S O R S T A T U S R E G "P" C A R R Y 1 = T R U E Z E R O 1 = R E S U L T Z E R O IR Q D IS A B L E : = D IS A B L E D E C IM A L M O D E 1 = T R U E B R K C O M M A N D O V E R F L O W 1 = T R U E N E G A T IV E 1 = N E G INSTRUCTION SET OP CODES, Execution Time, Memory Requirements A ND Dc A-V-C-»A A*. M->-,4; S,! C \ 7 E C c BRANCHONC=0 flh-0 B c s BRANCHONC= -2-2 3 RA?CH ON Z = ' A M BRANCH ON N - ' 5RAN'CH ON Z t * BRANCH ON U - d SRAf.CH CN V - BPAf ;r> ONv - JUMP T0 NEW LOG JUMP SUE.1-* A 9

6509 MEMORY MAP FFFF A D D R E S S A B L E EX TER N A L M E M O R Y 0200 01 FF 01 FF STACK POINTER INITIALIZED s t a c k P a ge 1 0100 OOFF. P a ge 0 0000 INDIRECT REGISTER EXECUTE REGISTER 0001 0000 ON CHIP REGISTERS COMMODORE SEMICONDUCTOR GROUP reserves the right to make changes to any products herein to improve reliability, function or design. COMMODORE SEMICONDUCTOR GROUP does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. 10