user2023608
user2023608

Reputation: 468

Assembly Language Addition

I am new to assembly language and I found this table of hex codes that I need http://www.keil.com/support/man/docs/is51/is51_opcodes.htm But my question is does it matter which "ADD" instruction I do given a certain situation since they range from 24-2F or can I just pick anyone I desire?

Upvotes: 2

Views: 943

Answers (1)

Daniel Hedberg
Daniel Hedberg

Reputation: 5817

You need to choose the one that mathches what you want to accomplish, i.e., how the value you want to add is specified. Do you for instance want to add an immediate operand or a value in a register? As stated by Raymond Chen, the details are present in the fourth column.

Upvotes: 2

Related Questions