Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!