diff options
| author | Luke Street <luke.street@encounterpc.com> | 2023-09-10 00:42:26 -0400 |
|---|---|---|
| committer | Luke Street <luke.street@encounterpc.com> | 2023-09-10 00:48:55 -0400 |
| commit | adb95b135c3d7498eba29bbd9728d345eed5a407 (patch) | |
| tree | 655575b939c12067569263171b68c079b1a232c8 /src/SSystem/SStandard/s_basic.cpp | |
| parent | 81ac53f1317dafb3506ae3ed8b2820d40645c3c8 (diff) | |
Import project
Original repository: https://github.com/encounter/ww
Diffstat (limited to 'src/SSystem/SStandard/s_basic.cpp')
| -rw-r--r-- | src/SSystem/SStandard/s_basic.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/SSystem/SStandard/s_basic.cpp b/src/SSystem/SStandard/s_basic.cpp new file mode 100644 index 00000000..7a729798 --- /dev/null +++ b/src/SSystem/SStandard/s_basic.cpp @@ -0,0 +1,21 @@ +// +// Generated by dtk +// Translation Unit: s_basic.cpp +// + +#include "SSystem/SStandard/s_basic.h" +#include "dolphin/types.h" + +/* 80254D8C-80254DAC .text sBs_FillArea_s__FPvUls */ +void sBs_FillArea_s(void* pPtr, u32 pNumBytes, s16 pValue) { + s16* castPtr = (s16*)pPtr; + for (int i = 0; i < pNumBytes / 2; i++) { + *castPtr = pValue; + castPtr++; + } +} + +/* 80254DAC-80254DD0 .text sBs_ClearArea__FPvUl */ +void sBs_ClearArea(void* pPtr, u32 pNumBytes) { + sBs_FillArea_s(pPtr, pNumBytes, 0); +} |
