diff --git a/entry.s b/entry.s index 52249af..152174f 100644 --- a/entry.s +++ b/entry.s @@ -4,12 +4,34 @@ .EQU kioResult, 16 .EQU kcsCode, 26 .EQU JIODone, 0x08FC +.GLOBAL RDiskSig +.GLOBAL RDiskDBGNamePos +.GLOBAL RDiskDBGDisPos +.GLOBAL RDiskDBGDisByte +.GLOBAL RDiskCDROMNamePos +.GLOBAL RDiskCDROMDisPos +.GLOBAL RDiskCDROMDisByte dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 dc.l 0x00000000, 0x00000000, 0x00000000, 0x00000000 + +RDiskSig: .ascii "\5RDisk\0" .align 4 +RDiskDBGDisPos: +dc.l 0x000106DA +RDiskCDROMDisPos: +dc.l 0x00012C96 +RDiskDBGNamePos: +dc.l 0x4088002A +RDiskCDROMNamePos: +dc.l 0x40892C96 +RDiskDBGDisByte: +dc.b 0x44 +RDiskCDROMDisByte: +dc.b 0x44 +.align 4 DOpen: movem.l %A0-%A1, -(%SP) bsr RDOpen diff --git a/rdisk.h b/rdisk.h index dbb9016..d903be2 100644 --- a/rdisk.h +++ b/rdisk.h @@ -2,6 +2,10 @@ #define RDISK_H #define RDiskBuf ((char*)0x40880000) +extern uint32_t *RDiskDBGDisPos; +extern char *RDiskDBGDisByte; +extern uint32_t *RDiskCDROMDisPos; +extern char *RDiskCDROMDisByte; #define BufPtr ((Ptr*)0x10C) #define MemTop ((Ptr*)0x108) #define MMU32bit ((char*)0xCB2)