From 38971edd9b49a802e6e726fb51d162df1bf58b83 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 12 Nov 2026 10:38:01 -0300 Subject: design: a chapter on registers; the introduction as one video From the user. Registers come second, between memory and the stack: sixteen rows each with its chain, rip pinned on the code band and rsp and rbp on the stack's, a register opened into its parts (rdi, edi, di, dil) as one write touches one byte, a call to malloc stepped over with its result in rax, the registers a scene never changes folding three to a row. The four chapters join in one timeline: a 2.1 s seam with the chapter's title said and kept as the clock's label, one recording's clock. Mocks 58 to 62. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- design/mock/60-regs-call.svg | 177 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 design/mock/60-regs-call.svg (limited to 'design/mock/60-regs-call.svg') diff --git a/design/mock/60-regs-call.svg b/design/mock/60-regs-call.svg new file mode 100644 index 0000000..aeb47c7 --- /dev/null +++ b/design/mock/60-regs-call.svg @@ -0,0 +1,177 @@ + + + + + + +the 128 bytes +4011 +54 +10 +sub +rsp, 0x10 +4011 +58 +mov +[rbp - 8], rdi + +4011 +5c +11 +mov +edi, 0x10 + + + +4011 +61 +call +401040 +malloc@plt +4011 +66 +mov +[rbp - 0x10], rax +4011 +6a +12 +mov +rcx, [rbp - 8] +rdi +0x10 + 16 +malloc +(16) = + +405050 + + + +registers +stack +heap +code +data +rwx + +read-only +rax + +405050 + + +0 +rbx +0 +rcx + +0x21 +33 +rdx +0 +rsi + +405060 + + +0 +rdi + +4 +rbp +7fffffffebc0 + + +7fffffffebe0 + + +7fffffffec90 + + +7fffffffecf0 + + +0 +rsp +7fffffffebb0 + + +405030 + + +0xc +12 +r8 +7ffff7e19ac0 + + +0 +r9 +0x20 +32 +r10 +0x10 +16 +r11 +7ffff7e19ac8 + + +405060 + + +0 +r12 +7fffffffed18 + + +7fffffffeed4 + + +"./list" +r13 +1 +r14 +7ffff7ffd000 + + +7ffff7ffe3c0 + + +0 +r15 +403dc0 + + +401110 +__do_global_dtors_aux+0 + + +rip +401161 +push+17 +cf + +PF + +af + +ZF + +sf + +IF +df +of + +rip holds this row's address: the next to +run, in push(9). +rdi holds push's argument, 9. Its low four +bytes are edi, as eax are rax's. + +Arguments go in rdi, rsi…; the result +comes back in rax. + + +moment 7 of 193 +II registers + -- cgit v1.3