简体   繁体   中英

nasm error: parser:instruction expected

I'm starting with the assembly now

this is prova.asm

_prog   SEGMENT BYTE PUBLIC 'CODE'
    ASSUME CS:_prog,DS:_prog
    ORG 0100H
INIZIO: MOV AH,00H  ;pulisci lo schermo
    MOV AL,03H  ;(clearscreen)
    INT 10H ;
    MOV AH, 00H ;aspetta la pressione
    INT 16H ;di un tasto
    MOV AH, 4CH ;torna al dos
    INT 21H ;
_prog   ENDS
    END INIZIO

These are the errors

nasm prova.asm
prova.asm:2: error: parser:instruction expected
prova.asm:11 error: symbol '_prog' redefined
prova.asm:11 error: parser:instruction expected
prova.asm:12 error: parser:instruction expected

This is not assembly syntax that supported by NASM. You have to use masm to assemble the code. Also It's written in bad format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM