Files
solutions/04-addr-methods/timer.inc
root df80a7190e feat: написаны приготовления для 2 пункта
В приготовления входит макрос для замера времени и предварительно записанные строки для printf
2024-10-01 12:52:23 +03:00

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