Add initial source files for Tic-Tac-Toe game implementation

Signed-off-by: Elmar Kresse <elmar.kresse@stud.htwk-leipzig.de>
This commit is contained in:
Elmar Kresse
2025-07-03 15:53:46 +02:00
commit 2a94dfb8d5
10 changed files with 1121 additions and 0 deletions

49
data.asm Normal file
View File

@ -0,0 +1,49 @@
;****************************************
; Elmar Kresse 19-INB-1 (2021)
; data.asm
; file contains variables and constant
; for music, drawing, text and game
;
;****************************************
;Sounds
placeSound DD 4070, 100000 ; Note with pause
placeSoundLength = $ - placeSound
gameOverSound DD 4560, 100000, 4304, 50000, 7239, 100000, 9121, 200000
gameOverSoundLength = $ - gameOverSound
;coordinates and size
x_wert DW ? ;16 Bit variable
y_wert DW ? ;16 Bit variable
d_wert DW ? ;16 Bit variable
spieler DW ? ;current player (0,1)
field DW ? ;selected field (0-8)
balance dw 0 ;balance for check won (3 = 3 in a row)
;Player Arrays
player1 DW 0,0,0,0,0,0,0,0,0
player2 DW 0,0,0,0,0,0,0,0,0
;main menue strings
title_str DB "TIC-TAC-TOE$"
signature_str DB "[Elmar Kresse 19INB]$"
choose1_str DB "1 - Mensch gegen Mensch$"
choose2_str DB "2 - Verlassen$"
cross_win DB "Kreuz hat gewonnen$"
circle_win DB "Kreis hat gewonnen$"
draw DB "Unentschieden$"
;reset ISR var
oldIOFF DW ?
oldISeg DW ?
;timer vector vars
old_timer DW 0 ;original int 1c vector
old_segment DW 0 ;original int 1c segment
timer_ticks DW 0 ;timer_ticks