DISP
DISP (Display) Instruction
Definition
The "DISP" instruction in assembly language is used to display values on the output or display. It is versatile and can be employed for printing strings, numbers, or the contents of registers.
Syntax:
Where VALUE represents the string, number, or register whose content needs to be displayed.
Usage:
For String:
Detail: This syntax is used to display the specified string ("Hello, World!" in this case) to the output.
For Number:
Detail: This syntax is used to display the specified number (42 in this case) to the output. The '#' symbol indicates that the following value is a numeric constant.
For Register:
Detail: After loading a value (100 in this case) into register R2 using the "MOV" instruction, the "DISP" instruction is used to display the contents of register R2 to the output.
Last updated