
MAXQ612/MAXQ622 User’s Guide
Maxim Integrated 3-1
3.1 Addressing Modes.........................................................................3-3
3.2 Prefix Operations ..........................................................................3-3
3.3 Reading and Writing Registers ...............................................................3-4
3.3.1 Loading an 8-Bit Register with an Immediate Value ..........................................3-4
3.3.2 Loading a 16-Bit Register with a 16-Bit Immediate Value ......................................3-4
3.3.3 Moving Values Between Registers of the Same Size .........................................3-4
3.3.4 Moving Values Between Registers of Different Sizes .........................................3-5
3.3.5 8-Bit Destination ← Low Byte (16-Bit Source) ...............................................3-5
3.3.6 8-Bit Destination ← High Byte (16-Bit Source) ..............................................3-5
3.3.7 16-Bit Destination ← Concatenation (8-Bit Source, 8-Bit Source)................................3-5
3.3.8 Low (16-Bit Destination) ← 8-Bit Source ...................................................3-6
3.3.9 High (16-Bit Destination) ← 8-Bit Source ..................................................3-6
3.4 Reading and Writing Register Bits.............................................................3-6
3.5 Using the Arithmetic and Logic Unit ...........................................................3-7
3.5.1 Selecting the Active Accumulator ........................................................3-7
3.5.2 Enabling Autoincrement and Autodecrement ...............................................3-7
3.5.3 ALU Operations Using the Active Accumulator and a Source ..................................3-9
3.5.4 ALU Operations Using Only the Active Accumulator .........................................3-9
3.5.5 ALU Bit Operations Using Only the Active Accumulator.......................................3-10
3.5.6 Example: Adding Two 4-Byte Numbers Using Autoincrement ..................................3-10
3.6 Processor Status Flag Operations .............................................................3-10
3.6.1 Sign Flag ...........................................................................3-10
3.6.2 Zero Flag ...........................................................................3-11
3.6.3 Equals Flag..........................................................................3-11
3.6.4 Carry Flag...........................................................................3-11
3.6.5 Overflow Flag ........................................................................3-12
3.7 Controlling Program Flow....................................................................3-12
3.7.1 Obtaining the Next Execution Address ....................................................3-12
3.7.2 Unconditional jumps...................................................................3-12
3.7.3 Conditional Jumps ....................................................................3-13
3.7.4 Calling Subroutines ...................................................................3-13
3.7.5 Loop Operations......................................................................3-13
3.7.6 Conditional Returns ...................................................................3-14
3.7.7 Conditional Return from Interrupt.........................................................3-15
3.8 Accessing the Stack .......................................................................3-15
3.9 Accessing Data Memory ....................................................................3-16
3.9.1 Word/Byte Access Mode ...............................................................3-16
SECTION 3: PROGRAMMING
This section contains the following information:
Comentários a estes Manuais