MASM Programming Tutorial User Input Lec17

Published: 17 July 2017
on channel: Gaith AlBadarin
8,340
70

MASM program using Irvine library that asks the user to input two numbers and finds the sum.

we used : call writestring, call readint , call writeint

code:

; By Gaith Albadarin
;Adding Two numbers


include irvine32.inc

.data
Num1 db ?
Num2 db 0
str1 db "Enter first Number : ", 10, 13, 0
str2 db "Enter Second Number : " , 0ah, 0dh, 0
str3 db 'Sum = '

.code
main proc

mov edx, offset str1
call writestring
call readint
mov Num1,al

mov edx, offset str2
call writestring
call readint
mov Num2,al

add al, Num1

mov edx, offset str3
call writestring
call writeint

exit
main endp
end main


On this page of the site you can watch the video online MASM Programming Tutorial User Input Lec17 with a duration of hours minute second in good quality, which was uploaded by the user Gaith AlBadarin 17 July 2017, share the link with friends and acquaintances, this video has already been watched 8,340 times on youtube and it was liked by 70 viewers. Enjoy your viewing!