Professional Documents
Culture Documents
Lecture 5
Lecture 5
Edition
The Hardware/Software Interface
Chapter 2
Instructions: Language
of the Computer
◼ CBNZ register, L1 // CBNZ stands for compare and branch if not zero
◼ if (register != 0) branch to instruction labeled L1;
◼ B L1
◼ branch unconditionally to instruction labeled L1;
5 10000ten
6 bits 26 bits
◼ CB-type
◼ CBNZ X19, Exit // go to Exit if X19 != 0
181 Exit 19
8 bits 19 bits 5 bits