Question
Can I get help to take this 16-bit code and make it into a 32-bit code simple as possible for my assembly language class? the
Can I get help to take this 16-bit code and make it into a 32-bit code simple as possible for my assembly language class? the code is below and also can you make sure it works and tell me how to assemble it in my compiler.
title fiboclss ;term3-08
include irvine16.inc ;i need you today
;_________________________________________________________
.data
array1 dw 17 dup ('?')
rope1 db 'here are the 17 numbers in sequence','$'
rope2 db 'gimme da number : ','$'
;________________________________________________________-
.code fibo1 proc far
mov ax,@data
mov ds,ax
mov es,ax
lea di,array1
mov si,offset rope1
mov ah,06h ;clear screen
mov al,00h ;full screen
mov bh,74h ;page 157
mov cx,0000h ;starting row;column
mov dx,314fh ;ending row column
int 10h
mov ah,02h ;set cursor
mov bh,00h ;page number zero
mov dh,3 ;line number
mov dl,3 ;column numbe
r int 10h
mov ah,09h
lea dx,rope2
int 21h
call readint
mov [di],ax add di,2
mov ah,02h ;set cursor
mov bh,00h ;page number zero
mov dh,5 ;line number
mov dl,3 ;column number
int 10h
mov ah,09h
lea dx,rope2
int 21h
call readint
mov [di],ax
add di,2 ; each number is 16-bit
mov cx,lengthof array1-2 ; this sets counter for remaining
lupe1:
mov ax,[di-4]
add ax,[di-2]
mov [di],ax
add di ,2 loop lupe1
mov dh,07
mov dl,07
call gotoxy
mov ah,09h
push dx
lea dx,rope1
int 21h
pop dx
mov di,offset array1
mov cx,lengthof array1
lupe2:
add dh,1
add dl,4
call gotoxy
mov ax,[di]
call writedec
add di,2 loop lupe2
mov dl,00
add dh,2
call gotoxy
mov si,offset array1
mov bx, 2
mov cx,lengthof array1
call DumpMem
mov ax,4c00h
int 21h
fibo1 endp
end fibo1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started