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/61-regs-fold.svg | 340 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 340 insertions(+) create mode 100644 design/mock/61-regs-fold.svg (limited to 'design/mock/61-regs-fold.svg') diff --git a/design/mock/61-regs-fold.svg b/design/mock/61-regs-fold.svg new file mode 100644 index 0000000..abffd46 --- /dev/null +++ b/design/mock/61-regs-fold.svg @@ -0,0 +1,340 @@ + + + + + + +4011 +a0 +17 +push +rbp +4011 +a1 +mov +rbp, rsp +4011 +a4 +sub +rsp, 0x18 +4011 +a8 +18 +mov +[rbp - 8] + + + + + + + + +, 0 +4011 +b0 +19 +mov +rax, [rip + 0x2e61] +4011 +b7 +mov +[rbp - 0x10], rax + + + +registers +stack +heap +code +data +rwx + +read-only + +rbx +0 +rdx +0 +r8 +7ffff7e19ac0 + + + + + +r9 +0x20 +32 +r10 +0x10 +16 +r11 +7ffff7e19ac8 + + + + + +r12 +7fffffffed18 + + + + + +r13 +1 +r14 +7ffff7ffd000 + + + + + +r15 +403dc0 + + + + + +rax + +405050 + + + +9 +rcx + +405030 + + +0xc +12 +rsi + +405060 + + +0 +rdi +4 + +rbp + +7fffffffebe0 + + +7fffffffec90 + + +7fffffffecf0 + + +0 +rsp + +7fffffffebc8 + + +401272 +main+50 + + +rip +4011a0 +reverse+0 +cf + +PF +af +zf + +sf + +IF +df +of +7fffffffebc8 +72 +12 +40 +00 +00 +00 +00 +00 +401272 +main+50 +7fffffffebd0 +00 +00 +00 +00 +00 +00 +00 +00 +0 +7fffffffebd8 +00 +00 +00 +00 +00 +00 +00 +00 +0 +7fffffffebe0 +90 +ec +ff +ff +ff +7f +00 +00 +7fffffffec90 + + +7fffffffecf0 + + +0 +7fffffffebe8 +81 +77 +c2 +f7 +ff +7f +00 +00 +7ffff7c27781 +__libc_start_call_mai… +7fffffffebf0 +60 +0c +fe +f7 +ff +7f +00 +00 +7ffff7fe0c60 +7fffffffebf8 +18 +ed +ff +ff +ff +7f +00 +00 +7fffffffed18 +7fffffffec00 +00 +e0 +fb +f7 +01 +00 +00 +00 +0x1f7fbe000 +7fffffffec08 +40 +12 +40 +00 +00 +00 +00 +00 +401240 +7fffffffec10 +50 +ec +ff +ff +ff +7f +00 +00 +7fffffffec50 +7fffffffec18 +60 +f2 +fd +f7 +ff +7f +00 +00 +7ffff7fdf260 +7fffffffec20 +00 +00 +00 +00 +00 +00 +00 +00 +0 +7fffffffec28 +ef +b0 +79 +44 +4e +52 +29 +c4 +0xc429524e4479b0ef +7fffffffec30 +18 +ed +ff +ff +ff +7f +00 +00 +7fffffffed18 +7fffffffec38 +01 +00 +00 +00 +00 +00 +00 +00 +1 +7fffffffec40 +00 +d0 +ff +f7 +ff +7f +00 +00 +7ffff7ffd000 +Arguments go in rdi, rsi…; the result +comes back in rax. +On, into reverse(): rsp and rbp move with +the calls. + +Registers we will not follow fold, three to a +row. We are back where the 128 bytes +were read. + + +moment 182 of 193 +II registers + -- cgit v1.3