refactoring main and dividing into new files
This commit is contained in:
@@ -25,83 +25,41 @@ org $1DB682
|
|||||||
dw hexto555($7b7b83), hexto555($bbbbbb)
|
dw hexto555($7b7b83), hexto555($bbbbbb)
|
||||||
org $1DB68A
|
org $1DB68A
|
||||||
dw hexto555($a58100), hexto555($dfb93f)
|
dw hexto555($a58100), hexto555($dfb93f)
|
||||||
org $0098AB : db $D8>>1
|
org $0098AB ; menu override
|
||||||
org $00F877 : db Menu_Entry>>0
|
db $D8>>1
|
||||||
org $00F883 : db Menu_Entry>>8
|
org $00F877
|
||||||
org $00F88F : db Menu_Entry>>16
|
db Menu_Entry>>0
|
||||||
org $808B6B : LDX.w #$6040
|
org $00F883
|
||||||
org $8DDFB2 : LDA.l Menu_ItemIndex, X
|
db Menu_Entry>>8
|
||||||
|
org $00F88F
|
||||||
|
db Menu_Entry>>16
|
||||||
|
org $808B6B
|
||||||
|
LDX.w #$6040
|
||||||
|
org $8DDFB2
|
||||||
|
LDA.l Menu_ItemIndex, X
|
||||||
pullpc
|
pullpc
|
||||||
|
|
||||||
org $248000
|
org $248000
|
||||||
Menu_Tilemap:
|
Menu_Tilemap:
|
||||||
incbin "tilemaps/menu_frame.tilemap"
|
incbin "tilemaps/menu_frame.tilemap"
|
||||||
|
|
||||||
Menu_QuestIcons:
|
Menu_QuestIcons:
|
||||||
incbin "tilemaps/quest_icons.tilemap"
|
incbin "tilemaps/quest_icons.tilemap"
|
||||||
|
|
||||||
incsrc "menu_gfx_table.asm"
|
incsrc "menu_gfx_table.asm"
|
||||||
incsrc "menu_draw_items.asm"
|
incsrc "menu_draw_items.asm"
|
||||||
incsrc "menu_text.asm"
|
incsrc "menu_text.asm"
|
||||||
|
incsrc "menu_palette.asm"
|
||||||
Menu_Palette:
|
|
||||||
; 7EC502
|
|
||||||
; first tile blank bc kan said so
|
|
||||||
dw hexto555($814f16)
|
|
||||||
dw hexto555($552903)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($d51d00)
|
|
||||||
dw hexto555($f9f9f9)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($d1a452)
|
|
||||||
dw hexto555($f9f9f9)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($5987e0)
|
|
||||||
dw hexto555($f9f9f9)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($7b7b83)
|
|
||||||
dw hexto555($bbbbbb)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($a58100)
|
|
||||||
dw hexto555($dfb93f)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($814f16)
|
|
||||||
dw hexto555($013e6e)
|
|
||||||
dw hexto555($000000)
|
|
||||||
dw hexto555($000000) ; transparent
|
|
||||||
dw hexto555($15cd34)
|
|
||||||
dw hexto555($f9f9f9)
|
|
||||||
dw hexto555($000000)
|
|
||||||
|
|
||||||
Menu_Entry:
|
Menu_Entry:
|
||||||
PHB : PHK : PLB
|
PHB : PHK : PLB
|
||||||
LDA.w $0200
|
LDA.w $0200
|
||||||
ASL
|
ASL
|
||||||
TAX
|
TAX
|
||||||
|
|
||||||
JSR (.vectors,X)
|
JSR (.vectors,X)
|
||||||
|
|
||||||
SEP #$20
|
SEP #$20
|
||||||
PLB
|
PLB
|
||||||
RTL
|
RTL
|
||||||
|
incsrc "menu_vectors.asm"
|
||||||
.vectors
|
|
||||||
dw Menu_InitGraphics ; 00
|
|
||||||
dw Menu_UploadRight ; 01
|
|
||||||
dw Menu_UploadLeft ; 02
|
|
||||||
dw Menu_ScrollDown ; 03
|
|
||||||
dw Menu_ItemScreen ; 04
|
|
||||||
dw Menu_ScrollTo ; 05
|
|
||||||
dw Menu_StatsScreen ; 06
|
|
||||||
dw Menu_ScrollFrom ; 07
|
|
||||||
dw Menu_ScrollUp ; 08
|
|
||||||
dw Menu_Exit ; 09
|
|
||||||
|
|
||||||
; ===================================================================================
|
; ===================================================================================
|
||||||
; 00 MENU INIT GRAPHICS
|
; 00 MENU INIT GRAPHICS
|
||||||
@@ -155,7 +113,6 @@ Menu_UploadLeft:
|
|||||||
JSR DrawYItems
|
JSR DrawYItems
|
||||||
JSR Menu_DrawSelect
|
JSR Menu_DrawSelect
|
||||||
JSR Menu_DrawItemName
|
JSR Menu_DrawItemName
|
||||||
;;JSR Debug_Entry
|
|
||||||
|
|
||||||
; INSERT PALETTE -------
|
; INSERT PALETTE -------
|
||||||
LDX.w #$3E
|
LDX.w #$3E
|
||||||
@@ -174,14 +131,11 @@ Menu_UploadLeft:
|
|||||||
}
|
}
|
||||||
|
|
||||||
; ===================================================================================
|
; ===================================================================================
|
||||||
; dw 0, -5, -10, -15, -20, -25, -40, -60, -75, -90, -100, -125, -135, -150, -175, -180, -190, -200, -210, -215, -220, -225, -230, -232, -238
|
; 03 MENU SCROLL DOWN
|
||||||
; dw 0, -5, -10, -15, -20, -40, -60, -75, -90, -100, -125, -150, -175, -190, -200, -210, -220, -225, -230, -232, -250
|
|
||||||
Menu_Scroll:
|
Menu_Scroll:
|
||||||
dw 0, -3, -5, -7, -10, -12, -15, -20, -28, -40, -50, -60, -75, -90, -100, -125, -150, -175, -190, -200, -210, -220, -225, -230, -232, -234, -238
|
dw 0, -3, -5, -7, -10, -12, -15, -20, -28, -40, -50, -60, -75, -90, -100, -125, -150, -175, -190, -200, -210, -220, -225, -230, -232, -234, -238
|
||||||
|
|
||||||
; ===================================================================================
|
|
||||||
; 03 MENU SCROLL DOWN
|
|
||||||
|
|
||||||
Menu_ScrollDown:
|
Menu_ScrollDown:
|
||||||
{
|
{
|
||||||
LDA.b #$11 : STA.w $012F
|
LDA.b #$11 : STA.w $012F
|
||||||
|
|||||||
32
Menu/menu_palette.asm
Normal file
32
Menu/menu_palette.asm
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
Menu_Palette:
|
||||||
|
dw hexto555($814f16)
|
||||||
|
dw hexto555($552903)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($d51d00)
|
||||||
|
dw hexto555($f9f9f9)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($d1a452)
|
||||||
|
dw hexto555($f9f9f9)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($5987e0)
|
||||||
|
dw hexto555($f9f9f9)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($7b7b83)
|
||||||
|
dw hexto555($bbbbbb)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($a58100)
|
||||||
|
dw hexto555($dfb93f)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($814f16)
|
||||||
|
dw hexto555($013e6e)
|
||||||
|
dw hexto555($000000)
|
||||||
|
dw hexto555($000000) ; transparent
|
||||||
|
dw hexto555($15cd34)
|
||||||
|
dw hexto555($f9f9f9)
|
||||||
|
dw hexto555($000000)
|
||||||
11
Menu/menu_vectors.asm
Normal file
11
Menu/menu_vectors.asm
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
.vectors
|
||||||
|
dw Menu_InitGraphics ; 00
|
||||||
|
dw Menu_UploadRight ; 01
|
||||||
|
dw Menu_UploadLeft ; 02
|
||||||
|
dw Menu_ScrollDown ; 03
|
||||||
|
dw Menu_ItemScreen ; 04
|
||||||
|
dw Menu_ScrollTo ; 05
|
||||||
|
dw Menu_StatsScreen ; 06
|
||||||
|
dw Menu_ScrollFrom ; 07
|
||||||
|
dw Menu_ScrollUp ; 08
|
||||||
|
dw Menu_Exit ; 09
|
||||||
Reference in New Issue
Block a user