J
J
Jesoxxx2020-05-22 11:26:16
assembler
Jesoxxx, 2020-05-22 11:26:16

How can I write the compare CMP command in a different form?

Suppose I have given CMP R0, 1000, which is recorded in the memory cell at address 500, how can it be written differently? I'm just starting to understand assembler.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-05-22
@fox_12

I don’t know what the assembler version is, but instead of cmp, you can do something like:

XOR R0, 1000    # если оба операнда совпадают - то результат будет равен 0
JZ LOC1         # прыжок если 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question