10 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
PRINT_N MACRO TEXT
PUSH AX
PUSH DX
MOV DX, OFFSET TEXT
MOV AH, 9H
INT 21H
MOV AH, 02h
MOV DL, 10
INT 21H
POP DX
POP AX
ENDM
1
2
3
4
5
6
7
8
9
10
11
12
13
TITLE Hallo
INCLUDE macro.bib
IDEAL
MODEL SMALL
STACK 100
DATASEG
TEXT db 'Hi perl-community$'
CODESEG
start:
STARTUPCODE
PRINT_N TEXT
EXITCODE
END start
PRINT_N db 'Hello ...$'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TITLE Hallo
INCLUDE macro.bib
IDEAL
MODEL SMALL
STACK 100
DATASEG  
;
TEXT db 'Ende ...$'
foo db 'Testausgabe',10,13,0
CODESEG  
;
start:
STARTUPCODE
LEA BX, [foo]
OUTPUT: CMP [BYTE BX], 0
JE ENDE
MOV AH, 0EH
MOV AL, [BX]
INT 10h
INC BX
JMP OUTPUT
ENDE: PRINT_N TEXT
EXITCODE
END start
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
TITLE Hallo
INCLUDE macro.bib
IDEAL
MODEL SMALL
STACK 100
DATASEG  
;
TEXT db 'Ende ...$'
foo db 'Testausgabe',10,13,0
CODESEG  
;
start:
STARTUPCODE
MOV BP, OFFSET foo
MOV CX, 14
MOV DL, 1
MOV DH, 1
MOV BH, 1
MOV AL, 3
MOV AH, 13H
INT 10H
LEA BX, [foo]
OUTPUT: CMP [BYTE BX], 0
JE ENDE
MOV AH, 0EH
MOV AL, [BX]
INT 10h
INC BX
JMP OUTPUT
ENDE: PRINT_N TEXT
EXITCODE
END start
10 Einträge, 1 Seite |