.data wind db "Minesweeper" .code start: PUSH addr wind PUSH 0 call FindWindow
//Let's say ebx and ecx hold our 2 numbers mov eax, ebx add eax,ecx ret
call AddNumbers //let's say it returned 10 //eax now holds return value 10 so if you added: mov eax,5 // now the program thinks AddNumbers returned 5 //Do Something with eax (which would be 5 instead of 10)
call Addnumber cmp eax,5 JE somewhere
Good to see someone else taking an interest in Assembly