Saturday, 15 June 2013

Assembly x86 - Input Issues -



Assembly x86 - Input Issues -

so im trying 2 int user, problem when @ whats within numbers (input = 2 , 1), i've not number, 0xa02 , 0xa01. doing wrong?

segment .bss n1 resb 2 n2 resb 2

and input code is

mov eax, 3 mov ebx, 0 mov ecx, n1 mov edx, 2 int 80h

so when user inputs 1, if take loot get

print n1 $1 = 2609

ps: know must sub 48 in order real number

assembly x86

No comments:

Post a Comment