Skip to content

Commit

Permalink
Move the 'menutxt' macro the s2.macros.asm
Browse files Browse the repository at this point in the history
KiS2 removes the code that this macro is in, requiring that it be
moved somewhere else.
  • Loading branch information
Clownacy committed May 6, 2022
1 parent 4c49707 commit b9d1115
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions s2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11280,10 +11280,6 @@ dword_8732:
charset ' ',0

; Menu text
menutxt macro text
dc.b strlen(text)-1
dc.b text
endm
Text2P_EmeraldHill: menutxt "EMERALD HILL" ; byte_874A:
rev02even
Text2P_MysticCave: menutxt " MYSTIC CAVE" ; byte_8757:
Expand Down
6 changes: 6 additions & 0 deletions s2.macros.asm
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,9 @@ planeLocH40 function col,line,(($80 * line) + (2 * col))

; function to calculate the location of a tile in plane mappings with a width of 128 cells
planeLocH80 function col,line,(($100 * line) + (2 * col))

; macro formatting text for the game's menus
menutxt macro text
dc.b strlen(text)-1
dc.b text
endm

0 comments on commit b9d1115

Please sign in to comment.