-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.asm
More file actions
60 lines (48 loc) · 907 Bytes
/
test.asm
File metadata and controls
60 lines (48 loc) · 907 Bytes
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
50
51
52
53
54
55
56
57
58
59
60
INCLUDE BIOS.INC
INCLUDE DOS.INC
_DATA SEGMENT
HelloStr DB "Hello",0dh,0ah,"$"
pHelloStr DW HelloStr
fpHelloStr DD HelloStr
Welcome DB "osFree Macro Library test program v0.xx", 0dh, 0ah, 0dh, 0ah
DB "1) BIOS tests", 0dh, 0ah
DB "2) DOS tests", 0dh, 0ah, 0dh, 0ah
DB "0) Exit", 0dh, 0ah
DB "$"
_DATA ENDS
_STACK SEGMENT STACK
DB 255 DUP (?)
_STACK ENDS
_TEXT SEGMENT
START:
MOV AX, _DATA
MOV DS, AX
ASSUME DS:_DATA
@SetMode 3
@SetMode [tst]
@Cls
@DispStr Welcome
; MASM 5.x style
@DispStr HelloStr
@DispStr pHelloStr
@DispStr fpHelloStr
MOV AX, OFFSET HelloStr
@DispStr AX
MOV DX, OFFSET HelloStr
@DispStr DX
; MASM 6.x style
DISPLAY HelloStr
DISPLAY pHelloStr
DISPLAY fpHelloStr
MOV AX, OFFSET HelloStr
DISPLAY AX
MOV DX, OFFSET HelloStr
DISPLAY DX
; MASM 5.x style
@Exit 0
; MASM 6.x style
END_PROCESS 0
;;;;;;;;;;;;;;;;;
tst db ?
_TEXT ENDS
END START