Question: ASSEMBLY LANGUAGE Write a program using author's routine, WriteString, to print Hello World. This routine will output to the screen any character data pointed to
ASSEMBLY LANGUAGE
Write a program using author's routine, WriteString, to print "Hello World". This routine will output to the screen any character data pointed to by the EDX register. It will continue to print until it runs into the null character (zero). We need only to move the address into the EDX register and calll his routine. Lookup in the ASCII code chart the value reqresented by CR and LF. In the program I will define these values using the equal (=) and the EQU pseudo-ops. Answer the question that is asked in the program.

CR 13 LF EQU 10 Question What is the difference between and EQU? Answer msg TEXTEQU Hello World" CR LF, 0 Question What about TEXTEQU Answer data hello Msg BYTE msg code main PROC Start call Clr EDX, OFFSET hello Msg Print Hello World" mov call Write String exit Stop ma in ENDP END main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
