Skip to content

Commit 478c13b

Browse files
committed
less flicker reset works
1 parent 6e64de1 commit 478c13b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

disassembler.asm

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ org 0x8000
1212
%define KEYBOARD_IVT 0x0024
1313
%define RTC_IVT 0x0070 ; 0x1c interrupt * 4
1414

15-
1615
pusha
1716

1817
xor ax, ax
@@ -71,6 +70,13 @@ mov es, word [GRAPHIC_MEM_A]
7170
mov ax, 0
7271
call check_level_n_upgrade
7372

73+
mov word bp, begin_msg
74+
mov cx, begin_msg_len
75+
call write_string
76+
MOV CX, 50 ;0FH
77+
MOV DX, FRAME_DELAY
78+
mov ax, 0x8600
79+
int 0x15
7480

7581
; some_loop:
7682
; hlt
@@ -741,10 +747,15 @@ pusha
741747
; no code execution after this
742748
; bss and data segments
743749
exit:
750+
begin_msg: db "YOU READY?!"
751+
begin_msg_len equ $-begin_msg
752+
744753
rekd_msg: db "YOU GOT REKD"
745754
rekd_msg_len equ $-rekd_msg
755+
746756
won_game: db "YOU DID THE IMPOSSIBLE! YOU WON!!!"
747757
won_game_len equ $-won_game
758+
748759
lvlup_msg: db "LEVEL UP!"
749760
lvlup_msg_len equ $-lvlup_msg
750761

@@ -799,5 +810,4 @@ iend
799810

800811
enemies: times N_ENEMIES dw 256
801812

802-
803813
times 512*20 - ($-$$) db 0

0 commit comments

Comments
 (0)