txt_memoryerror: db 0x0A,"Memory allocation error!",0x0D,0x0A,0
txt_fopenerror: db 0x0A,"Cannot open file: ",0
txt_fcreateerror: db 0x0A,"Cannot create file: ",0
txt_freaderror: db 0x0A,"Cannot read file: ",0
txt_fwriteerror: db 0x0A,"Cannot write file: ",0
txt_dircherror: db 0x0A,"Cannot change directory: ",0
txt_nl: db 0x0D,0x0A,0
;-----memory------
winpage0: db 0 ;0x0000-0x3fff
script_buf1:
winpage1: db 0 ;0x4000-0x7fff
script_buf2:
winpage2: db 0 ;0x8000-0xbfff
winpage3: db 0 ;0xc000-0xffff
music_buf: db 0
load_buf1: db 0 ;13
load_buf2: db 0 ;24
mem_buf1: db 0 ;13
mem_buf2: db 0 ;24
scr_buf1: db 0 ;13 ;additional buffers. (reserved) !!! load sprites here !!!
scr_buf2: db 0 ;24 ;additional buffers. (reserved)
src_buf1: db 0 ;datasource for screen output
src_buf2: db 0
bank1: db 0 ;current page for 4000
bank2: db 0 ;current page for 8000
bank3: db 0 ;current page for c000
tbank1 db 0 ;temp page store for 4000
tbank2 db 0 ;temp page store for 8000
tbank3: db 0 ;temp page store for c000
;----setup---
res_path: db "Saku_D",0
language: db 0 ;0 eng | 1 rus
gfx_mode: db 0 ;0 DDp | 1 16c | 2 ATM
mus_mode: db 0 ;0 AY | 1 s98
;------intro-----
intro_pic: db "sp_001",0
intro_mus: db 10
into_text: db "OP_01.OVL",0
menu_pic db "saku_p",0
menu_pic2 db "saku_t",0
gallery_file db "CDATA.000",0
badge_pic db "hanko",0
ingame_border db "frefre",0
SAVETEMPL db "SAKDATA0.000",0
SAVETEMPL_N equ SAVETEMPL+7
endingovl db "ENDING0.OVL",0
FSTOVL db "CS101.OVL",0
OVL ds 13,0
LOADED ds 13,0
;---palette----
setpalflag: db 0
stdpal: STANDARDPAL
pal: ds 32,0xff
mempal: ds 32,0xff
temppal ds 32,0
whitepal ds 32,0
blackpal ds 32,0xff
;-------keyboard
keyreg db 0
keymatrixbc dw 0
keymatrixde dw 0
keymatrixhl dw 0
keymatrixix dw 0
lastvar
lastkey db 0
lastspace dw 0
lastchar db 0
;------------------------------
CORDS dw 0
g_curpos dw 0 ; т√сЁрээ√щ яєэъЄ ьхэ■ (ёьх∙хэшх юЄ 0)
g_atpos dw 0 ; ъююЁфшэрЄ√ фы т√тюфр ьхэ■ y x
;------------------------------
DELAY db 0
;------------------------------
mus_path1:
db "mus/",0
mus_path2:
db "/mt_00.",0
gfx_path1:
db "gfx/",0
gfx_ext db ".16c",0
ovl_path1:
db "ovl/",0
op_path2:
db "op..",0
;------------------------------
characters_current db 0 ;current page
_current_op db 0 ; selected girl
_op_rslt db 0
_op_slct db 0x33,0x34,0x35,0x36,0x38,0x39,0x3a,0x37
_op_endings:
dw _op01_ending ;reiko
dw _op02_ending ;kiyomi
dw _op03_ending ;mio
dw _op04_ending ;shoko
dw _op05_ending ;aki
dw _op06_ending ;seija
dw _op07_ending ;meimi
dw _op08_ending ;ruri
_op01_ending db "CSC03_A.OVL",0 ;reiko
_op02_ending db "CSC03_B.OVL",0;kiyomi
_op03_ending db "CSC03_C.OVL",0;mio
_op04_ending db "CSE_D_1.OVL",0;shoko
_op05_ending db "CSE_F_1.OVL",0;aki
_op06_ending db "CSE_G_1.OVL",0;seija
_op07_ending db "CSE_H_1.OVL",0;meimi
_op08_ending db "CSE_E_1.OVL",0;ruri
;---------
;0x33 = 33 reiko;
;0x34 = 33 kiyomi
;0x35 = 33 mio
;0x36 = 33 shoko
;0x37 = 33 ruri
;0x38 = 33 aki
;0x39 = 33 seia
;0x3a = 33 meimi
_op_end_slct:
db 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a;
_op_gfx_ending:
dw _reiko_ending_gfx
dw _kiyomi_ending_gfx
dw _mio_ending_gfx
dw _shoko_ending_gfx
dw _ruri_ending_gfx
dw _aki_ending_gfx
dw _seija_ending_gfx
dw _meimi_ending_gfx
_reiko_ending_gfx db "ae_193",0
_kiyomi_ending_gfx db "ae_194",0
_mio_ending_gfx db "ae_195",0
_shoko_ending_gfx db "ae_197",0
_ruri_ending_gfx db "ae_191",0
_aki_ending_gfx db "ae_192",0
_seija_ending_gfx db "ae_196",0
_meimi_ending_gfx db "ae_198",0
;'''''''''''''''''''''''''''''''''''''''
;ZONEADR DB 0, 0, 0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6
; DB 6, 7, 7, 8, 8, 9, 9, 9, 10,10,11,11,12,12,12,13
; DB 13,14,14,15,15,15,16,16,17,17,18,18,18,19,19,20
; DB 20,21,21,21,22,22,23,23,24,24,24,25
;------------
MENUCURHELPER:
dw 0xda44
dw 0xda4c
dw 0xda54
dw 0xda5c
dw 0xdb84
dw 0xdb8c
dw 0xdb94
dw 0xdb9c
dw 0xdcc4
dw 0xdccc
dw 0xdcd4
dw 0xdcdc
dw 0xde04
dw 0xde0c
dw 0xde14
dw 0xde1c