Вот как выглядит мой код. Вы видите какие-то проблемы с этим?Синтаксис сборки Ошибка: в инструкции
compare macro nr1,nr2 ; title of macro
local et1,et2 ; etiquetes
mov eax,nr1
mov ebx nr2
push eax
push ebx
; here I compare the 2 number nr1, nr2 to see whether is bigger
cmp eax,ebx ; comparing the 2 numbers
ja et1
jb et2
et1:
sub eax,ebx ; if the first one is bigger, we substract from it
; here we subtract from the bigger one
push eax
push offset format3
call printf
add esp,8
et2:
sub ebx,eax ; if the second one is bigger we substract like this
push ebx
push offset format3
call printf
add esp,8
add esp, 8
endm
Есть ли у вас какие-либо сообщения об ошибках? Если да, то на какой линии? – Thilo
В этой строке 'mov ebx nr2', кажется, отсутствует запятая. – Jester
Ваш ассемблер, безусловно, видит проблемы с ним и говорит вам. Почему бы не обратить на это внимание? Это, конечно, быстрее, чем задавать вопрос о переполнении стека! –