Super Mario 64s source code (from a leak on 4chan so be careful)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
3.5 KiB

6 years ago
  1. glabel level_main_menu_entry_1
  2. init_level
  3. fixed_load /*loadAddr*/ _goddardSegmentStart, /*romStart*/ _goddardSegmentRomStart, /*romEnd*/ _goddardSegmentRomEnd
  4. load_mio0 /*seg*/ 0x07, /*romStart*/ _menu_segment_7SegmentRomStart, /*romEnd*/ _menu_segment_7SegmentRomEnd
  5. load_raw /*seg*/ 0x13, /*romStart*/ _behaviorSegmentRomStart, /*romEnd*/ _behaviorSegmentRomEnd
  6. alloc_level_pool
  7. load_model_from_geo /*model*/ MODEL_MAIN_MENU_MARIO_SAVE_BUTTON, /*geo*/ main_menu_geo_0001D0
  8. load_model_from_geo /*model*/ MODEL_MAIN_MENU_RED_ERASE_BUTTON, /*geo*/ main_menu_geo_000290
  9. load_model_from_geo /*model*/ MODEL_MAIN_MENU_BLUE_COPY_BUTTON, /*geo*/ main_menu_geo_0002B8
  10. load_model_from_geo /*model*/ MODEL_MAIN_MENU_YELLOW_FILE_BUTTON, /*geo*/ main_menu_geo_0002E0
  11. load_model_from_geo /*model*/ MODEL_MAIN_MENU_GREEN_SCORE_BUTTON, /*geo*/ main_menu_geo_000308
  12. load_model_from_geo /*model*/ MODEL_MAIN_MENU_MARIO_SAVE_BUTTON_FADE, /*geo*/ main_menu_geo_000200
  13. load_model_from_geo /*model*/ MODEL_MAIN_MENU_MARIO_NEW_BUTTON, /*geo*/ main_menu_geo_000230
  14. load_model_from_geo /*model*/ MODEL_MAIN_MENU_MARIO_NEW_BUTTON_FADE, /*geo*/ main_menu_geo_000260
  15. load_model_from_geo /*model*/ MODEL_MAIN_MENU_PURPLE_SOUND_BUTTON, /*geo*/ main_menu_geo_000330
  16. load_model_from_geo /*model*/ MODEL_MAIN_MENU_GENERIC_BUTTON, /*geo*/ main_menu_geo_000358
  17. area /*index*/ 1, /*geo*/ main_menu_geo_000380
  18. object /*model*/ MODEL_NONE, /*pos*/ 0, 0, -19000, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvMenuButtonManager
  19. object /*model*/ MODEL_MAIN_MENU_YELLOW_FILE_BUTTON, /*pos*/ 0, 0, -19000, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvYellowBackgroundInMenu
  20. terrain /*terrainData*/ main_menu_seg7_collision
  21. end_area
  22. free_level_pool
  23. load_area /*area*/ 1
  24. set_menu_music /*seq*/ 0x0021
  25. transition /*unk2*/ 0, /*unk3*/ 16, /*color*/ -1, -1, -1
  26. call /*arg*/ 0, /*func*/ LevelProc_801766DC
  27. call_loop /*arg*/ 0, /*func*/ LevelProc_801768A0
  28. get_or_set /*op*/ OP_SET, /*var*/ VAR_CURR_SAVE_FILE_NUM
  29. cmd38 /*unk2*/ 0x00BE
  30. transition /*unk2*/ 1, /*unk3*/ 16, /*color*/ -1, -1, -1
  31. sleep /*frames*/ 16
  32. clear_level
  33. sleep_before_exit /*frames*/ 1
  34. set_reg /*value*/ 16
  35. exit_and_execute /*seg*/ 0x15, /*script*/ _scriptsSegmentRomStart, /*scriptEnd*/ _scriptsSegmentRomEnd, /*entry*/ level_main_scripts_entry
  36. glabel level_main_menu_entry_2
  37. call /*arg*/ 0, /*func*/ lvl_set_current_level
  38. jump_if /*op*/ OP_EQ, /*arg*/ 0, /*target*/ L1
  39. init_level
  40. fixed_load /*loadAddr*/ _goddardSegmentStart, /*romStart*/ _goddardSegmentRomStart, /*romEnd*/ _goddardSegmentRomEnd
  41. load_mio0 /*seg*/ 0x07, /*romStart*/ _menu_segment_7SegmentRomStart, /*romEnd*/ _menu_segment_7SegmentRomEnd
  42. alloc_level_pool
  43. area /*index*/ 2, /*geo*/ main_menu_geo_000408
  44. object /*model*/ MODEL_NONE, /*pos*/ 0, -100, 0, /*angle*/ 0, 0, 0, /*behParam*/ 0x04000000, /*beh*/ bhvActSelector
  45. terrain /*terrainData*/ main_menu_seg7_collision
  46. end_area
  47. free_level_pool
  48. load_area /*area*/ 2
  49. transition /*unk2*/ 0, /*unk3*/ 16, /*color*/ -1, -1, -1
  50. sleep /*frames*/ 16
  51. set_menu_music /*seq*/ 0x000D
  52. call /*arg*/ 0, /*func*/ LevelProc_80177560
  53. call_loop /*arg*/ 0, /*func*/ LevelProc_80177610
  54. get_or_set /*op*/ OP_SET, /*var*/ VAR_CURR_ACT_NUM
  55. cmd38 /*unk2*/ 0x00BE
  56. transition /*unk2*/ 1, /*unk3*/ 16, /*color*/ -1, -1, -1
  57. sleep /*frames*/ 16
  58. clear_level
  59. sleep_before_exit /*frames*/ 1
  60. L1:
  61. exit