From 8a4bc9cf6c5eee34b87511549820de8db51fa10d Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Fri, 15 Sep 2023 11:40:57 +0000 Subject: [PATCH] chapter 0x00 --- 0x00.asm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 0x00.asm diff --git a/0x00.asm b/0x00.asm new file mode 100644 index 0000000..403a8e4 --- /dev/null +++ b/0x00.asm @@ -0,0 +1,16 @@ + BITS 64 + SECTION .text + global main + +main: + xor eax, eax + lea rbx, [0] + ; ecx usually starts with a high value, loop decrements this + ; so this makes it all a bit faster + mov ecx, 10 + loop $ + mov rdx, 0 + and esi, 0 + sub edi, edi + push 0 + pop rbp