Toshiba TX39 user manual LH rt, offsetbase

Models: TX39

1 246
Download 246 pages 24.89 Kb
Page 158
Image 158

Architecture

LH

Load Halfword

LH

 

31

26 25

21 20

16 15

0

 

 

LH

 

 

base

 

rt

 

offset

 

 

 

 

 

 

 

 

 

100001

 

 

 

 

 

 

 

 

 

6

 

 

5

 

5

 

16

 

Format :

LH rt, offset(base)

Description :

Generates a 32-bit effective address by sign-extending the 16-bit offset and adding it to the contents of general-purpose register base. It then sign-extends the halfword at the memory location pointed to by the effective address and loads the result into general-purpose register rt.

If the effective address is not aligned on a halfword boundary, i.e., if the least significant bit of the effective address is not 0, an Address Error exception is raised.

Operation :

T:vAddr ((offset15)16 offset15..0) + GPR[base]

(pAddr, uncached) AddressTranslation (vAddr, DATA) pAddr pAddr31..2 (pAddr1..0 xor (ReverseEndian 0))

mem LoadMemory (uncached, HALFWORD, pAddr, vAddr, DATA) byte vAddr1..0 xor (BigEndianCPU 0)

GPR[rt] (mem15+8*byte)16 mem15+8*byte..8*byte

Exceptions :

UTLB Refill exception (reserved)

TLB Refill exception (reserved)

Address Error exception

147

Page 158
Image 158
Toshiba TX39 user manual LH rt, offsetbase