util functions mostly for the oracle menu

This commit is contained in:
Justin Scofield
2022-05-30 23:14:04 -04:00
parent 5ec8190a69
commit 07ff5f3ec3
2 changed files with 13 additions and 0 deletions

2
Util/functions.asm Normal file
View File

@@ -0,0 +1,2 @@
function hexto555(h) = ((((h&$FF)/8)<<10)|(((h>>8&$FF)/8)<<5)|(((h>>16&$FF)/8)<<0))
function menu_offset(y,x) = (y*64)+(x*2)

11
Util/ram.asm Normal file
View File

@@ -0,0 +1,11 @@
org $008000
base $7E0730
MenuScrollLevelV: skip 1
MenuScrollLevelH: skip 1
MenuScrollHDirection: skip 2
MenuItemValueSpoof: skip 2
MusicNoteValue: skip 2
OverworldLocationPointer: skip 2
base off