Welcome Guest [Log In] [Register]
Welcome to Yoshi Lighthouse. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Function Call List; and their arguments.
Topic Started: Jan 23 2011, 05:12:32 AM (428 Views)
Posted Image Teawater
Who are you calling an old man?

Hello there, this topic's main use is to list the functions you can call with their available arguments.



DECD
03002034/03002040

Arguments:
R0 = Data to decompress offset.
R1 = Location to store decompressed data.

(R2 = Calls to function... and branch/link to 081DAA70)



???

08018B78

Arguments:
R0 = Offset from 03000014 (by word). If 02, offset at 03000C10.
R1 = Value to place in offset. If 00000000, changed to 08018B75.

Returns:
(nothing)



Delete RAM Database:

08018C68

Arguments:
R0 = Database address (after header)

Returns:
(Nothing)



Add RAM Database:

08018CEC


08018DB4/08018DEC (These appear to be exact copies of each other.)
 
Arguments:
 
R0 = Size - This is the size in bytes of the database, For best results, it should be word-aligned. (Divisible by 4)
R1 = RAM Flag - This is which RAM area the database should be placed. 0 for IRAM (03), and 1 for WRAM (02)
R2 = Label offset - This is the offset of a four letter label for the database.
R3 = Zero-filled flag - This determines if the whole database should be 0-filled after creation.
Returns:
 
R0 = Database address (after header)




080198B0

Arguments:
R0 = Compressed Sprites Offset

Returns
R0 = Size (Uncompressed, function used for making a RAM database size.)



08199498 = MATH Copy/Paste function. (And MATH pointer repointering,)
08199498 = CLEA "

Arguments:
R0 = Database offset for MATH data to be inserted. (after header) (The MATH pointer is also repointered (03001038).) If 0, pointer is pointed to 08198220 (MATH database in ROM.)

Returns:
R0 = Database offset of NEXT database (header) (or offset after the input of MATH data) If Arg is 0, this stays 0.




08084F28 = create_panel(?, ?, x, y, width, height, pixel_data_pntr, palette?)


RAND Generator

0819A138
R0 = Database offset (after header)
R1 = Random? Number




More may be added in the future...
Edited by Teawater, Jun 26 2012, 10:28:33 PM.
If you ever find an error in any of my reference materials, PLEASE let me know.
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image

Don't mind me, I'm nothing but a spoiler.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Superstar Saga · Next Topic »
Add Reply

↓ It's not the truth (or is it?) Come back tomorrow to find out! (Joke.) ↓