core_file = "rse"

RAM_WINDOWS = 0x2020004
RAM_SPRITES = 0x2020630
RAM_SPRITE_ORDER = 0x20217f4
RAM_CURRENT_HEALTH = 0x20240ac
RAM_MAX_HEALTH = 0x20240b0
RAM_CURRENT_ENEMY_HEALTH = RAM_CURRENT_HEALTH +0x58
RAM_MAX_ENEMY_HEALTH = RAM_MAX_HEALTH +0x58
RAM_BERRY_BLENDER = 0x20322a4
RAM_MAP_HEADER_POINTER = 0x2037318
RAM_MAP_WIDTH = 0x0
RAM_MAP_HEIGHT = 0x4
RAM_MAP_PRIMARY_TILESET = 0x10
RAM_MAP_SECONDARY_TILESET = 0x14
RAM_MAP_EVENT_HEADER_POINTER = RAM_MAP_HEADER_POINTER+4
RAM_MAP_CONNECTION_HEADER_POINTER = RAM_MAP_HEADER_POINTER+12
RAM_MAP_LAYOUT_TYPE = RAM_MAP_HEADER_POINTER+18
RAM_LIVE_OBJECTS = 0x2037350
RAM_SPECIAL_FLAGS = 0x20375fc
RAM_NAMING_DATA_POINTER = 0x2039f94
RAM_ROTATING_GATE_PUZZLE = 0x203a044
RAM_ROTATING_GATE_PUZZLE_COUNT = RAM_ROTATING_GATE_PUZZLE +4
RAM_FLY_MAP_POINTER = 0x203a148
RAM_FLY_MAP_TYPE = 10
RAM_MENU = 0x203cd90
RAM_POKENAV_RESOURCES = 0x203cf40
RAM_SUBSTRUCT_PTRS = 0x10
RAM_BGS = 0x30008e0
RAM_BG_TILEMAPS = 0x30008f8
RAM_CALLBACK1 = 0x30022c0
RAM_CALLBACK2 = 0x30022c4
RAM_IN_BATTLE = 0x30026F9
RAM_SAVEBLOCK1_POINTER = 0x3005d8c
RAM_PLAYER_X = 0x0
RAM_PLAYER_Y = 0x2
RAM_MAP_GROUP = 0x4
RAM_MAP_NUMBER = 0x5
RAM_DYNAMIC_WARP = 0x14
RAM_MAP_OBJECTS = 0xc70
RAM_FLAGS = 0x1270
RAM_VARS = 0x139c
RAM_SAVEBLOCK2_POINTER = 0x3005d90
RAM_PLAYER_NAME = 0x0
RAM_FRONTIER_CHALLENGE_NUM = 0xcb2
RAM_MAP_LAYOUT = 0x3005dc0
RAM_MAP_BLOCKS = 0x8

-- functions
ROM_FREE = 0x8000b60
ROM_BLIT_BITMAP_RECT_TO_WINDOW = 0x80039dc
ROM_FILL_WINDOW_PIXEL_RECT = 0x8003b64
ROM_COPY_TO_WINDOW_PIXEL_BUFFER = 0x8003bf0
ROM_FILL_WINDOW_PIXEL_BUFFER = 0x8003c48
ROM_SCROLL_WINDOW = 0x8003c94
ROM_RENDER_TEXT = 0x800587c
ROM_MAINMENU_SELECT = 0x80307a4
ROM_BATTLE_YESNO = 0x8056b9c
ROM_TARGET_SELECTION1 = 0x8057a90
ROM_TARGET_SELECTION2 = ROM_TARGET_SELECTION1 +0x120
ROM_BATTLE_MOVE_SELECTION = 0x8059c28
ROM_ACTION_SELECTION = 0x8059cb4
ROM_STATUS_INTO_HEALTHBOX = 0x8074484
ROM_BERRY_BLENDER_INPUT = 0x808175a
ROM_CB_OVERWORLD = 0x8085e05
ROM_CB_OVERWORLD_BASIC = 0x8085e5d
ROM_FOOTSTEP_FUNCTION = 0x80888b8
ROM_FISHING_GOT_BITE = 0x808cb6c
ROM_OPTION_MENU_ITEM = 0x80bab38
ROM_SUBOPTION_MENU_ITEM = 0x80babce
ROM_DRAW_TEXT_AND_BUFFER_TILES = 0x80c6e40
ROM_SHOW_DEPOSIT_BOXES = 0x80c7ae8
ROM_CHOOSE_DEPOSIT_BOX_RIGHT = 0x80c7bac
ROM_CHOOSE_DEPOSIT_BOX_LEFT = ROM_CHOOSE_DEPOSIT_BOX_RIGHT + 0x34
ROM_PC_SHOW_POKEMON_DATA = 0x80ca256
ROM_MAPNAME_POPUP = 0x80d48ee
ROM_SELECT_HOW_MANY = 0x81220be
ROM_SET_FLY_MAP_LOCATION = 0x8124dac
ROM_SET_WALL_CLOCK = 0x81350e0
ROM_SELECT_POKEBLOCK = 0x8136110
ROM_SELECT_POKEBLOCK_POKEMON = 0x8167c9e
ROM_CHECK_BERRY_TAG = 0x8177d94
ROM_CHECK_ANOTHER_BERRY_TAG = 0x8178920
ROM_DRAW_MENU_CURSOR = 0x81984be
ROM_DRAW_GRID_CURSOR = 0x8199118
ROM_DRAW_LIST_CURSOR = 0x81aea5a
ROM_PKMN_SELECTION = 0x81b0fcc
ROM_STATUS_IN_SUMMARY = 0x81b6160
ROM_RENDER_BRAILLE_TEXT = 0x81ba304
ROM_COPY_TYPE_ICONS = 0x81bfff2
ROM_PRINT_POKENAV_DESCRIPTION = 0x81ca766
ROM_CB_POKENAV_REGION_MAP = 0x81cc555
ROM_SPECIAL_VARS = 0x81dba0c
ROM_CPU_FAST_SET = 0x82e7080
ROM_CPU_SET = 0x82e7084
ROM_BERRY_BLENDER_RANGE = 0x83399e7
ROM_MAP_GROUPS = 0x8486578
ROM_LETTER_LIST = 0x858be40
ROM_PAGE_COLUMNS = ROM_LETTER_LIST +0x60
ROM_LETTER_PAGES = ROM_LETTER_LIST +0x81
ROM_LIST_CURSOR_TILE = 0x85e8d60
ROM_ROTATING_GATES_ROTATION_INFO = 0x8591ff8
ROM_ROTATING_GATES_ARM_POSITIONS = ROM_ROTATING_GATES_ROTATION_INFO +0x40
ROM_ROTATING_GATES_ARM_LAYOUT = ROM_ROTATING_GATES_ROTATION_INFO +0x80

-- window templates
WINDOW_BATTLE = 0x831aa18
WINDOW_BATTLE_ARENA = 0x831aae0
WINDOW_OPTIONS = 0x855c680
WINDOW_KEYBOARD = 0x858be10
WINDOW_FLY_MAP = 0x85a1ef0
WINDOW_PC_BAG_WITHDRAW = 0x85dff5c
WINDOW_MAP = 0x85e5070
WINDOW_BAG = 0x8614174
WINDOW_BAG_PYRAMID = 0x861f328

-- misc
OPTION_WIDTH = 104

