diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-26 12:19:02 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-26 12:19:02 -0700 |
commit | 6e51c60c699f795f14e49744a10f91d9609b044e (patch) | |
tree | 56b7b3372929abb8850a99141341395d50518c47 /subx/ex1.2.subx | |
parent | 7da8da495fbe9422f13198a83193d4b5477bf8f6 (diff) | |
download | mu-6e51c60c699f795f14e49744a10f91d9609b044e.tar.gz |
4424
Clean up format of example programs.
Diffstat (limited to 'subx/ex1.2.subx')
-rw-r--r-- | subx/ex1.2.subx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/subx/ex1.2.subx b/subx/ex1.2.subx index 81f2bfe2..1dac17e5 100644 --- a/subx/ex1.2.subx +++ b/subx/ex1.2.subx @@ -6,12 +6,12 @@ # $ subx run ex1 == 0x08048054 # code segment, after leaving room for ELF header -# opcode ModR/M SIB displacement immediate -# instruction mod, reg, Reg/Mem bits scale, index, base -# 1-3 bytes 0/1 byte 0/1 byte 0/1/2/4 bytes 0/1/2/4 bytes - bb 42/imm32 # copy 0x2a (42) to EBX +# instruction effective address operand displacement immediate +# op subop mod rm32 base index scale r32 +# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes + bb 42/imm32 # copy 0x2a (42) to EBX # exit(EBX) - b8 1/imm32 # copy 1 to EAX - cd 128/imm8 # int 80h + b8 1/imm32 # copy 1 to EAX + cd 128/imm8 # int 80h # vim:ft=subx |