-
Notifications
You must be signed in to change notification settings - Fork 3
/
Space.asm
58 lines (45 loc) · 1.34 KB
/
Space.asm
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
;
; _____ _____ _
; / ____| |_ _| | |
; | (___ _ __ __ _ ___ ___ | | _ ____ ____ _ __| | ___ _ __ ___
; \___ \| '_ \ / _` |/ __/ _ \ | | | '_ \ \ / / _` |/ _` |/ _ \ '__/ __|
; ____) | |_) | (_| | (_| __/ _| |_| | | \ V / (_| | (_| | __/ | \__ \
; |_____/| .__/ \__,_|\___\___| |_____|_| |_|\_/ \__,_|\__,_|\___|_| |___/
; | |
; ___ |_| ___ ___
; | _ )_ _ | _ ) ___ _ _ | _ \__ _ ___
; | _ \ || | | _ \/ -_) ' \ | / _` |_ /
; |___/\_, | |___/\___|_||_| |_|_\__,_/__|
; |__/
;
; Space Invaders by Ben Raz.
;
IDEAL
MODEL small
STACK 100h
P386
CODESEG
include "FileUse.asm"
include "Game.asm"
include "Print.asm"
include "Menus.asm"
start:
mov ax, @data
mov ds, ax
;Check if debug mode is enabled ( -dbg flag)
call CheckDebug
cmp ax, 0
je setVideoMode
mov [byte ptr DebugBool], 1 ;set debug as true
setVideoMode:
;Set video mode:
mov ax, 13h
int 10h
call PrintMainMenu
;Set text mode back:
mov ax, 03h
int 10h
exit:
mov ax, 4c00h
int 21h
END start