From 2e95679854187feb8a846ea260f80ba9d8edb87b Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Wed, 3 May 2023 15:32:20 -0400 Subject: [PATCH] update --- 01-duskcc/01-buckleup.md | 11 +++++------ index.html | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/01-duskcc/01-buckleup.md b/01-duskcc/01-buckleup.md index 99c7929..70360c6 100644 --- a/01-duskcc/01-buckleup.md +++ b/01-duskcc/01-buckleup.md @@ -105,12 +105,11 @@ would look like this: mov eax, 1 ; exit int 0x80 -You can assemble this with `“nasm -f elf64 noop.asm && ld -o noop -noop.o”`. The resulting `noop` executable will efficiently do nothing and -exit. How to read this? The first 3 lines are boilerplate. The linker[^3] -(`ld`) looks at a global symbol named `_start` to set as the ELF -entry point. The `_start:` line is the definition of a label, which we -can see as function names. +You can assemble this with `“nasm -f elf64 noop.asm && ld -o noop noop.o”`. The +resulting `noop` executable will efficiently do nothing and exit. How to read +this? The first 3 lines are boilerplate. The linker[^3] (`ld`) looks at a +global symbol named `_start` to set as the ELF entry point. The `_start:` line +is the definition of a label, which we can see as function names. The last 2 lines go together. `“mov eax, 1”`[^4] copies the constant ("immediate" in assembler talk) value `1` (the exit syscall ID) into register diff --git a/index.html b/index.html index f4057b6..40ad5f7 100644 --- a/index.html +++ b/index.html @@ -76,7 +76,7 @@ My “pilot” story arc is on the subj -- 2.45.2