diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-05-18 00:00:18 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-05-18 00:45:12 -0700 |
commit | 83c67014034bbf9072d7e4555b0e51e815a95756 (patch) | |
tree | cf52127783efc20bbe8d903d96e73bc51a1f752d /subx/examples/ex6.subx | |
parent | 4b506b630ce28b3574a9f903904588f92dd3a1c1 (diff) | |
download | mu-83c67014034bbf9072d7e4555b0e51e815a95756.tar.gz |
switch to new syntax for segment headers in C++
Diffstat (limited to 'subx/examples/ex6.subx')
-rw-r--r-- | subx/examples/ex6.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx index 3375fb43..c5999033 100644 --- a/subx/examples/ex6.subx +++ b/subx/examples/ex6.subx @@ -5,7 +5,7 @@ # $ ./subx run examples/ex6 # Hello, world! -== code +== code 0x09000000 # instruction effective address register 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 @@ -25,7 +25,7 @@ b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 -== data +== data 0x0a000000 Size: # size of string 0x0e/imm32 # 14 |