Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .386
- .main
- org 100h
- .MODEL SMALL
- .STACK 200
- .DATA
- temperature DB 0dh,0ah,"$"
- prompt1 DB "Enter celcius:","$"
- prompt2 DB "In Fahrenheit:","$"
- prompt3 DB ".","$"
- result DB ?
- Name1 DB ?
- XLNAME Dw ?
- y DW 8
- x DW 1
- z dw 10
- .code
- .startup
- lea dx,prompt1
- mov ah,09h
- int 21h
- mov ah,01h
- int 21h
- sub al,30h
- mov Name1,al
- lea dx,crlf
- mov ah,09h
- int 21h
- mov al,Name1
- mul x
- mov x1,ax
- mov al,c
- mul y
- idiv z
- add al,c
- add al,32
- mov result,al
- lea dx,prompt2
- mov ah,09h
- int 21h
- mov dl,result
- add ah,02h
- int 21h
- .exit
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement