Assembly Language - Instructions and Operands
- you might be thinking that why the title is like this right.... but that is what today's topic is all about the "INSTRUCTIONS".
- Instructions are the main important thing after your data because an instruction defines which operation to perform right...
Instruction :-
- Now here's one thing some instructions may have 3 operands but remember that most of the time the first operand will always be the destination.
- Lets take few examples to understand how operands works with instruction and what 1 operand, 2 operand and 3 operands really means?
- You don't need to worry about the instruction type or name i will cover them in next few post but for now only focus on to the operands again forget about the instruction just focus on operands OK....
1 Operand :-
- Now let's understand what 1 operand or single operand instruction means
- A single operand instruction looks something like this.
Example :-
2 Operand :-
- Now let's understand what 2 operand or double operand instruction means
- Now here's comes the best thing that keep in mind when there are more than one operand then first operand will always be the destination
- A double operand instruction looks something like this.
Example :-
3 Operand :-
- Now let's understand what 3 operand or triple operand instruction means
- A triple operand instruction looks something like this.
Example :-
Conclusion :-
- This is what I am trying to tell that how instruction and operands works....
- Also the source and destination follow the format of addressing modes that's why i tell that those are important you can check those by - Click Here.
Now from next few post i am going to start different instruction and going to cover as many instructions as possible... also if few of you might be thinking that the posts are not much in detail I know but as i said its not good to directly jump to advance stuff just bear with me we will go from basic to advance with flow like hello world program or addressing mode I am going to cover all of these previous post i detail as we progress... See you guys in the next post .... :)
Assembly Language - Instructions and Operands
Reviewed by h4kk4
on
April 24, 2020
Rating:
No comments:
Enter your comments here if you need any help: