Demande d'aide

moussaforum Messages postés 1 Date d'inscription jeudi 17 février 2011 Statut Membre Dernière intervention 2 avril 2011 - 2 avril 2011 à 12:14
cs_patatalo Messages postés 1466 Date d'inscription vendredi 2 janvier 2004 Statut Modérateur Dernière intervention 14 février 2014 - 2 avril 2011 à 22:54
Je voudrai compiler un programme source assembleur avec le compilateur A86,mais dès je valide A86 nomfich.asm je n'arrive pas à avoir le nomfich.com.
Je veux la solution à ce problème

Que de réussite pour ce forum

1 réponse

cs_patatalo Messages postés 1466 Date d'inscription vendredi 2 janvier 2004 Statut Modérateur Dernière intervention 14 février 2014 2
2 avril 2011 à 22:54
salut,

"Je veux compiler un programme source assembleur avec le compilateur A86, mais dès que je valide A86 nomfich.asm je n'arrive pas à avoir le nomfich.com. Je voudrais la solution à ce problème svp" serait plus correct.

Ici

=== CHAPTER 21

You need to change the ORG statement so it is in front of main

ORG 100h
main proc near

This is because you are using main as the starting address, so it must be at 100h. This 100h is optional with A86. If it is making a .COM file it automatically starts at 100h. A86 is designed to give you a .COM file directly, so all you need to do with a single file is:

>a86 +DS myfile.asm

and you will get MYFILE.COM as the output file. In the example where we make a .COM file from multiple files, these files are set up to be .OBJ files. If you want to make them into a .COM file directly, you need to take out all PUBLIC, EXTRN and END statements (and adjust PUSHREGS and POPREGS) and then do:

>a86 +DS prog1.asm prog2.asm prog3.asm

making sure that prog1.asm is first. The output file should be prog1.com.

@++
0
Rejoignez-nous