Giter VIP home page Giter VIP logo

powerpc-assembly-functions's Introduction

PowerPC-Assembly-Functions

Requirements

Code Menu

Setup

These steps only need to be done once unless you switch the folder location of your build:

  1. Clone this repository

  2. Open PowerPC Assembly Functions.sln in Visual Studio

  3. Find OutputAsmPath in MainCode.cpp (under the Source Files folder) and modify the path parameter to the location of CodeMenu.asm in your build (in P+ it's in \Project+\Source\Project+\CodeMenu.asm)

Note: DOLPHIN_BUILD denotes the netplay version. Modify both paths if you plan to use the offline and netplay launcher. (In P+, the location of the netplay code menu asm is in \Project+\Source\Netplay\Net-CodeMenu.asm)

  1. Find static fstream MenuFile in Code Menu.h (under the Header Files folder) and modify the path to the location of data.cmnu in your build (in P+ it's in \Project+\pf\menu3\data.cmnu for the offline version and \Project+\pf\menu3\dnet.cmnu for the netplay version)

Optional

  1. If you'd like to create the netplay version of the code menu, find DOLPHIN_BUILD in PowerPC Assembly Instructions.h (under the Source Files folder) and set it to true. The only difference between the regular and Netplay versions of the Code Menu is that the Netplay version automatically saves replays to the NAND.

  2. If you'd like to assemble the GCTs automatically (as opposed to dragging the codesets to GCTRM yourself after running the program), find BuildFolder in MainCode.cpp and set the path of your build folder (e.g. Project+), then set RunGCTRM to true. This will assemble all the codes in your P+ build referenced in RSBE01.txt and BOOST.txt (offline) and NETPLAY.txt and NETBOOST.txt (netplay) using the GCTRM.exe in the build folder.

  3. If you'd like to sync your sd.raw using Virtual SD Sync after assembling the GCTs, find VSDExePath in MainCode.cpp and set the path to the VSDSync.exe, then set RunVSDSync to true. You must setup VSDSync of course first

Run

After you've edited the code menu code, run the program to construct it by clicking the Local Windows Debugger (located in the top middle of the Visual Studio window, you'll see the green arrow icon) to run the code.

After the code is ran, you'll be greeted with a Debug Console window. When instructed, press the keys if prompted. You are now done using Visual Studio and may close it if you like (make sure to save your open stuff before doing so to make sure you don’t have to do it again)

If you did step 6 in setup (as well as the previous required steps correctly), and no errors were generated when you ran the program, the new code menu should be successfully put in the build and you should be good to go. Otherwise, you will have to drag the RSBE01.txt in your build into GCTRM-Log.bat to assemble the gct.

Credits

Fracture for the original repository, ASM functions and code menu

DesiacX for the extended code menu and ASM

Eon, PyotrLuzhin, wiiztec for ASM

DukeItOut for GCTRM

Syvkal for Virtual SD Sync

KingJigglypuff for the original code menu editing guide for P+EX

powerpc-assembly-functions's People

Contributors

fracture17 avatar ilazoja avatar desiacx avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.