-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
3,972 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* pseultra/n64/os/include/os/assert.h | ||
* OS Assert Header | ||
* | ||
* (C) pseudophpt 2018 | ||
*/ | ||
|
||
/** | ||
* @file include/os/assert.h | ||
* @brief OS Assert Header | ||
* @date 20 Aug 2018 | ||
* @author pseudophpt | ||
* | ||
* This file defines the assert macro which halts the game if the specified condition is not true | ||
*/ | ||
|
||
#ifndef OS_ASSERT_H_GUARD | ||
#define OS_ASSERT_H_GUARD | ||
|
||
#define OS_ASSERT_STRINGIFY2(x) #x | ||
#define OS_ASSERT_STRINGIFY(x) OS_ASSERT_STRINGIFY2(x) | ||
|
||
#ifdef __asm__ | ||
|
||
|
||
|
||
#else | ||
|
||
#define assert(x) \ | ||
if (!(x)) __osError("Assertion Failed: " OS_ASSERT_STRINGIFY(x) "\nLine " OS_ASSERT_STRINGIFY(__LINE__) " in " OS_ASSERT_STRINGIFY(__FILE__)); | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
*/ | ||
|
||
#include <os/boot/boot.h> | ||
#include <os/boot/debug.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* | ||
* pseultra/n64/os/include/os/boot/boot.h | ||
* Boot process header | ||
* | ||
* (C) pseudophpt 2018 | ||
*/ | ||
|
||
/** | ||
* @file include/os/boot/boot.h | ||
* @brief Boot process headers | ||
* @date 1 Aug 2018 | ||
* @author pseudophpt | ||
* | ||
* This file provides definitions for structs and constants related to the boot process | ||
*/ | ||
|
||
#ifndef OS_BOOT_DEBUG_H_GUARD | ||
#define OS_BOOT_DEBUG_H_GUARD | ||
|
||
/* | ||
* Macros | ||
*/ | ||
|
||
/* | ||
* Structs | ||
*/ | ||
|
||
#ifndef __asm__ | ||
|
||
#endif | ||
|
||
/* | ||
* Public functions | ||
*/ | ||
|
||
/* | ||
* Public variables | ||
*/ | ||
|
||
#ifdef __asm__ | ||
.extern osDebugFont | ||
#else | ||
extern u8 osDebugFont []; | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern osDebugRegNames | ||
#else | ||
extern char *osDebugRegNames []; | ||
#endif | ||
|
||
#ifdef __os_internal__ | ||
|
||
/* | ||
* Internal functions | ||
*/ | ||
|
||
#ifdef __asm__ | ||
.extern __osDebugInit | ||
#else | ||
void __osDebugInit (); | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern __osDebugWriteChar | ||
#else | ||
void __osDebugWriteChar (int x, int y, u8 ch); | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern __osDebugPrint | ||
#else | ||
void __osDebugPrint (int x, int y, char *str); | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern __osDebugDumpRegisters | ||
#else | ||
void __osDebugDumpRegisters (); | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern __osDebugFormatHex | ||
#else | ||
void __osDebugFormatHex (u32 value, char *str); | ||
#endif | ||
|
||
#ifdef __asm__ | ||
.extern __osError | ||
#else | ||
void __osError (char *error_msg); | ||
#endif | ||
|
||
/* | ||
* Internal variables | ||
*/ | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.