{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Handout 4-AddrModes_Examples

Handout 4-AddrModes_Examples - Handout 4 68HC12/S12 Address...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Handout 4 - 68HC12/S12 Address Mode Info & Program Examples 68HC12 Addressing Mode Summary Indexed Addressing Mode Operations
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Indexed Addressing Mode Offset Reference Source Code Example Machine Code Cycles 5-bit signed constant offset -16. ..+15 X, Y, SP, PC LDAA 15,X A6 0F 3 9-bit signed constant offset -256. ..+255 X, Y, SP, PC LDAA 255,Y A6 E8 FF 3 16-bit signed constant offset -32768. ..+65535 X, Y, SP, PC LDAA 4096,PC A6 FA 10 00 4 8-bit accumulator (A or B) offset accA, accB X, Y, SP, PC LDAA B,SP A6 F5 3 16-bit accumulator offset accD X, Y, SP, PC LDAA D,X A6 E6 3 Auto Pre-Increment by +1. ..+8 1…8 X, Y, SP LDAA 8,+SP A6 A7 3 Auto Pre-Decrement by - 1…-8 -1…-8 X, Y, SP LDAA 8,-Y A6 68 3 Auto Post-Increment by +1. ..+8 1…8 X, Y, SP LDAA 1,X+ A6 30 3 Auto Post-Decrement by -1…-8 -1…-8 X, Y, SP LDAA 4,X- A6 3C 3 16-bit offset indexed- indirect -32768. ..+65535 X, Y, SP, PC LDAA [4096,X] A6 E3 10 00 6 D accumulator indexed- indirect
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

Handout 4-AddrModes_Examples - Handout 4 68HC12/S12 Address...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online