Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Does Anyone know about the Assembly Langauge code and with pseudocode comment? I am confused about this Write a program to print Hello, ', World.
Does Anyone know about the Assembly Langauge code and with pseudocode comment? I am confused about this
Write a program to print "Hello", "', "World". Discussion: This lab is going to do the same thing that assignment \#01 did but we will do it in three steps using two procedures. This will introduce procedures early but is not a good thing to do for such a simple program. For instance, do not call a routine to call a routine. Procedures are created with the PROC/ENDP pseudo-ops. Main is a procedure but it returns to the operating system using the exit. Other procedures use the ret instruction. PSEUDOCODE SOLUTION: ; Start ; Print "Hello", ", "World" ; Stop Discussion: To print the message, we will use the author's routines, Writestring, WriteChar and CRLF. The Writestring 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). The Writechar routine outputs to the screen the single character contained in the AL register. The CRLF routine will output to the screen a CR and LF. PROGRAM: TITLE L01 ; Mel Simmons ; Print "Hello World" ; Lab 01 ;9/7/21 INCLUDE Irvine32. inc CR EQU 13 LF EQU 10 - data hellomsg BYTE "Hello", 0 worldMsg BYTE "World", 0 - code main PROC ; start call Clrser ;Print "Hello", ", "WorldStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started