core_file = "frlg"

RAM_WINDOWS = 0x20204b4
RAM_SPRITES = 0x202063c
RAM_SPRITE_ORDER = 0x2021800
RAM_CURRENT_HEALTH = 0x2023c0c
RAM_MAX_HEALTH = 0x2023c10
RAM_CURRENT_ENEMY_HEALTH = RAM_CURRENT_HEALTH +0x58
RAM_MAX_ENEMY_HEALTH = RAM_MAX_HEALTH +0x58
RAM_MAP_HEADER_POINTER = 0x2036dfc
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 = 0x2036e38
RAM_SPECIAL_FLAGS = 0x20370e0
RAM_NAMING_DATA_POINTER = 0x203998c
RAM_MENU = 0x203ade4
RAM_SELECTED_MOVE = 0x203b16d
RAM_BGS = 0x30008d0
RAM_BG_TILEMAPS = 0x30008e8
RAM_CALLBACK1 = 0x30030f0
RAM_CALLBACK2 = 0x30030f4
RAM_IN_BATTLE = 0x3003529
RAM_SAVEBLOCK1_POINTER = 0x3005008
RAM_PLAYER_X = 0x0
RAM_PLAYER_Y = 0x2
RAM_MAP_GROUP = 0x4
RAM_MAP_NUMBER = 0x5
RAM_DYNAMIC_WARP = 0x14
RAM_MAP_OBJECTS = 0x8e0
RAM_FLAGS = 0xee0
RAM_VARS = 0x1000
RAM_RIVAL_NAME = 0x3a4c
RAM_SAVEBLOCK2_POINTER = 0x300500c
RAM_PLAYER_NAME = 0x0
RAM_MAP_LAYOUT = 0x3005040
RAM_MAP_BLOCKS = 0x8

-- functions
ROM_FREE = 0x8002bc4
ROM_BLIT_BITMAP_RECT_TO_WINDOW = 0x80041f0
ROM_FILL_WINDOW_PIXEL_RECT = 0x8004378
ROM_COPY_TO_WINDOW_PIXEL_BUFFER = 0x8004404
ROM_FILL_WINDOW_PIXEL_BUFFER = 0x800445c
ROM_SCROLL_WINDOW = 0x80044a8
ROM_RENDER_TEXT = 0x8005844
ROM_MAINMENU_SELECT = 0x800ccee
ROM_BATTLE_YESNO = 0x802dce2
ROM_TARGET_SELECTION1 = 0x802e8a4
ROM_TARGET_SELECTION2 = ROM_TARGET_SELECTION1 +0x120
ROM_BATTLE_MOVE_SELECTION = 0x80309cc
ROM_ACTION_SELECTION = 0x8030a54
ROM_STATUS_INTO_HEALTHBOX = 0x80499c0
ROM_CB_OVERWORLD = 0x8056535
ROM_CB_OVERWORLD_BASIC = 0x80565b5
ROM_FOOTSTEP_FUNCTION = 0x805956c
ROM_SUBOPTION_MENU_ITEM = 0x8088af6
ROM_OPTION_MENU_ITEM = 0x8088dfa
ROM_DRAW_TEXT_AND_BUFFER_TILES = 0x808bf74
ROM_SHOW_DEPOSIT_BOXES = 0x808cb76
ROM_CHOOSE_DEPOSIT_BOX_RIGHT = 0x808cc3c
ROM_CHOOSE_DEPOSIT_BOX_LEFT = ROM_CHOOSE_DEPOSIT_BOX_RIGHT + 0x34
ROM_PC_SHOW_POKEMON_DATA = 0x808f1f8
ROM_MAPNAME_POPUP = 0x809822a
ROM_SELECT_HOW_MANY = 0x80bf8d2
ROM_DRAW_LIST_CURSOR = 0x81074ce
ROM_BLIT_MOVE_INFO_ICON = 0x8107d68
ROM_DRAW_MENU_CURSOR = 0x810f8ea
ROM_DRAW_GRID_CURSOR = 0x8110434
ROM_QUESTLOG_CLEAN = 0x8111d90
ROM_PKMN_SELECTION = 0x811f818
ROM_STATUS_IN_SUMMARY = 0x8122980
ROM_TM_CASE_SELECTION = 0x813359a
ROM_MOVE_SELECTION = 0x8137ba8
ROM_RENDER_BRAILLE_TEXT = 0x814f938
ROM_SPECIAL_VARS = 0x815fd0c
ROM_CPU_FAST_SET = 0x81e3b60
ROM_CPU_SET = 0x81e3b64
ROM_MAP_GROUPS = 0x83526a8
ROM_LETTER_LIST = 0x83e22d0
ROM_PAGE_COLUMNS = ROM_LETTER_LIST +0x60
ROM_LETTER_PAGES = ROM_LETTER_LIST +0x81
ROM_LIST_CURSOR_TILE = 0x841623b

-- window templates
WINDOW_BATTLE = 0x8248330
WINDOW_OPTIONS = 0x83cc2b8
WINDOW_KEYBOARD = 0x83e22a0
WINDOW_MAP = 0x83f1a60
WINDOW_BAG = 0x84530c4
WINDOW_PC_BAG = WINDOW_BAG +0x20
WINDOW_PC_BAG_WITHDRAW = 0x8453f98
WINDOW_NEWGAME_HELP1 = 0x8462e64
WINDOW_NEWGAME_HELP2 = WINDOW_NEWGAME_HELP1 +0x10
WINDOW_NEWGAME_HELP3 = WINDOW_NEWGAME_HELP1 +0x30
WINDOW_NEWGAME_INTRO = WINDOW_NEWGAME_HELP1 +0x5c
WINDOW_TM_CASE = 0x8463190
WINDOW_BERRY_POUCH = 0x84643b8
WINDOW_TV = 0x84792f0

