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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
Dialogue_VBLANK_Entrypoint:
.SET_WINDOW_LCDC_E
LD A, $mem_dungeon_flags
BIT 3, A
JR NZ, =.top_bar.enable
.DISABLE_TOP_BAR
LD A, $67
LD $reg_lyc, A
JR =.top_bar.end
.top_bar.enable:
.ENABLE_TOP_BAR
LD A, $0a
LD $reg_lyc, A
.top_bar.end:
LD A, $mem_current_mode
CP $enum_dead_mode
JR NZ, =.update_health_mana.end
LD HL, $9d60
LD A, $mem_bunny_health
CALL =Print_8bit
LD HL, $9d64
LD A, $mem_bunny_mana
CALL =Print_8bit
.update_health_mana.end:
CALL =Dialogue_Arrow_Animation
CALL =Copy_Dialogue_Buffer
CALL =Display_dialogue_cursor
CALL $OAM_DMA_Transfer_routine
; LYC
LD A, $0a
LD $reg_lyc, A
.ENABLE_LYC_INTERRUPT
.RESET_INTERRUPTS
EI
CALL =Pad_Button_Check
CALL =Update_Blinking_Counter
CALL =Update_Animation_Steps
CALL =Open_dialogue_on_dungeon_menu_mode
CALL =Move_dialogue_cursor
CALL =Check_dialogue_action
LD A, $00
LD $mem_oam_buffer_low, A
CALL =Display_Animation_List
CALL =Display_Entities
LD A, $mem_loop_frame_timer
INC A
LD $mem_loop_frame_timer, A
LD A, $mem_sound_flags
BIT 6, A
JR Z, =.Music_Play
LD A, $mem_display_flag
BIT 2, A
JR NZ, =.Sound_Effects_Play
BIT 4, A
JR NZ, =.Sound_Effects_Play
LD A, $mem_sound_flags
RES 6, A
SET 0, A
LD $mem_sound_flags, A
CALL =Start_Music
JR =.Sound_Effects_Play
.Music_Play:
CALL =Play_Music
.Sound_Effects_Play:
CALL =Play_Sound_Effect
.ENABLE_VBLANK_INTERRUPTS
RETI
|