mftb
Move From Timebase
mftb RT,268
Moves the contents of the Time Base Register (TBR) into a general-purpose register.
Encoding
Binary Layout
31
0:5
RT
6:10
268
11:20
371
21:30
/
31
Operands
-
RT
Target
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
This instruction behaves as if it were an mfspr instruction. The TBR operand is omitted and assumed to be 268 (the value that corresponds to TB).
Operation
if 'mftb' then
RT <- TBR[268]
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
Programming Note
This instruction behaves as if it were an mfspr instruction; see the mfspr instruction description in Section 3.3.19 of Book I.
New programs should use mfspr instead of mftb to access the Time Base.