2 years, 1 month ago
In 68000 assembly code, what is the proper way to compare 2 plus symbols?
In the code below, register D0 may or may not contain a plus sign. My code attempts to move a + sign into D3 so I can compare it to D0, but it doesn't work. What is the proper way to format it so it does work?
MOVE.B '+',D3
CMP.B D3,D0
BEQ ACTION1
ACTION1 ADD.B D2,D1
MOVE.B '+',D3
CMP.B D3,D0
BEQ ACTION1
ACTION1 ADD.B D2,D1
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$