Program Control Instructions
Program Control Instructions are the machine code that are used by machine or in assembly language by user to command the processor act accordingly. These instructions are of various types. These are used in assembly language by user also. But in level language, user code is translated into machine code and thus instructions are passed to instruct the processor do the task.
Program Control Instructions
| Name | Mnemonics |
|---|---|
| Branch | BR |
| Jump | JMP |
| Skip | SKP |
| Call | Call |
| Return | RET |
| Compare (by Subtraction) | CMP |
| Test (by ANDing) | TST |
Example:CMP R1, R2 ;
Example:JUMP L2Mov R3, R1 goto L2
Example:Assembly Code : BE R1, R2, L1Compiler allocates R1 for x and R2 for yHigh Level Code: if (x==y) goto L1;
Example:CALL and RET
- NOP Instruction β NOP is no operation. It cause no change in the processor state other than an advancement of the program counter. It can be used to synchronize timing.
- HALT β It brings the processor to an orderly halt, remaining in an idle state until restarted by interrupt, trace, reset or external action.
- RESET β It reset the processor. This may include any or all setting registers to an initial value or setting program counter to standard starting location.
- TRAP β It is non-maskable edge and level triggered interrupt. TRAP has the highest priority and vectored interrupt.
- INTR β It is level triggered and maskable interrupt. It has the lowest priority. It can be disabled by resetting the processor.
Discussion & Queries (<$I18NNumComments$>):
<$CommentPager$>
- <$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>
<$CommentPager$>
<$BlogCommentBody$>
<$BlogCommentDeleteIcon$>