diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-03 23:23:39 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-03 23:23:39 -0700 |
commit | 12adb3da8a8979c207b2e7fd17bdb05bacefeb44 (patch) | |
tree | 12c1a96ffe7feb8b41613e0b2cead1c3919db8d9 /subx/ex2.subx | |
parent | 85173b622021de062706df81947df7ae2300b654 (diff) | |
download | mu-12adb3da8a8979c207b2e7fd17bdb05bacefeb44.tar.gz |
4467
Diffstat (limited to 'subx/ex2.subx')
-rw-r--r-- | subx/ex2.subx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/ex2.subx b/subx/ex2.subx index 20cee840..c63b7eb6 100644 --- a/subx/ex2.subx +++ b/subx/ex2.subx @@ -8,13 +8,13 @@ # 2 == 0x08048054 # code segment, after leaving room for ELF header -# 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/copy 1/imm32 # copy 1 to EBX - 81 0/subop/add 3/mod/direct 3/rm32/ebx 1/imm32 # add 1 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/copy 1/imm32 # copy 1 to EBX + 81 0/subop/add 3/mod/direct 3/rm32/ebx 1/imm32 # add 1 to EBX # exit(EBX) - b8/copy 1/imm32 # copy 1 to EAX - cd/syscall 0x80/imm8 # int 80h + b8/copy 1/imm32 # copy 1 to EAX + cd/syscall 0x80/imm8 # int 80h # vim:ft=subx |