indicogniBuild a VMM

Lab

A64 encoder

Used in chapter 02.

Build an instruction word from its labelled bit fields, or take a word apart, and watch the 32 bits and the little-endian bytes change together.

Runs in browser
Bit fields of chapter 02's three instruction words Three 32-bit words with every field labelled. movz x0, #0x2a is 0xD2800540: sf 1, opc 10, fixed 100101, hw 00, imm16 0000000000101010, Rd 00000. hvc #0 is 0xD4000002: fixed 11010100, opc 000, imm16 all zero, fixed 000, LL 10. b . is 0x14000000: op 0, fixed 00101, imm26 all zero (offset 0, branch to itself). In memory the first word is stored little-endian as the bytes 40 05 80 d2. Fixed fields say which instruction it is; the others carry operands. movz x0, #0x2a = 0xD2800540 sf 1 31 opc 10 30..29 fixed 100101 28..23 hw 00 22..21 imm16 0000000000101010 20..5 Rd 00000 4..0 hvc #0 = 0xD4000002 fixed 11010100 31..24 opc 000 23..21 imm16 0000000000000000 20..5 fixed 000 4..2 LL 10 1..0 b . = 0x14000000 op 0 31 fixed 00101 30..26 imm26 00000000000000000000000000 25..0

All labs