problème nasm :binary output format does not support external references
bonjour
j'ai installer le nasm dans mon linux depuis le lien http://www.nasm.us/pub/nasm/releaseb...2.10rc8.tar.gz
puis j'essaye d'assembler mon fichier affiche.asm
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| %include "asm_io.inc"
segment .data
msg3: db "entrer un entier",10, 0
segment .text
global main
main:
enter 0,0
; mov eax, msg3
; call print_string
; call read_int
; mov ebx,eax
; call read_int
mov eax,0xffff1113
mov ebx,0xffffffff
add eax,ebx
call print_int
call print_nl
dump_reg 1
mov eax,0
leave
ret |
asm_io.inc se trouve dans le même dossier mais le nasm me dit
affiche.asm:15: error: binary output format does not support external references
le commande avec lequel j'assemble est: nasm -f bin affiche.asm -o affiche.out
aidez-moi merci