mirror of https://github.com/PrimeDecomp/prime.git
parent
644e2c8853
commit
f7e3ed9818
|
@ -49,7 +49,7 @@ typedef struct GBA {
|
|||
extern GBA __GBA[4];
|
||||
extern BOOL __GBAReset;
|
||||
|
||||
// void __GBAHandler(s32 chan, s32 ret);
|
||||
void __GBAHandler(s32 chan, u32 sr, OSContext* context);
|
||||
void __GBASyncCallback(s32 chan, s32 ret);
|
||||
s32 __GBASync(s32 chan);
|
||||
OSTime __GBASetDelay(s32 chan, OSTime delay);
|
||||
|
|
|
@ -24,7 +24,7 @@ void ShortCommandProc(s32 chan) {
|
|||
return;
|
||||
}
|
||||
|
||||
gba->status[0] = gba->dst[2] & 0x3a;
|
||||
gba->status[0] = gba->dst[2] & GBA_JSTAT_MASK;
|
||||
}
|
||||
|
||||
void GBAInit() {
|
||||
|
|
|
@ -6,7 +6,7 @@ void ReadProc(s32 chan) {
|
|||
|
||||
if (gba->result == 0) {
|
||||
memcpy(gba->buffer, &gba->dst, 4);
|
||||
gba->status[0] = gba->_09 & 0x3a;
|
||||
gba->status[0] = gba->_09 & GBA_JSTAT_MASK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ void WriteProc(s32 chan) {
|
|||
return;
|
||||
}
|
||||
|
||||
gba->status[0] = gba->dst[0] & 0x3a;
|
||||
gba->status[0] = gba->dst[0] & GBA_JSTAT_MASK;
|
||||
}
|
||||
|
||||
s32 GBAWriteAsync(s32 chan, u8* src, u8* status, GBACallback callback) {
|
||||
|
|
Loading…
Reference in New Issue