这段代码是什么意思?
有我的评论。我可能错了。但我认为是的。
PUSH H ;There we push data from H-register to the stack.
LXI H, OFFF ;I can't understand... Why OFFF, not 0xFFF?
REP: DCX ;It decrements passed register. But there's nothing to decrement. Is it correct?
MVI A, OO ;Again... What do two O mean?
CMP H ;CMP takes two arguments. Why does it take one there?
JMP REP ;It's a kind of loop. Jumping to the REP label.
POP H ;This instruction pops data from the stack to the H register.
RET ;Return to the caller.
我从来没有遇到过像OFFF、OO这样的结构。这是什么意思?
这段代码有什么作用?主要目的可能是什么?
它可能是哪种型号的处理器?你怎么想?