0
안녕하세요, 저는 x86 어셈블러 코드를 컴파일하는 데 문제가 있습니다. im은 컴파일하는 데 nasm을 사용하지만 컴파일러가 구문이 잘못되었음을 알려줍니다. 나는 단순한 레이블을 사용하고 그것을 점프하기 때문에 그것을 이해하지 못합니까? 누군가가,error : expression syntax error
; reads character and prints ascii code in console
[BITS 16]
SEGMENT code
..start:
mov ax, pile
mov ss, ax
mov ax, topofstack
mov sp, ax
loop: ; gives syntax error
mov ah, 00h
int 16h
cmp ax, 1c0dh ; user pressed enter, jump to end
je end
mov ah, 09h ; write character and attribute at cursor position
mov bh, 0h ; flags...
mov bl, 08h
mov cx, 01h
int 10h
jmp loop ; gives syntax error
end:
mov ax, 04c00h
int 21h
SEGMENT pile stack
resb 64
topofstack:
NASM '버전 0.98.40 (Apple Computer, Inc. 빌드 11)에서는'이것이 정확하게 문제였습니다. 루프 레이블을 다른 것으로 변경하고 잘 조립합니다. –