Professional Documents
Culture Documents
Presentations (Jan 25, 2024 at 12 - 44 PM)
Presentations (Jan 25, 2024 at 12 - 44 PM)
include emu8086.inc
.data
msg db 10,13," Enter Value of radius:",0 msg1
db 10,13, " Enter Value of 2(3.14):",0 Result
db ?
Mult dw ?
Ends
stack segment dw
128 dup<0>
ends
.code
Start:
mov ax,data
mov ds,ax
mov es,ax
mov ah,7
mov al,0
mov ch,0
mov cl,0
mov dh,24
mov dl,66
mov bh,4fh
int 10h
lea si,msg
call print_string
call scan_num
mov ax,cx
mov bl,cl
mov bh,3
mul bl
mul bh
mul ax
lea si,msg1
call print_string
call scan_num
mov bx,cx
mul bx
mov mult,ax
xor ax,ax
printn
print 'Area of circle Calculated ='
mov ax,mult
call print_num_uns
mov ax,4c00h
int 21h
ends
define_scan_num
define_print_string
define_print_num_uns
end start