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