diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-08 22:57:50 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-08 22:57:50 -0700 |
commit | 43b170ea0375e829cf5208a88ab9705aa4be413d (patch) | |
tree | fc5273eab927767940643ee4ddad0d403f5e47ad /subx/ex4.subx | |
parent | 1e1eca1742ec396e5daa686e6b425dbd11f25baf (diff) | |
download | mu-43b170ea0375e829cf5208a88ab9705aa4be413d.tar.gz |
4330 - start allocating data/stack/heap segments
ex4 now writes to the (global) data segment, rather than trying to write to the code segment. We still need to specify the other segments in the generated ELF, though.
Diffstat (limited to 'subx/ex4.subx')
-rw-r--r-- | subx/ex4.subx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/ex4.subx b/subx/ex4.subx index 98b9f55a..303cba1e 100644 --- a/subx/ex4.subx +++ b/subx/ex4.subx @@ -8,7 +8,7 @@ # fd = 1 bb 1/imm32 # copy 1 to EBX # set location to write to - b9 00 80 04 08 # copy 0x08040000 to ECX + b9 00 90 04 08 # copy 0x08040000 to ECX # size = 1 character ba 1/imm32 # copy 1 to EDX # syscall = read |