mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-27 23:50:13 +00:00
Remove peek24L
This commit is contained in:
parent
d642756985
commit
6e3a657536
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
11
rdisk.c
11
rdisk.c
@ -63,17 +63,6 @@ char __attribute__ ((noinline)) G24(Ptr pos) {
|
||||
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
|
||||
#pragma parameter S24(__A2, __D3)
|
||||
void __attribute__ ((noinline)) S24(Ptr pos, char patch) {
|
||||
|
3
rdisk.h
3
rdisk.h
@ -38,9 +38,6 @@ typedef void (*RDiskCopy_t)(Ptr, Ptr, unsigned long);
|
||||
typedef char (*RDiskPeek_t)(Ptr);
|
||||
#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);
|
||||
#define poke24(a, d) { RDiskPoke_t f = S24; f(a, d); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user