-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAIN.ASM
35 lines (26 loc) · 879 Bytes
/
MAIN.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
; ==============================================================================
; Entry point of program
; ==============================================================================
.MODEL large ; one data and one code segment, stack and data segment are grouped
.STACK 1024 ; stack, 1024 bytes
; --- INCLUDES -----------------------------------------------------------------
include VIDEO.INC
include RAND.INC
include KEYB.INC
include DRAWING.INC
include GAME.INC
; --- DATA SEGMENT -------------------------------------------------------------
.DATA
; --- CODE SEGMENT -------------------------------------------------------------
.CODE
main:
call initialize
call initDrawing
mov ah, 10
mov al, 10
call drawSnake
;call drawHead
mov ax, 4c00h ; exit to DOS
int 21h
; _------------------------------- END OF CODE ---------------------------------
END main