Remove peek24L

This commit is contained in:
Zane Kaminski 2021-04-03 09:22:51 -04:00
parent d642756985
commit 6e3a657536
4 changed files with 0 additions and 14 deletions

Binary file not shown.

Binary file not shown.

11
rdisk.c
View File

@ -63,17 +63,6 @@ char __attribute__ ((noinline)) G24(Ptr pos) {
return ret; return ret;
} }
// Switch to 32-bit mode and get
#pragma parameter __D0 G24L(__A2)
long __attribute__ ((noinline)) G24L(long *pos) {
long ret;
signed char mode = true32b;
SwapMMUMode(&mode);
ret = *pos; // Peek
SwapMMUMode(&mode);
return ret;
}
// Switch to 32-bit mode and set // Switch to 32-bit mode and set
#pragma parameter S24(__A2, __D3) #pragma parameter S24(__A2, __D3)
void __attribute__ ((noinline)) S24(Ptr pos, char patch) { void __attribute__ ((noinline)) S24(Ptr pos, char patch) {

View File

@ -38,9 +38,6 @@ typedef void (*RDiskCopy_t)(Ptr, Ptr, unsigned long);
typedef char (*RDiskPeek_t)(Ptr); typedef char (*RDiskPeek_t)(Ptr);
#define peek24(a, d) { RDiskPeek_t f = G24; d = f(a); } #define peek24(a, d) { RDiskPeek_t f = G24; d = f(a); }
typedef long (*RDiskPeekL_t)(long*);
#define peek24L(a, d) { RDiskPeekL_t f = G24L; d = f(a); }
typedef void (*RDiskPoke_t)(Ptr, char); typedef void (*RDiskPoke_t)(Ptr, char);
#define poke24(a, d) { RDiskPoke_t f = S24; f(a, d); } #define poke24(a, d) { RDiskPoke_t f = S24; f(a, d); }