From 590d4e18e7e2ed6ce0a71b24243112803760bddc Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Thu, 20 Dec 2018 10:41:14 +0100 Subject: [PATCH] a5: Testing --- src/c/a5/addsub.asm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/c/a5/addsub.asm b/src/c/a5/addsub.asm index 1c7c36b..2842278 100644 --- a/src/c/a5/addsub.asm +++ b/src/c/a5/addsub.asm @@ -8,6 +8,14 @@ addsub: mov ebp, esp mov eax, 0 + sub esp, 4 + + mov [ebp-4], word 1 + + mov eax,0 + add ax, word [foo] + add ax, word [ebp+8] + add ax, word [ebp-4] mov esp, ebp pop ebp