[Reduction] [th03/th04/th05] game_exit_to_dos

This commit is contained in:
wintiger0222 2019-11-19 14:26:47 +00:00 committed by nmlgc
parent 34b7b61964
commit 0009c3c161
6 changed files with 18 additions and 52 deletions

11
th02/exit_dos.asm Normal file
View File

@ -0,0 +1,11 @@
public GAME_EXIT_TO_DOS
game_exit_to_dos proc far
push bp
mov bp, sp
nopcall game_exit
call key_beep_on
call text_systemline_show
call text_cursor_show
pop bp
retf
game_exit_to_dos endp

View File

@ -1 +1,2 @@
void game_exit(void);
void game_exit_to_dos(void);

View File

@ -31,7 +31,6 @@ extern char extra_unlocked;
extern unsigned int score_duration;
int game_init_op(void);
void game_exit_to_dos(void);
void title_flash(void);
void pascal score_menu(void);

View File

@ -1603,7 +1603,7 @@ loc_A4FE:
call sub_99C3
call gaiji_restore
call text_clear
call sub_BEB8
call game_exit_to_dos
call respal_free
pop bp
retf
@ -4304,21 +4304,7 @@ op_02_TEXT segment word public 'CODE' use16
;org 8
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
; =============== S U B R O U T I N E =======================================
; Attributes: bp-based frame
sub_BEB8 proc far
push bp
mov bp, sp
nopcall game_exit
call key_beep_on
call text_systemline_show
call text_cursor_show
pop bp
retf
sub_BEB8 endp
include th02/exit_dos.asm
include th01/hardware/vram_planes_set.asm
include th02/snd/detmode.asm
include th02/snd/pmd_res.asm

View File

@ -1557,7 +1557,7 @@ loc_B47B:
call sub_A873
call gaiji_restore
call text_clear
call sub_DDB1
call game_exit_to_dos
call respal_free
pop si
pop bp
@ -5424,22 +5424,7 @@ loc_DDA8:
retf 4
sub_DD80 endp
; =============== S U B R O U T I N E =======================================
; Attributes: bp-based frame
sub_DDB1 proc far
push bp
mov bp, sp
nopcall game_exit
call key_beep_on
call text_systemline_show
call text_cursor_show
pop bp
retf
sub_DDB1 endp
include th02/exit_dos.asm
include th04/snd/load.asm
; =============== S U B R O U T I N E =======================================

View File

@ -1498,7 +1498,7 @@ loc_B058:
call sub_BC83
call sub_BB91
call text_clear
call sub_D41C
call game_exit_to_dos
call respal_free
pop si
pop bp
@ -5013,23 +5013,7 @@ include th03/formats/hfliplut.asm
include th04/snd/pmd_res.asm
include th02/snd/mmd_res.asm
include th04/snd/detmodes.asm
; =============== S U B R O U T I N E =======================================
; Attributes: bp-based frame
sub_D41C proc far
push bp
mov bp, sp
nopcall game_exit
call key_beep_on
call text_systemline_show
call text_cursor_show
pop bp
retf
sub_D41C endp
; ---------------------------------------------------------------------------
include th02/exit_dos.asm
db 0
; =============== S U B R O U T I N E =======================================