Alloc the buffer when the allocation space is reset
This commit is contained in:
parent
78a0b1ded9
commit
fd3c822774
|
@ -23,7 +23,7 @@
|
|||
#define WINDOW_HEADER_Y 0x11
|
||||
#define WINDOW_HEADER_TILE (WINDOW_HEADER_X + (WINDOW_HEADER_Y * 32))
|
||||
|
||||
#define OVERWORLD_BUFFER 0x200F200
|
||||
#define OVERWORLD_BUFFER 0x2028008
|
||||
|
||||
#define CUSTOMCC_SET_X 0x5F
|
||||
#define CUSTOMCC_ADD_X 0x60
|
||||
|
|
|
@ -51,6 +51,12 @@ mov r3,6
|
|||
|
||||
.org 0x800027A :: bl m12_intro_screen
|
||||
|
||||
//---------------------------------------------------------
|
||||
// Allocate the printing buffer when the content previously allocated is reset
|
||||
//---------------------------------------------------------
|
||||
|
||||
.org 0x8005B80 :: bl _05b80_alloc_buffer
|
||||
|
||||
//---------------------------------------------------------
|
||||
// C0A5C hacks (status window)
|
||||
//---------------------------------------------------------
|
||||
|
@ -2053,8 +2059,9 @@ disclaimer_map:
|
|||
// Existing subroutines/data
|
||||
//==============================================================================
|
||||
|
||||
.definelabel buffer_size ,0x0000A80
|
||||
.definelabel buffer_subtractor ,0x0000800
|
||||
.definelabel overworld_buffer ,0x200F200
|
||||
.definelabel overworld_buffer ,0x2028008
|
||||
.definelabel m2_hall_line_size ,0x3000374
|
||||
.definelabel m2_ness_data ,0x3001D54
|
||||
.definelabel m2_ness_name ,0x3001F10
|
||||
|
|
|
@ -3302,6 +3302,19 @@ bl store_pixels_overworld
|
|||
@@end:
|
||||
pop {pc}
|
||||
|
||||
//==============================================================================
|
||||
//Allocs the printing buffer. The buffer currently is 0xA80 bytes long
|
||||
_05b80_alloc_buffer:
|
||||
push {lr}
|
||||
|
||||
ldr r0,=#buffer_size
|
||||
bl 0x8005B9C
|
||||
|
||||
ldr r0,=#0x3002A4C
|
||||
str r4,[r0,#0]
|
||||
pop {pc}
|
||||
|
||||
|
||||
//==============================================================================
|
||||
//Loads the vram into the buffer, it's called each time there is only the main file_select window active (a good way to set the whole thing up)
|
||||
load_pixels_overworld:
|
||||
|
|
Loading…
Reference in New Issue