Salut tout le monde
je fais mon premier prgm en asm z80(sans utiliser de fichier include, le temps de me familiariser avec la programmation);
Voila la source:
#DEFINE B_CALL(xxxx) rst 28h \.dw xxxx
#DEFINE B_JUMP(xxxx) call 50h \.dw xxxx
;
effLCD = 4540h
ecrprincipal = 4558h
ecriretxt = 454Ah
txtinverse = 3
txtflags = 5
xtxt = 800Ch
ytxt = 800Dh
;
.org 9D95h
B_CALL(ecrprincipal)
B_CALL (effLCD)
set txtinverse,(iy+txtflags)
ld a,0
ld (xtxt),a
ld (ytxt),a
ld hl,texte
B_CALL(ecriretxt)
res txtinverse,(iy+txtflags)
ret
;
texte:
.db " "
.db " "
.db " "
.db " "
.db " "
.db " "
.db " "
.db " ",0
.end
END
Et voici les erreurs :
0001 0000 #DEFINE B_CALL(xxxx) rst 28h \.dw xxxx
0002 0000 #DEFINE B_JUMP(xxxx) call 50h \.dw xxxx
0003 0000 ;
0004 0000 effLCD = 4540h
0005 0000 ecrprincipal = 4558h
0006 0000 ecriretxt = 454Ah
0007 0000 txtinverse = 3
0008 0000 txtflags = 5
0009 0000 xtxt = 800Ch
0010 0000 ytxt = 800Dh
0011 0000 ;
0012 9D95 .ORG 9D95h
remplir.z80 line 0013: Macro expects args but none found (.ORG)
0013 9D95 B_CALL (ecrprincipal)
remplir.z80 line 0013: Label not found: (rst)
remplir.z80 line 0013: label value misalligned. (rst)
remplir.z80 line 0013: unrecognized directive. (rst)
0013 9D95 58 45
remplir.z80 line 0014: Macro expects args but none found (.DW)
0014 9D97 B_CALL (effLCD)
remplir.z80 line 0014: Label not found: (rst)
remplir.z80 line 0014: label value misalligned. (rst)
remplir.z80 line 0014: unrecognized directive. (rst)
0014 9D97 40 45
0015 9D99 set txtinverse,(iy+txtflags)
remplir.z80 line 0015: Label not found: (set)
remplir.z80 line 0015: label value misalligned. (set)
remplir.z80 line 0015: unrecognized instruction. (set)
0016 9D99 LD a,0
remplir.z80 line 0016: Label not found: (LD)
remplir.z80 line 0016: label value misalligned. (LD)
remplir.z80 line 0016: unrecognized instruction. (LD)
0017 9D99 LD (xtxt),a
remplir.z80 line 0017: Label not found: (LD)
remplir.z80 line 0017: label value misalligned. (LD)
remplir.z80 line 0017: unrecognized directive. (LD)
0018 9D99 LD (ytxt),a
remplir.z80 line 0018: Label not found: (LD)
remplir.z80 line 0018: label value misalligned. (LD)
remplir.z80 line 0018: unrecognized directive. (LD)
0019 9D99 LD hl,texte
remplir.z80 line 0019: Label not found: (LD)
remplir.z80 line 0019: label value misalligned. (LD)
remplir.z80 line 0019: unrecognized instruction. (LD)
0020 9D99 B_CALL(ecriretxt)
remplir.z80 line 0020: Label not found: (rst)
remplir.z80 line 0020: label value misalligned. (rst)
remplir.z80 line 0020: unrecognized directive. (rst)
0020 9D99 4A 45
0021 9D9B RES txtinverse,(iy+txtflags)
remplir.z80 line 0021: Label not found: (RES)
remplir.z80 line 0021: label value misalligned. (RES)
remplir.z80 line 0021: unrecognized instruction. (RES)
0022 9D9B RET
0023 9D9B ;
0024 9D9B texte:
0025 9D9B 202020202020.db " "
0025 9DA1 20202020202020202020
0026 9DAB 202020202020.db " "
0026 9DB1 20202020202020202020
0027 9DBB 202020202020.db " "
0027 9DC1 20202020202020202020
0028 9DCB 202020202020.db " "
0028 9DD1 20202020202020202020
0029 9DDB 202020202020.db " "
0029 9DE1 20202020202020202020
0030 9DEB 202020202020.db " "
0030 9DF1 20202020202020202020
0031 9DFB 202020202020.db " "
0031 9E01 20202020202020202020
0032 9E0B 202020202020.db " ",0
0032 9E11 2020202020202020202000
0033 9E1C
0034 9E1C .end
0035 9E1C END
tasm: Number of errors = 29
Qu'est ce que c'est ces (rst) entre parenthèses?Qu'est ce qui va pas?Ca fait environ 6 heures au total que j'ai passées à essayer de les résoudre!
.
moi je vais sur les ordis du CDI uniquement pour aller ici (je dit que j'ai des problème avec ma TI et que je vais poster un truc pour qu'on m'aide comme ça tout le monde est content)... Sinon, si au moins t'avais le câble, tu aurai pu télécharger un compilo oncalc, comme 'Oncalc Compiler'. Puis si tu as pas le droit de télécharger je vois pas comment tu as fait pour prendre TASM et ton compilo (et puis le fichier include est très petit, ça prendra une seconde pour le télécharger
moi je vais sur les ordis du CDI uniquement pour aller ici (je dit que j'ai des problème avec ma TI et que je vais poster un truc pour qu'on m'aide comme ça tout le monde est content)...
: "Les ordinateurs doivent être utiliser seulement pour la recherche scolaire sous peine de sanction"
.