Pyramid Adventures Episode 1 - List of Functions
On the disc of Pyramid Adventures is a file called pyrgame. This file (and others like it) contain executable data that the Philips CD-i uses to play their Green Book-exclusive functionalities. While a good amount contain nothing but machine code and leftovers from OptImage's Balboa routine library, others contain hidden text strings. Some of them are developer credits and messages (such as Steel Machine), while others have leftover error and debugging strings (like every single one of CapDisc's CD-i titles).
A few games, however, have a boatload of macro and function names/headers preserved within their executable file. Pyramid Adventures is in this group, and I'm proud to list them all for you.
Feel free to use this page as a reference when putting together your sick Pyramid Adventures decompilation circa 2071 or so.
The List:
The function list is split across multiple chunks, spanning hex addresses 14E3
to 1D019
. Space between chunks will be marked with a gap between each one.
heroScene_Init heroScene_Done scene_Next scene_Init scene_Clear scene_Done scene_Music game_Play Devices_PreInit Introduction game_Init game_Done main GetCursorBPLoc SetBPCursor NextPairPhase BPDrawIcon BPEraseIcon BPDragIcon BPSleep BPDep_Proceed backpack_AllocMem backpack_FreeMem backpack_Init backpack_Done backpack_Proceed SaveBPFoodSlotImages BPFood_Draw BPFood_Erase DrawAllBPFoodSprites EraseAllBPFoodSprites BPFood_Drag BPFood_New BPFoodFaceInit BPFoodGarbageCanInit BPFood_SetEater BPFood_BindToSlot BPFoodSlotIsFree FindFreeBPFoodSlot WhatBPFood WhatBPFoodSlot BPFood_PlaceInSlot BPFood_Remove BPFood_Eating BPFood_ThrowAway BPFoodDep_AllocMem BPFoodDep_FreeMem BPFoodDepInit BPFoodDepDone BPFoodDepRun backpack_PutFood backpack_DiscardFood backpack_SaveFood backpack_LoadFood BPTool_NameToId SaveBPToolSlotImage BPTool_Draw BPTool_Erase SaveBPToolNameBG EraseBPToolName DrawBPToolName BPTool_IdToPict DrawAllBPTools EraseAllBPTools ClearAllBPTools BPTool_Drag BPTool_Init FindFreeBPToolSlot BPTool_BindToSlot WhatBPTool WhatBPToolSlotForMovable BPTool_PlaceInSlot BPTool_Select BPTool_Unselect BPMainDep_AllocMem BPMainDep_FreeMem BPMainDepInit BPMainDepDone BPMainDepRun backpack_GetCurTool backpack_ChangeStock backpack_SaveTool backpack_LoadTool HighlightOptionsMenu UnhighlightOptionsMenu SaveBPOptionsTextImage RestoreBPOptionsTextImage EraseOptionsMenu DrawOptionsMenu GameMenuWithHeader_Init BPOptionsDep_AllocMem BPOptionsDep_FreeMem BPOptionsDepInit BPOptionsDepDone BPOptionsDepRun boulder_Init BPPyramidDep_AllocMem BPPyramidDep_FreeMem BPPyramidDepInit BPPyramidDepDone SaveBPPyramidTextImage RestoreBPPyramidTextImage BPPyramidDoneButtonTouched trap_at_xy BPPyramidDepRun Food_NameToId Food_IdToName Food_IdToPict Food_NameToPict Food_PictToName Food_PictToId Food_Type Food_VisibleName CDIMemNames MemNames Error_P1 Error_P2 GameMenuItem_Highlight GameMenuItem_Unhighlight GameMenu_Init GameMenu_AddItem GameMenu_ChangeCurrent GameMenu_Next GameMenu_Prev GameMenu_Run GameMenu_Disable GameMenu_EnableAll GameMenuItem_Disabled path_Adjust flight_Adjust map_At signal_handler Set_No_Sig_Event SetCycleAlarm WaitEvent EventOccur actor_Init actor_Done actor_Move phase_Realize actor_NextAction actor_ChooseAction actor_Check default_predicate default_effect Loc_Inside Loc_Inside_Trapeze Rect_Overlap Rect_Inside intersect init_random randomize between Act_Link Act_Get sprite_Init sprite_Done sprite_Draw sprite_DrawAll sprite_Redraw sprite_RedrawAll sprite_Erase sprite_EraseAll sprite_Disable sprite_Enable sprite_Hide sprite_Show sprite_MoveAll bmf_setFont bmf_setColor bmf_OutChar bmf_OutText bmf_TextWidth bmf_TextHeight mouse_EnableDoubleClick mouse_DisableDoubleClick AddEvent RemoveEvent mouse_HideCursor mouse_ShowCursor mouse_SetPos mouse_SetVertRange mouse_SetHorizRange mouse_CatchEvent mouse_GetEvent mouse_EventOccur SetVWindow Pyr_ImageBufSize Pyr_GetImageBuf Pyr_PutImageBuf Pyr_DrawHLine Pyr_DrawVLine Pyr_DrawRectangle Pyr_SetColor SetFont DrawFontText FontTextWidth FontTextHeight Voiceover_Play Slide_CDOffset Slide_Show AudioDev_PreInit AudioDev_Attenuate AudioDev_Next_ac_cs AudioDev_InitSoundCS AudioDev_Init ClearResourceDir InsertBackpackMargins VoiceOffset Music LoadCommonSoundEffects LoadSoundEffects ResourcesMemAlloc LoadCommonResources LoadBackgroundFromCD Scene_Load Scene_Discard PCL_Init PCB_Init ClearCIL PlayCS_Init TypicalPlayCS_Begin TypicalPlayCS_AddPCL TypicalPlayCS_End CDiskEnable CDDev_Init CDDev_AbortRTRs CDDev_SeekData CDDev_SeekVoice CDDev_SeekMusic CDDev_SeekSounds InitCursor ShowCursor HideCursor PosCursor MemoryInit MemoryAlloc Palette_from_RTRBuffer Palette_to_CLUT7 CLUT7_ChangeColor PtrDev_Init PtrDev_GetState PtrDev_Pos ClearSoundmap Music_StartPlaying RestartMusic StopMusic AC_signal_handler ACProcess Sound_Init Sound_DataSize Sound_Play Sound_Stop Sound_Done VideoDev_SetPlaneOrder VideoDev_SetLineICF VideoDev_SetPlaneICF VideoDev_PlaneFlip VideoDev_ClearPlane VideoDev_FadePlane VideoDev_SetPlaneLCT VideoDev_SetCLUT7Mode VideoDev_Fade VideoDev_SetCLUT7 VideoDev_PlaneSetOrigin PalTest VideoDev_PlanePreInit VideoDev_PreInit VideoDev_InitCLUTInstr VideoDev_InitFCTs VideoDev_PlaneInit VideoDev_Init user_Clear user_Init user_Done user_Read user_Press PlayBobRagerBumper Check Check_SebekHit Clip_Effect Clip_Init Clip_Play Effect sprite_Range sprite_Attacked sprite_CollisionMap SceneName_Info SceneName_ID DrawContMenu EraseContMenu CreatePyrContMenu DrawQuestionMenu EraseQuestionMenu CreateQuestionMenu AttachQuestionMenu DetachQuestionMenu create_file_and_host_names ___open ___create ___read ___write ___close ___delete encode_mem_space decode_mem_space nvr_avail load_game_from_NVR save_game_to_NVR backpack_SaveOthers backpack_LoadOthers Still_Width Still_Height Still_Draw Still_Erase ststone_Init ststone_Use ststone_Chk Subscreen_RevealFromCenter Subscreen_ConcealToCenter Subscreen_Appear Subscreen_Disappear ammo_Init ammotable_Init ammo_Move ammo_Throw noprint wait_for_line_event release_dvram allocate_dvram fade_up_plane_AB fade_out_plane_AB flip_B init_fmv_video play_animation close_up_and_leave ma_signal_process show_picture ma_set_pcb ma_init_pcls ma_set_pcl setup_animation portrait_Init portrait_Done portrait_Touch antuclip_Init antuclip_Done antuclip_Touch atsap_Init atsap_Done atsap_Clip blob_Init casinoNum_Init casino_Number casinoFoodName_Init casinoPrompt_Init casinoFood_Init casinoHandle_Init casinoSlot_Init casinoSlot_Move casinoGame_Init casinoGame_Done coin_Init coin_Set coin_Incr cpl_Draw cdi_Erase cdi_WideErase _DrawClipped ebony_Init ebony_Install ebony_Blink enemy_Init hero_Init hero_InitLoc hero_MoveView hero_ReadUser hero_Energy hero_Check icon_Init icon_Show icon_Hide icon_Set lifeIcon_Init lives_Init lives_Decr lives_Incr init_foods get_next_food del_from_sprite_list sprites_near get_food_xy get_random_food set_active_new_pair food_Move MFOOD_Init MFOOD_Done head_Move4 head_Move1 head_Move HEAD_Init HEAD_Done new_mummy where_head mummy_Move4 mummy_Move1 mummy_Move MUMMY_Init MUMMY_Done BRICK_Done MazeEffect mazeScene_Init mazeScene_Done mozart_Init mozart_Done mozart_Clip olivia_Init olivia_Clip phaseStep1 platformList_Init platformList_Done platform_Init new_endmoving platform_Move pool_Init pool_Alloc pool_Clear powerup_Init powerup_Done powerup_Hide powerup_Take finger_Init puzzleFoodName_Init puzzleTime_Init PuzzleGame_Init PuzzleGame_Done Check_Area rope_Init rope_Show rope_Hide rope_Up rope_Failed rope_Remove rope_Move rope_Draw_Erase rope_Draw rope_Erase rider_Init rider_Link rider_Unlink rider_Move rider_Offset Playfield_SetSize Playfield_Width Playfield_Height view_Init view_HScroll view_VScroll view_Sprite scene_Update scene_Play scene_Repeat scene_Restart scene_Break scene_Change shooter_Init shooter_Hide sebek_Init sebek_Done hand_Init bullet_Init bullet_Emit foodName_Init SebekGame_Init SebekGame_Done ammoIcon_Init SlingshotGame_Init SlingshotGame_Done sphinx_Init sphinx_Done sphinx_Clip sphinx_Hungry text_Init text_Show text_Hide text_Set text_Attr text_Draw vitamin_Init vitamin_Move vitamin_Throw vmSlots_Init vmFood_Init vmFoodName_Init vmPrice_Init vmGame_Init vmGame_Done wheel_Init InitWheels AttachWheels ThrowWheel param_Realize GetRowField prepare_mod_dir (List of .cpl files begins here. End of function list)
Return to top
Last updated: December 9th, 2024.