convert hex to interger

nataliafoster26's Avatar, Join Date: Oct 2011
Newbie Member
how do u convert the ascii hex input (from the buffer) into an integer???
nataliafoster26's Avatar, Join Date: Oct 2011
Newbie Member
oh this is what i got for now
Code:
push ebp
mov ebp,esp
sub esp,36
push eax
push ebx
push ecx
push edx


mov esi,0    ;#chraracter count
lea edi,[ebp-35]

readchr:
mov eax,SYS_read
mov ebx,STDIN
lea ecx,[ebp-36]
mov edx,1
int 80h

mov  al,byte[ebp-36]
cmp al,LF
je readDone

cmp esi,35
jg readchr

mov byte[edi],al
inc esi
inc edi
jmp readchr

readDone:
mov byte[edi],NULL

Last edited by shabbir; 14Oct2011 at 14:44.. Reason: Code blocks