From f92a646a900928aecfd4efd931c2153647aeb456 Mon Sep 17 00:00:00 2001 From: winsdominoes Date: Mon, 10 Jun 2024 18:59:27 +0700 Subject: [PATCH] update readme --- README.md | 3 +++ x86/maximum/intel/maximum.asm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a4fba0..b0da082 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # assembly-playground Place for me to try out variants of Assembly Language + +## Resources +- Jonathan Bartlett, Programming From The Ground Up diff --git a/x86/maximum/intel/maximum.asm b/x86/maximum/intel/maximum.asm index 7571fbb..9759b4a 100644 --- a/x86/maximum/intel/maximum.asm +++ b/x86/maximum/intel/maximum.asm @@ -9,8 +9,8 @@ _start: mov edi, 0 # copy 0 into edi - first addresss mov eax, [data_items + edi * 4] # move the first number (edi * 4) to eax - mov ebx, eax # move ebx to eax jmp start_loop + mov ebx, eax # move ebx to eax start_loop: cmp eax, 0 # check if eax is 0, return value stored in EFLAGS register