Commit Graph

33 Commits

Author SHA1 Message Date
Maide fca5307ea9 m_play (#50)
* m_play

* Some warnings

* lots of function renames from the gcn version

* fix warnings

* format

* a

* a

* PR

* PR2

---------

Co-authored-by: Maide <you@example.com>
Co-authored-by: angie <angheloalf95@gmail.com>
2023-08-16 11:11:19 -07:00
Anghelo Carvajal c7a746e71e Object table (#53)
* find object_table and make tool to extract it

* migrate object table

* update the assets yaml a bit

* comment

* name gameplay_keep

* change gameplay_keep to segment 4

* rename exclusive_ram_id to fit the segment used

* review
2023-08-16 10:21:44 -07:00
Prakxo 0378b87aee sleep OK (#52)
* sleep OK

* add array_count macro
2023-08-16 09:51:20 -07:00
Prakxo a2deca64d2 aprintf OK (#51)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2

* m_controller OK

* format

* fix size comment in game

* refactor 3

* refactor 4

* refactor 5

* add unused macro

* aprintf OK
2023-08-15 10:21:42 -07:00
Anghelo Carvajal f19df74c6e m_actor.c with 1 NON_MATCHING (#49)
* C file

* drafts

* Actor_info_ct and Actor_info_dt

* Actor_info_make_actor draft

* new_var = &argC;

* func_80057940_jp

* Actor_free_overlay_area, actor_free_check, Actor_get_overlay_area, func_80057940_jp, Actor_data_bank_regist_check

* Shape_Info_init

* Actor struct's size confirmed, Actor_malloc_actor_class and Actor_init_actor_class

* func_80056380_jp, Actor_info_part_new, restore_fgdata, Actor_info_delete

* Actor_info_draw_actor

* Actor_data_bank_dma_end_check, Actor_draw_actor_no_culling_check, Actor_draw_actor_no_culling_check2, Actor_cull_check, Actor_delete_check, Actor_info_make_child_actor, restore_fgdata_all, Actor_info_save_actor

* gSegments

* Actor_world_to_eye, Actor_position_speed_set, Actor_position_moveF and func_80057B70_jp

* Actor_player_look_direction_check

* Actor_position_move

* find m_kankyo file split

* Actor_ct

* fgName

* projection_pos_set, Actor_display_position_set

* Actor_info_call_actor

* func_80057A8C_jp

* import data and bss

* cleanups

* more cleanup

* format

* and even more cleanup

* hilite funcs

* Part_Break_init

* and more cleanup

* Actor_draw

* fake stuff

* Part_Break stuff from OoT

* a

* fix

* fix fake symbol

* fix

* fix
2023-08-14 15:35:04 -07:00
Prakxo bdb8ef6d5b m_controller OK (#48)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2

* m_controller OK

* format

* fix size comment in game

* refactor 3

* refactor 4

* refactor 5

* add unused macro
2023-08-14 10:20:27 -07:00
Prakxo 8aa8fb893a m_pause OK (#47)
* m_pause OK

* yeah now it's OK lol

* refactor

* refactor 2
2023-08-12 09:55:42 -07:00
Prakxo d9a77b4949 zurumode OK (#46)
* zurumode OK

* forgor to rename zuruKeyCheck

* should remove warnings

* refactor

* rename pad to mgr

* refactor 2
2023-08-10 19:49:09 -07:00
Anghelo Carvajal 0d54e2ae4c libc64.a identification (#45)
* __osMalloc

* aprintf.c

* math64.c

* qrand.c

* sleep.c

* sprintf.c

* malloc.c

* fixes

* fp and math64 cleanup

* RAD_TO_BINANG
2023-08-10 11:41:19 -04:00
Prakxo 04b31d9126 m_debug OK (#39)
* m_debug OK

* forgor to format

* replace macros for zelda64 ones

* refactor

* refactor 3

* refactor 4
2023-08-10 11:36:44 -04:00
Anghelo Carvajal 3e14e3a81f m_game_dlftbls.c (#44)
* file split

* name overlays

* sys_romcheck

* gamestate headers

* table

* renaming

* unname ovl_sys_romcheck

* move externs to game.h

* format
2023-08-10 11:03:37 -04:00
Anghelo Carvajal fd54debbf2 libu64.a identification (#43)
* identify debug

* identify gfxprint.c and gfxprint_data.c

* pad.c

* fix

* stackcheck

* loadfragment and logseverity

* mtxconv

* comment

* Revert "loadfragment and logseverity"

This reverts commit 34d8214aa3.

* review

* fix

* another fix

* fix
2023-08-09 21:21:12 -04:00
Anghelo Carvajal 56b4e612cc m_malloc.c (#41)
* match

* bss

* format

* fix
2023-08-09 20:55:50 -04:00
Anghelo Carvajal c7729c05c0 game.c OK (#37)
* C file

* game_dt

* game_ct

* fix offsets and building

* game_init_hyral and SetGameFrame

* more funcs

* game_main

* game_get_controller and func_800D2E00_jp

* Input

* game_draw_last

* a few attempts

* game_draw_first

* improve func_800D2E58_jp a bit

* format

* migrate data and bss

* what

* whoops

* name bss

* minor cleanup

* match game.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* fix malloc function wrongly named

* Update src/code/game.c

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* review

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-08-09 20:51:25 -04:00
Anghelo Carvajal cfa703f013 malloc.c (#42)
* malloc

* match

* bss

* Fix naming

* move __osMalloc to libc64 folder

* move headers to libc64 folder
2023-08-09 20:45:25 -04:00
Anghelo Carvajal bd0c96e418 gamealloc.c (#33)
* C file

* match file

* review
2023-08-06 14:14:33 -04:00
Prakxo 49676377a3 irqmgr OK (#28)
* irqmgr OK

* refactor

* refactor 2

* refactor 3

* refactor 5

* refactor 6

* fix yaml

* fix bss
2023-08-06 14:09:39 -04:00
Anghelo Carvajal 065751554f Bring over bss headers and bss script from MM (#38)
* prevent_bss_reordering header

* global_bss_check.py

Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>

* rewrite bss script to use mapfile_parser

* Change collections for dataclasses

* update requirements.txt

* simplify some stuff

---------

Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
2023-08-06 13:49:16 -04:00
Anghelo Carvajal 527f93aa93 padutils.c (#34) 2023-08-06 11:51:58 -04:00
Derek Hensley 6389d06ee4 ovlmgr (001640) OK (#35)
* ovlmgr OK

* sprintf

* Remove UNUSED from header
2023-08-06 11:11:16 -04:00
emilybrooks 44f0a79323 c_keyframe OK (#25)
* matched a few functions

* found some function names from the dnm+ map

* floating point hell and struct hell

* investigating skeletoninfo

* structs

* g3

* matching progress

* cKF_SkeletonInfo_R_AnimationMove_base

* lots of matched functions

* matched 2 functions

* keycalc

* rodata problem fixed

* cKF_SkeletonInfo_R_morphJoint matched

* cKF_Si3_draw_R_SV fake match

* cKF_SkeletonInfo_R_combine_translation matched

* cKF_SkeletonInfo_R_combine_rotation matched

* func_80053384_jp matched

* cKF_SkeletonInfo_R_AnimationMove_ct_base matched

* started documenting

* naming some stuff

* wrong struct size

* moved stuff to header files

* documenting

* more documenting

* comments for FrameControl done

* cKF_Si3_draw_SV_R_child fake match

* cleaning up draw functions

* imported bss

* matched cKF_SkeletonInfo_R_combine_play

* matched cKF_SkeletonInfo_R_T_combine_play

* matched cKF_SkeletonInfo_R_play

* everything matching

* cleaning up cKF_SkeletonInfo_R_play

* started on morph stuff

* cleaning up draw functions

* cleaning up structs

* trying to make pr ready

* changed wording

* review feedback

* forgot some animation pointer temps

* reverted cKF_SkeletonInfo_R_init_reverse_setspeedandmorphandmode

* review2

* fixed draw function fake matches
2023-08-05 21:51:56 -04:00
Anghelo Carvajal 94b300b0d0 m_actor_dlftbls.c (#32)
* start

* match the file

* actor_dlftbls_num

* script to extract the actor table

* bootstrap actor table

* ActorId enum

* migrate actor table

* reorganize overlays in subfolders

* Fix Player

* migrate bss

* cleanup and format

* ActorProfile

* Move player_actor to actors folder

* RomOffset

* ACTOR_ID_MAX
2023-08-05 10:58:09 -04:00
Derek Hensley 5b54707958 Viconfig OK (#29) 2023-08-04 12:02:33 -04:00
Tom Overton 462cd091ee m_common_data OK (#27)
* m_common_data OK

* Respond to review
2023-08-03 10:39:54 -04:00
Derek Hensley 92ac058f3d Idle OK (#26)
* Matched

* Fix yaml and format

* Fix yaml pt 2
2023-08-01 09:58:04 -04:00
Anghelo Carvajal d32c85b00b __osMalloc OK (#22)
* start

* arena_lock_init, __osMallocInit, __osMallocAddBlock and __osMallocCleanup

* arena_lock, arena_unlock, __osMallocIsInitalized, __osMalloc, __osFree and __osCheckArena

* __osMallocNoLock and __osMallocR

* __osFree_NoLock and __osGetFreeArena

* ArenaImpl_FaultClient

* search_last_block

* match __osRealloc

* cleanup

* Steal docs from MM

* macros

* format

* fix func_8003BA60_jp declaration

* memmove comment

* fix paths

* review

* fix

* review
2023-08-01 09:51:28 -04:00
Derek Hensley baaa9d6b4e Bootmain OK (#21)
* func_80025CC0_jp

* Clean up

* Some cleanup

* Format
2023-07-29 14:09:57 -04:00
emilybrooks be09c72d0c TwoHeadArena, THA_GA, sys_matrix OK (#18)
* matched TwoHeadArena and THA_GA

* header files

* started sys_matrix.c

* more functions matched

* sys_matrix matching

* imported data

* imported bss

* cleanup

* more cleanup

* last cleanup

* formatting

* moved prototypes

* add back ultra64.h

* remove dlabel jlabel temp fix
2023-07-29 13:46:30 -04:00
Derek Hensley ea9f4c68bb LoadFragment 2 OK (#2)
* load_fragment2

* dma.h

* og DoRelocation

* comment format

* A few more docs

* symbol

* remove _ from loadfragment2

* ptrdiff_t

* z_std_dma.h

* Format

* load.h -> loadfragment.h

* laodframgnet2 file optflags

* Small notes

* Per directory O2
2023-07-29 13:23:35 -04:00
Anghelo Carvajal 632ff4b2ab Build a compressed ROM (#16)
* git subrepo clone (merge) --branch=5da3132606e4fd427a8d72b8428e4f921cd6e56f git@github.com:z64tools/z64compress.git tools/z64compress

subrepo:
  subdir:   "tools/z64compress"
  merged:   "5da3132"
upstream:
  origin:   "git@github.com:z64tools/z64compress.git"
  branch:   "5da3132606e4fd427a8d72b8428e4f921cd6e56f"
  commit:   "5da3132"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* z64compress_wrapper.py

* fixes

* dmadata.c

* readme

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "01ac556"
upstream:
  origin:   "git@github.com:ethteck/splat.git"
  branch:   "master"
  commit:   "01ac556"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* segment_end_before_align: True

* Add compressed step to jenkinsfile

* TODO

* format

* remove from boot_variables.h

* simplify

* Change makefile to match MM
2023-07-29 12:52:32 -04:00
Anghelo Carvajal 39a2e453bb Do not use undefined_syms_auto files when linking (#15)
* remove some symbols

* Adding more symbols to undefined_syms.ld

* Avoid using the undefined_auto completely

* relocs for entry.s
2023-05-08 12:33:08 -04:00
Anghelo Carvajal 35cb5d1cfc Integrate sheet knowledge into the repo (#9)
* boot splits

* code file splits

* functions from sheets

* symbols from the sheet

* bootstrap headers

* common_data

* most segments

* headers for boot files

* add overlays as placeholders

* unname _os files

* named a few files

* code headers

* typo

* Disassemble every overlay

* bootstrap symbol_addrs_overlays.txt

* split yamls

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-04-03 11:54:50 -04:00
Anghelo Carvajal d66a21685f Initial repo setup (#1)
* git subrepo clone git@github.com:ethteck/splat.git tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "4fec014"
upstream:
  origin:   "git@github.com:ethteck/splat.git"
  branch:   "master"
  commit:   "4fec014"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* gitignore

* decompress_baserom.py

* Initial yaml

* run flib

* more yaml stuff

* Builds an uncompressed ROM

* setup ido download

* git subrepo clone git@github.com:simonlindholm/asm-differ.git tools/asm-differ

subrepo:
  subdir:   "tools/asm-differ"
  merged:   "ae40866"
upstream:
  origin:   "git@github.com:simonlindholm/asm-differ.git"
  branch:   "main"
  commit:   "ae40866"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* git subrepo clone git@github.com:simonlindholm/asm-processor.git tools/asm-processor

subrepo:
  subdir:   "tools/asm-processor"
  merged:   "bbd86ea"
upstream:
  origin:   "git@github.com:simonlindholm/asm-processor.git"
  branch:   "main"
  commit:   "bbd86ea"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* git subrepo clone (merge) git@github.com:EllipticEllipsis/fado.git tools/fado

subrepo:
  subdir:   "tools/fado"
  merged:   "8d896ee"
upstream:
  origin:   "git@github.com:EllipticEllipsis/fado.git"
  branch:   "master"
  commit:   "8d896ee"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* setup ido in makefile

* data and rodata

* add automatic file splits

* bootstrap most symbol_addrs

* git subrepo clone --branch=irix git@github.com:hensldm/ultralib.git lib/ultralib

subrepo:
  subdir:   "lib/ultralib"
  merged:   "0d1e095"
upstream:
  origin:   "git@github.com:hensldm/ultralib.git"
  branch:   "irix"
  commit:   "0d1e095"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* setup ido building

* various tooling

* git subrepo pull tools/asm-differ

subrepo:
  subdir:   "tools/asm-differ"
  merged:   "857b398"
upstream:
  origin:   "git@github.com:simonlindholm/asm-differ.git"
  branch:   "main"
  commit:   "857b398"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* Change defines to match IDO

* review

* newlin

* update gitignore

* Windows error

* D_01000000

* yeet settings.json

* yeet

* git subrepo clone git@github.com:decompals/ultralib.git lib/ultralib

subrepo:
  subdir:   "lib/ultralib"
  merged:   "d03b2a3"
upstream:
  origin:   "git@github.com:decompals/ultralib.git"
  branch:   "main"
  commit:   "d03b2a3"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* clangformat and clangtidy

* Setup a bunch of headers

* bootstrap boot and code functions and variables headers

* global.h

* update format.py includes

* -D_MIPS_SZLONG=32

* format.py: --verbose

* Update tools/decompress_baserom.py

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* Add libc to global.h

* review

* yeet saved_regs

* yeet headers

* yeet _MSC_VER

* more header cleanup

* add readme licensing note

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-03-29 03:42:56 +01:00