Author Topic: how do you convert an ASCII character into a decimal number?  (Read 8536 times)

Offline maplesirop

  • Jr. Member
  • *
  • Posts: 60
how do you convert an ASCII character into a decimal number?
« on: February 24, 2013, 02:33:56 AM »
If I have an input

Code: [Select]
mov eax, 3
mov ebx, 0
mov ecx, input
mov edx, 10
int 0x80

how do I convert input into a decimal number?

Offline Mathi

  • Jr. Member
  • *
  • Posts: 82
  • Country: in
    • Win32NASM

Offline maplesirop

  • Jr. Member
  • *
  • Posts: 60
Re: how do you convert an ASCII character into a decimal number?
« Reply #2 on: February 24, 2013, 04:40:56 PM »
thanks

Code: [Select]
mov eax, 3
mov ebx, 0
mov ecx, input
str2int data
mov edx, 10
int 0x80

would this convert ecx into an int decimal?