Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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", ", "World

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago