English
Language : 

S912XEG128J2MAA Datasheet, PDF (431/1324 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 10 XGATE (S12XGATEV3)
LDB
Load Byte from Memory
(Low Byte)
LDB
Operation
M[RB, #OFFS5]
M[RB, RI]
M[RB, RI]
RI-1
⇒ RD.L;
⇒ RD.L;
⇒ RD.L;
⇒ RI;
$00
⇒ RD.H
$00
⇒ RD.H
$00
⇒ RD.H;
M[RS, RI] ⇒ RD.L;
RI+1 ⇒ RI;1
$00 ⇒ RD.H
Loads a byte from memory into the low byte of register RD. The high byte is cleared.
CCR Effects
NZVC
————
N: Not affected.
Z: Not affected.
V: Not affected.
C: Not affected.
Code and CPU Cycles
Source Form
LDB RD, (RB, #OFFS5)
LDB RD, (RS, RI)
LDB RD, (RS, RI+)
LDB RD, (RS, -RI)
Address
Mode
IDO5
IDR
IDR+
-IDR
01000
01100
01100
01100
Machine Code
RD
RB
RD
RB
RD
RB
RD
RB
Cycles
OFFS5
Pr
RI
00
Pr
RI
01
Pr
RI
10
Pr
1. If the same general purpose register is used as index (RI) and destination register (RD), the content of the register will not
be incremented after the data move: M[RB, RI] ⇒ RD.L; $00 ⇒ RD.H
MC9S12XE-Family Reference Manual Rev. 1.25
Freescale Semiconductor
431