From 06a0189e2e7b38d62eea0341022cfaa7224b5a6b Mon Sep 17 00:00:00 2001 From: dwrz Date: Fri, 13 Nov 2020 17:19:00 +0000 Subject: [PATCH] Update assembly x86 safety example --- x86-assembly/src/safety/safety.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86-assembly/src/safety/safety.s b/x86-assembly/src/safety/safety.s index 2263331..c22faef 100644 --- a/x86-assembly/src/safety/safety.s +++ b/x86-assembly/src/safety/safety.s @@ -7,7 +7,7 @@ juliet: stop: # Try changing this number. What happens? Why? # Hint: try 0, 1, 11, 12, 21, 22. - .int 11 + .int 12 .text .global _start @@ -23,7 +23,7 @@ _start: # Setup. lea romeo, %rax # Load the starting address of string into %rax. mov $0xb98c9ff0, %ebx # 🌹 = b98c9ff0 (4 bytes) - mov $0, %rcx # Set the intial counter. + mov $0, %rcx # Set the initial counter. # Overwrite the strings with 🌹. # Increment the address in %rax by four bytes on each iteration.