#include "cdintf.h" // System agnostic CD interface functions
#include "cdrom.h"
-#define CDROM_LOG // For CDROM logging, obviously
+//#define CDROM_LOG // For CDROM logging, obviously
/*
BUTCH equ $DFFF00 ; base of Butch=interrupt control register, R/W
bool ButchIsReadyToSend(void)
{
+WriteLog("Butch is%s ready to send...\n", cdRam[I2CNTRL + 3] & 0x02 ? "" : " not");
+
return (cdRam[I2CNTRL + 3] & 0x02 ? true : false);
}
}
-
-/*void clock_reset(void)
-{
-}
-
-void clock_init(void)
-{
- clock_reset();
-}
-
-void clock_done(void)
-{
-}
-
-void clock_byte_write(uint32 offset, uint8 data)
-{
-}
-
-void clock_word_write(uint32 offset, uint16 data)
-{
-}
-
-uint8 clock_byte_read(uint32 offset)
-{
- return 0xFF;
-}
-
-uint16 clock_word_read(uint32 offset)
-{
- return 0xFFFF;
-}*/
-
-
/*
void OPCallback(void)
{
bool keyHeld1 = false, keyHeld2 = false, keyHeld3 = false;
int objectPtr = 0;
bool startMemLog = false;
-extern bool doDSPDis;
+extern bool doDSPDis, doGPUDis;
+bool blitterSingleStep = false;
+bool bssGo = false;
+bool bssHeld = false;
void joystick_init(void)
{
WriteLog("\n--------> MARK!\n\n");
if (keystate[SDLK_t])
doDSPDis = true;
+ if (keystate[SDLK_y])
+ doGPUDis = true;
+ // BLITTER single step
+ if (keystate[SDLK_F5])
+ blitterSingleStep = true;
+
+ if (keystate[SDLK_F6])
+ {
+ if (!bssHeld)
+ {
+ bssHeld = true;
+ bssGo = true;
+ }
+ }
+ else
+ bssHeld = false;
// Joystick support [nwagenaar]
// Let us create the texture information :
sdlemu_create_texture(src, dst, filter, src_bpp);
-
sdlemu_create_overlay(dst, src_bpp);
}