list.c · reverse
each line, then the instructions it compiled to · lines and addresses in one column
20
while
(
head
)
{
1001
910
48 85 ff
test
rdi, rdi
1001
913
74 20
je
1001935
1001
915
55
push
rbp
1001
916
48 89 e5
mov
rbp, rsp
1001
919
31 c0
xor
eax, eax
1001
91b
0f 1f 44 00 00
nop
[rax + rax]
1001
920
48 89 c1
mov
rcx, rax
1001
923
48 89 f8
mov
rax, rdi
21
struct
node
*
next
=
head
-
>
next
;
1001
926
48 8b 7f 08
mov
rdi, [rdi + 8]
1004098
1004070
9
22
head
-
>
next
=
prev
;
1001
92a
48 89 48 08
mov
[rax + 8], rcx
20
while (head) { again: its second run
1001
92e
48 85 ff
test
rdi, rdi
1001
931
75 ed
jne
1001920
1001
933
5d
pop
rbp
26
return
prev
;
1001
934
c3
ret
1001
935
31 c0
xor
eax, eax
1001
937
c3
ret
48 8b 7f 08 is one instruction: mov rdi, [rdi + 8], line 21's
head->next. The line sits level with its code: they are one row.