В приготовления входит макрос для замера времени и предварительно записанные строки для printf
12 lines
391 B
PHP
12 lines
391 B
PHP
|
|
section .data
|
|
str_template: db "Command %s took %l seconds and %l milliseconds to execute 10000 times", 10, 0
|
|
template_len equ $-str_template
|
|
|
|
nop_command: db '`empty loop`', 0
|
|
reg_command: db '`inc ebx`', 0
|
|
rel_reg: db '`inc byte [rax]`', 0
|
|
ind_base: db '`inc byte [rax + rbx]`', 0
|
|
ind_base_disp: db '`inc byte [rax + rbx + 122]`', 0
|
|
|