void DbpString(char *str)
{
/* this holds up stuff unless we're connected to usb */
- if (!usbattached)
- return;
+// if (!usbattached)
+// return;
UsbCommand c;
c.cmd = CMD_DEBUG_PRINT_STRING;
void DbpIntegers(int x1, int x2, int x3)
{
/* this holds up stuff unless we're connected to usb */
- if (!usbattached)
- return;
+// if (!usbattached)
+// return;
UsbCommand c;
c.cmd = CMD_DEBUG_PRINT_INTEGERS;
LCDReset();
break;
#endif
+ case CMD_READ_MEM:
+ ReadMem(c->ext1);
+ break;
case CMD_SWEEP_LF:
SweepLFrange();
break;
}
}
+void ReadMem(int addr)
+{
+ const DWORD *data = ((DWORD *)addr);
+ int i;
+
+ DbpString("Reading memory at address");
+ DbpIntegers(0, 0, addr);
+ for (i = 0; i < 8; i+= 2)
+ DbpIntegers(0, data[i], data[i+1]);
+}
+
void AppMain(void)
{
memset(BigBuf,0,sizeof(BigBuf));