feat: написаны приготовления для 2 пункта
В приготовления входит макрос для замера времени и предварительно записанные строки для printf
This commit is contained in:
11
04-addr-methods/timer.inc
Normal file
11
04-addr-methods/timer.inc
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user