Task 3
include irvine32.inc
include macros.inc
.data
title1 byte "Choose Your Favourite Fruit",0
msg byte "Select 'Yes' if you'd like to rank your top 3 favourite fruits, or select 'No' to exit",0
favFruits byte 3, 20 dup(0)
.code
main proc
lea edi, favFruits
lea ebx, title1
lea edx, msg
call MsgBoxAsk
cmp eax, 06h
je yess
mwrite "Exiting the Program"
call crlf
jmp exittt
yess:
mwrite "Enter your top 3 Favourite Fruits: "
call crlf
mov ecx, 3
l1:
push ecx
mwrite "Enter the Fruit : "
mov edx, edi
mov ecx, 20
call readstring
add edi, 20
pop ecx
loop l1
mwrite "Your top 3 Favourite Fruits are :"
call crlf
mov ecx, 3
lea edi, favFruits
l2:
mov edx, edi
call writestring
add edi, 20
call crlf
loop l2
exittt:
exit
main endp
end main
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}