我正在尝试组装作业,但似乎 cmp 部分无法正常工作,即使我的输入为 6,它也不会跳到终止,有人可以帮忙吗?
menu:
call display_menu
movl $3, %eax
movl $0, %ebx
movl $choice, %ecx
movl $2, %edx
int $0x80
##JE not working
cmp $6,(choice)
je _terminate
jmp menu
_terminate:
movl $1, %eax
movl $0, %ebx
int $0x80