[ASM] error, maar geen idee waarom....

Pagina: 1
Acties:
  • 49 views sinds 30-01-2008

  • mcB
  • Registratie: Mei 2002
  • Laatst online: 21-08 10:41
Ik heb een klein stukje Assembly geprobeerd te assembleren:
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PAGE 65,132
TITLE MCB (EXE)
;-----------------------------------
STCKSG  SEGMENT PARA STACK 'Stapel'
        DW 32 DUP(?)
STCKSG ENDS
;-----------------------------------
DATASG      SEGMENT PARA 'Data'
StartUpMsg  DB "MCB's Program$"
Instructions    DB 0Dh,0Ah,"Press Y to continue...$"
ThanksMsg   DB 0Dh,0Ah,"You pressed Y,..!$"
Goodbye     DB 0Dh,0Ah,"Thanks, and have a nice day$"
DATASG ENDS
;-----------------------------------
CODESG  SEGMENT PARA 'Code'
BEGIN   PROC FAR
        ASSUME CS:CODESG,DS:DATASG
        ASSUME SS:STCKSG,ES:DATASG
        PUSH DS
        lea dx,StartUpMsg
        mov ah,9
        int 21h
        lea dx,Instructions
        mov ah,9
        int 21h
        mov ah,00h
        int 16h
        mov bl,al
        mov dl,al
        mov ah,02h
        int 21h
        cmp bl,'Y'
        je Thanks
        cmp bl,'y'
        je Thanks
        jmp TheEnd
Thanks:
        lea dx,ThanksMsg
        mov ah,9
        int 21h
TheEnd:
        lea dx,Goodbye
        mov ah,9
        int 21h
        mov ax,4C00h
        int 21h
BEGIN   ENDP
CODESG  ENDS
        END BEGIN


Hierin krijg de volgende foutmelding:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The Microsoft MACRO Assembler , Version 1.25
 Copyright (C) Microsoft Corp 1981,82,83

 0020  74 00                                    je Thanks
 E r r o r   ---        9:Symbol not defined
 0025  74 00                                    je Thanks
 E r r o r   ---        9:Symbol not defined
 0027  E9 0000 U                                jmp TheEnd
 E r r o r   ---        9:Symbol not defined
?End of file encountered on input file


 E r r o r   ---        85:End of file, no END directive
?End of file encountered on input file


 E r r o r   ---        85:End of file, no END directive

Warning Severe
Errors  Errors
1       1


Het zal wel iets heel simpels zijn,...maar ik ben net begonnen met Assembly en heb er bijna geen ervaring in.
Weet iemand wat er verkeerd is aan bovenstaande code?

Tijdenlang zoeken op internet heeft ook geen oplossende resultaten opgeleverd, dus daarom deze post.

[ Voor 5% gewijzigd door mcB op 03-01-2003 18:08 ]

Strix (Skullflame)


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 26-08 16:13

.oisyn

Moderator Devschuur®

Demotivational Speaker

dubbel: [rml][ masm] assembler errors[/rml]
ga daarin maar verder

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


Dit topic is gesloten.