Linux 汇编中多个2位输入的问题

Linux 汇编中多个2位输入的问题,linux,assembly,x86,Linux,Assembly,X86,我对这个PL相当陌生,我真的不知道我在做什么。我的代码似乎只取前两位数字,而不是第二位或第三位数字 我真正做的就是打印一个提示,要求输入两位数的数字,如下所示。然后取十位数和一位数。有人能指出哪里出了问题吗 ;Prompt to enter first number ... ;Gets the first number mov eax, 3 mov ebx, 0 mov ecx, num1a mov edx, 1 int 80h mov eax, 3 mov ebx, 0 mov ecx,

我对这个PL相当陌生,我真的不知道我在做什么。我的代码似乎只取前两位数字,而不是第二位或第三位数字

我真正做的就是打印一个提示,要求输入两位数的数字,如下所示。然后取十位数和一位数。有人能指出哪里出了问题吗

;Prompt to enter first number
...

;Gets the first number
mov eax, 3
mov ebx, 0
mov ecx, num1a
mov edx, 1
int 80h

mov eax, 3
mov ebx, 0
mov ecx, num1b
mov edx, 1
int 80h

;Prompt to enter Second Number
...

;Gets the second number
mov eax, 3
mov ebx, 0
mov ecx, num2a
mov edx, 1
int 80h

mov eax, 3
mov ebx, 0
mov ecx, num2b
;mov edx, 1
int 80h

;Prompt to enter Third Number
...

;Gets the third number
mov eax, 3
mov ebx, 0
mov ecx, num3a
mov edx, 1
int 80h

mov eax, 3
mov ebx, 0
mov ecx, num3b
mov edx, 1
int 80h
它不会让我放更多的代码,但是。。。在这些代码中都是相同的

mov eax, 4
mov ebx, 1
mov ecx. prompt
mov edx, promptLen
int 80h

where:

section .data
prompt db 'Enter a two-digit number: '
promptLen equ $-prompt

您可以做的是,当您从用户处读取值时,增加edx的大小

  mov eax, 3
  mov ebx, 0
  mov ecx, num1b
  mov edx, 32
  int 80h

你能发布完整的代码吗?别忘了阅读数字之间的任何换行或空格。