Skip to content

Instantly share code, notes, and snippets.

@zhangbo
zhangbo / gist:3e0b82015c1eb50da5013585703aea03
Created March 6, 2020 08:20
tbz for AArch64 constructure
/*
* cbz Rn, location
*
* 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 <-- bit
* 0 0 1 1 0 1 0 0 [ <-- meaning
* 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 <-- bit
* location][ Rn] <-- meaning
* location is 4 byte aligned
*
* example: cbz x30, 0xFC