feat: написаны приготовления для 2 пункта

В приготовления входит макрос для замера времени и предварительно записанные строки для printf
This commit is contained in:
root
2024-10-01 12:52:23 +03:00
parent 4594912561
commit df80a7190e
2 changed files with 77 additions and 0 deletions

11
04-addr-methods/timer.inc Normal file
View File

@ -0,0 +1,11 @@
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