NASM Coding: Trace Tables

One way to keep track of what is happening with a program that we are working with is by creating a trace table for it: a table what keep track of the input, output, register, variable, and exit code values as the program keeps executing.

Here is the trace table for the short program on slide 37:

Instruction
stdin
rax
rdi
stdout
Exit Code Notes
mov rax, 60
60d
mov rdi, 0
60d
0
syscall
60d
0
0
exit(0);