From 333525360b22f3d3ea31db46a4d2f1b4edbfebdb Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 26 Aug 2019 11:55:26 -0700 Subject: 5592 - switch register names to lowercase --- examples/ex12.subx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/ex12.subx') diff --git a/examples/ex12.subx b/examples/ex12.subx index 4d1d53d0..571d42d8 100644 --- a/examples/ex12.subx +++ b/examples/ex12.subx @@ -13,16 +13,16 @@ Entry: # syscall(mmap, 0x1000) - bb/copy-to-EBX Mmap-new-segment/imm32 - b8/copy-to-EAX 0x5a/imm32/mmap + bb/copy-to-ebx Mmap-new-segment/imm32 + b8/copy-to-eax 0x5a/imm32/mmap cd/syscall 0x80/imm8 - # write to *EAX to check that we have access to the newly-allocated segment - c7 0/subop/copy 0/mod/direct 0/rm32/EAX . . . . . 0x34/imm32 # copy to *EAX + # write to *eax to check that we have access to the newly-allocated segment + c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0x34/imm32 # copy to *eax - # syscall(exit, EAX) - 89/copy 3/mod/direct 3/rm32/EBX . . . 0/r32/EAX . . # copy EAX to EBX - b8/copy-to-EAX 1/imm32/exit + # syscall(exit, eax) + 89/copy 3/mod/direct 3/rm32/ebx . . . 0/r32/eax . . # copy eax to ebx + b8/copy-to-eax 1/imm32/exit cd/syscall 0x80/imm8 == data 0x0a000000 -- cgit 1.4.1-2-gfad0