From 43b170ea0375e829cf5208a88ab9705aa4be413d Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 8 Jul 2018 22:57:50 -0700 Subject: 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. --- subx/ex4.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx/ex4.subx') 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 -- cgit 1.4.1-2-gfad0