A
A
Anarbek Balmukanov2015-05-26 20:03:50
Programming
Anarbek Balmukanov, 2015-05-26 20:03:50

Assembly optimization?

Good time of the day.
I understand with the assembler and I can not understand one procedure.
.parse_char:
lodsb
test al, al
jz .config_end
cmp al, 10
je .run_command
cmp al, 13
je .run_command
jmp .parse_char
As far as I understand, test is needed here for optimization. The full code of the project I'm trying to understand: https://yadi.sk/d/MW3fNS7xgtEKr

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Justlexa, 2015-05-26
@Anarbek

test al,al is equivalent to comparing register al with 0. but yes, this is some optimization compared to cmp al, 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question