2015-03-13 23:09:31 +00:00
|
|
|
arch gba.thumb
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
// Relocation hacks
|
|
|
|
//==============================================================================
|
|
|
|
|
2015-04-01 16:26:54 +01:00
|
|
|
// Move the weird box font from 0xFCE6C
|
2015-03-13 23:09:31 +00:00
|
|
|
org $80B3274; dd m2_font_relocate
|
|
|
|
|
2017-03-07 22:12:52 +00:00
|
|
|
|
2015-03-13 23:09:31 +00:00
|
|
|
//==============================================================================
|
|
|
|
// Font hacks
|
|
|
|
//==============================================================================
|
|
|
|
|
|
|
|
org $8AFED84; incbin m2-mainfont1-empty.bin
|
|
|
|
org $8B0F424; incbin m2-mainfont2-empty.bin
|
|
|
|
org $8B13424; incbin m2-mainfont3-empty.bin
|
2015-03-16 04:16:28 +00:00
|
|
|
org $8B088A4; incbin m2-shifted-cursor.bin
|
2015-03-13 23:09:31 +00:00
|
|
|
|
|
|
|
// Greek letters
|
|
|
|
org $8B1B907; db $8B // alpha
|
|
|
|
org $8B1B90A; db $8C // beta
|
|
|
|
org $8B1B90D; db $8D // gamma
|
|
|
|
org $8B1B910; db $8E // sigma
|
|
|
|
org $8B1B913; db $8F // omega
|
|
|
|
|
2017-03-09 06:04:02 +00:00
|
|
|
|
2017-03-07 22:12:52 +00:00
|
|
|
//==============================================================================
|
|
|
|
// VWF hacks
|
|
|
|
//==============================================================================
|
2017-02-25 00:29:19 +00:00
|
|
|
|
2017-03-09 18:16:37 +00:00
|
|
|
// 32- to 16-bit access change for window flags
|
2017-03-09 06:04:02 +00:00
|
|
|
org $80BE16A; strh r2,[r4,#0]
|
|
|
|
org $80BE1FA; strh r2,[r6,#0]
|
|
|
|
org $80BE222; strh r6,[r1,#0]
|
|
|
|
|
2017-03-11 04:43:04 +00:00
|
|
|
//---------------------------------------------------------
|
|
|
|
// C4B2C hacks (Equip window)
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// Start equipment at the 6th tile instead of 5th
|
|
|
|
org $80C4C96; mov r2,#6 // Weapon
|
|
|
|
org $80C4D1C; mov r2,#6 // Body
|
|
|
|
org $80C4DA4; mov r2,#6 // Arms
|
|
|
|
org $80C4E2C; mov r2,#6 // Other
|
|
|
|
|
|
|
|
// Only render (None) if necessary
|
|
|
|
org $80C4C0C
|
|
|
|
bl m2_vwf_entries.c4b2c_skip_nones
|
|
|
|
b $80C4C58
|
|
|
|
|
2017-03-11 04:52:22 +00:00
|
|
|
// Don't render equip symbols
|
|
|
|
org $80C4CD0; nop
|
|
|
|
org $80C4CDE; nop
|
|
|
|
org $80C4D58; nop
|
|
|
|
org $80C4D66; nop
|
|
|
|
org $80C4DE0; nop
|
|
|
|
org $80C4DEE; nop
|
|
|
|
org $80C4E68; nop
|
|
|
|
org $80C4E76; nop
|
|
|
|
|
2017-03-09 18:16:37 +00:00
|
|
|
//---------------------------------------------------------
|
|
|
|
// C980C hacks
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// Custom codes check
|
|
|
|
org $80CA2BC
|
|
|
|
bl m2_vwf_entries.c980c_custom_codes
|
|
|
|
|
|
|
|
// Clear pixel X
|
|
|
|
org $80CA2E6
|
|
|
|
bl m2_vwf_entries.c980c_resetx
|
|
|
|
|
|
|
|
// Welding entry
|
|
|
|
org $80CA448
|
|
|
|
bl m2_vwf_entries.c980c_weld_entry
|
|
|
|
b $80CA46C
|
|
|
|
|
|
|
|
// Disable X coordinate incrementing
|
|
|
|
org $80CA48E
|
|
|
|
nop
|
|
|
|
|
2017-03-10 23:40:47 +00:00
|
|
|
//---------------------------------------------------------
|
|
|
|
// C87D0 hacks
|
|
|
|
//---------------------------------------------------------
|
|
|
|
org $80C87DC
|
|
|
|
bl m2_vwf_entries.c87d0_clear_entry
|
|
|
|
|
2017-03-11 04:41:45 +00:00
|
|
|
//---------------------------------------------------------
|
|
|
|
// C9634 hacks
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
org $80C967E
|
|
|
|
bl m2_vwf_entries.c9634_resetx
|
|
|
|
|
2017-02-25 00:29:19 +00:00
|
|
|
|
2015-03-13 23:09:31 +00:00
|
|
|
//==============================================================================
|
|
|
|
// Data files
|
|
|
|
//==============================================================================
|
|
|
|
|
|
|
|
org $8B2C000
|
|
|
|
|
|
|
|
// Box font relocation
|
|
|
|
m2_font_relocate:
|
|
|
|
incbin m2-font-relocate.bin
|
|
|
|
|
|
|
|
// Co-ordinate table
|
|
|
|
m2_coord_table:
|
|
|
|
incbin m2-coord-table.bin
|
|
|
|
|
|
|
|
// EB fonts
|
|
|
|
m2_font_table:
|
|
|
|
dd m2_font_main
|
|
|
|
dd m2_font_saturn
|
|
|
|
|
|
|
|
m2_font_main:
|
|
|
|
incbin m2-font-main.bin
|
|
|
|
|
|
|
|
m2_font_saturn:
|
|
|
|
incbin m2-font-saturn.bin
|
|
|
|
|
2017-03-09 18:16:25 +00:00
|
|
|
// EB font heights
|
|
|
|
m2_height_table:
|
|
|
|
db $02, $02, $01, $00 // last byte for alignment
|
|
|
|
|
2015-03-13 23:09:31 +00:00
|
|
|
// EB font widths
|
|
|
|
m2_widths_table:
|
|
|
|
dd m2_widths_main
|
|
|
|
dd m2_widths_saturn
|
|
|
|
|
|
|
|
m2_widths_main:
|
|
|
|
incbin m2-widths-main.bin
|
|
|
|
|
|
|
|
m2_widths_saturn:
|
2017-03-07 22:12:52 +00:00
|
|
|
// tbd
|
|
|
|
|
2017-03-09 18:15:42 +00:00
|
|
|
m2_bits_to_nybbles:
|
|
|
|
incbin m2-bits-to-nybbles.bin
|
2015-03-13 23:09:31 +00:00
|
|
|
|
2017-03-10 05:44:39 +00:00
|
|
|
m2_nybbles_to_bits:
|
|
|
|
incbin m2-nybbles-to-bits.bin
|
|
|
|
|
|
|
|
|
2015-03-13 23:09:31 +00:00
|
|
|
//==============================================================================
|
|
|
|
// Misc
|
|
|
|
//==============================================================================
|
|
|
|
|
|
|
|
org $2027FC0
|
|
|
|
m2_custom_wram:
|
|
|
|
|
2017-03-07 22:12:52 +00:00
|
|
|
|
2015-03-13 23:09:31 +00:00
|
|
|
//==============================================================================
|
|
|
|
// Code files
|
|
|
|
//==============================================================================
|
|
|
|
|
|
|
|
org $80FCE6C
|
|
|
|
incsrc m2-vwf.asm
|
2017-03-09 18:16:37 +00:00
|
|
|
incsrc m2-vwf-entries.asm
|
2015-03-13 23:09:31 +00:00
|
|
|
incsrc m2-formatting.asm
|
2015-04-01 16:26:54 +01:00
|
|
|
incsrc m2-customcodes.asm
|