Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to fix these errors. Assembly. Code should run and output. INCLUDE asmlib.inc .data msg1 BYTE Here are my programming books:, 0dh, 0ah, 0 //

How to fix these errors. Assembly. Code should run and output.

INCLUDE asmlib.inc

.data

msg1 BYTE "Here are my programming books:", 0dh, 0ah, 0 // first message line title11 BYTE "Assembly Language For the", 0 // first part of book title title12 BYTE "x86 Processor (7th Edition)", 0 // second part of book title author1 BYTE "Kip Irvine", 0 // author name of book publisher1 BYTE "Prentice Hall", 0; // publisher name of first book title21 BYTE "C# 2012 for Programmers", 0 // first part of second book title22 BYTE "(5th Edition)", 0 // second part of second book author2 BYTE "P. Dietel, H. Dietel", 0 // author of second book publisher2 BYTE "Prentice Hall", 0 // publisher name of second book msg BYTE 0dh, 0ah, 0 ;//CR LF tabr BYTE 9h, 0 ;//TAB

.code

main PROC call clearScreen ;// clears the screen

mov edx,offset msg1 ;// moves into the edx registry the first message string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message

mov edx,offset title11 ;// moves into the edx registry the first part of the book title string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message

mov edx,offset title12 ;// moves into the edx registry the second part of the book title string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset author1 ;// moves into the edx registry the author string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message

mov edx,offset publisher1 ;// moves into the edx registry the publisher string call writeString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset title21 ;// moves into the edx registry the first part of the second book title string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset title22 ;// moves into the edx registry the second part of the second book title string call WriteString ;// writes the message mov edx, offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset author2 ;// moves into the edx registry the second author string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message mov edx,offset publisher2 ;// moves into the edx registry the second publisher string call WriteString ;// writes the message mov edx,offset tabr ;// moves into the edx registry the tab string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message mov edx,offset msg ;// moves into the edx registry the crlf string call WriteString ;// writes the message exit main ENDP END main

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

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

Students also viewed these Databases questions

Question

RECOMMEND how to manage transfers and promotions more effectively.

Answered: 1 week ago

Question

What is the growth rate of GDP per capita?

Answered: 1 week ago