05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Instruction Details<br />

A8.6.226 TBB, TBH<br />

Table Branch Byte causes a PC-relative forward branch using a table of single byte offsets. A base register<br />

provides a pointer to the table, <strong>and</strong> a second register supplies an index into the table. The branch length is<br />

twice the value of the byte returned from the table.<br />

Table Branch Halfword causes a PC-relative forward branch using a table of single halfword offsets. A base<br />

register provides a pointer to the table, <strong>and</strong> a second register supplies an index into the table. The branch<br />

length is twice the value of the halfword returned from the table.<br />

Encoding T1 <strong>ARM</strong>v6T2, <strong>ARM</strong>v7<br />

TBB [,] Outside or last in IT block<br />

TBH [,,LSL #1] Outside or last in IT block<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 1 0 1 0 0 0 1 1 0 1 Rn (1) (1)(1)(1)(0)(0)(0)(0) 0 0 0 H Rm<br />

n = UInt(Rn); m = UInt(Rm); is_tbh = (H == ‘1’);<br />

if n == 13 || BadReg(m) then UNPREDICTABLE;<br />

if InITBlock() && !LastInITBlock() then UNPREDICTABLE;<br />

A8-446 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!