Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I really need help in taking this 16-bit code and convert it into a very simple 32-bit code that works. TITLE sumsqr ;sum of

Hello, I really need help in taking this 16-bit code and convert it into a very simple 32-bit code that works.

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

1. The evaluation results can be used to change the program.

Answered: 1 week ago

Question

5. To determine the financial benefits and costs of the program.

Answered: 1 week ago