Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello I need help converting this 16bit code into a 32bit code for my assembly language class can anyone help. code below. Thanks TITLE sumsqr

Hello I need help converting this 16bit code into a 32bit code for my assembly language class can anyone help. code below.

Thanks

TITLE sumsqr ;sum of squares

;\----------------------------------------------------

.MODEL SMALL

.STACK 64 ;define stack

.DATA ;define data

pala1 DW 21h

pala2 DW

17h pala3 DB ?

pala4 DB ?

pala5 DW ?

;_______________________________________________

.CODE ; define code segment

MAIN PROC FAR

;Startup initializes data

MOV ax,@data ;set address of data

MOV ds,ax

mov ax,pala1

mov bx,pala1

mul bx

mov bx,ax

mov ax,pala2

mul ax

add ax,bx

mov pala3,al

mov pala4,ah

mov ah,06h ;clear screen

mov al,00h ;full screen

mov bh,48h ;page 157

mov cx,0000h ;starting row;column

mov dx,184fh ;ending row column

int 10h

mov ah,02h ;set cursor

mov bh,00h ;page number zero

mov dh,17 ;line number

mov dl,25 ;column number

int 10h

mov dl,pala4

int 21h

mov dl,pala3

int 21h

mov ax,4c00h;end processing

;Exit

INT 21h

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago