X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcarthw%2Fsvp%2Fssp16.h;h=ec363f091e3906e67330ec944418dfac5f410261;hb=8e5427a06854695302a879dba5f0cbb3886e7253;hp=ef222dff729c47abf984ee11a03f4a70a9bae6b7;hpb=017512f2823405ea2d02fa04b4c0754d7c4cba65;p=picodrive.git diff --git a/Pico/carthw/svp/ssp16.h b/Pico/carthw/svp/ssp16.h index ef222df..ec363f0 100644 --- a/Pico/carthw/svp/ssp16.h +++ b/Pico/carthw/svp/ssp16.h @@ -1,3 +1,10 @@ +// basic, incomplete SSP160x (SSP1601?) interpreter + +// (c) Copyright 2008, Grazvydas "notaz" Ignotas +// Free for non-commercial use. + +// For commercial use, separate licencing terms must be obtained. + // register names enum { @@ -37,8 +44,12 @@ typedef struct unsigned int pmac_read[6]; // read modes/addrs for PM0-PM5 unsigned int pmac_write[6]; // write ... // - #define SSP_PMC_HAVE_ADDR 1 // address written to PMAC, waiting for mode - #define SSP_PMC_SET 2 // PMAC is set + #define SSP_PMC_HAVE_ADDR 0x0001 // address written to PMAC, waiting for mode + #define SSP_PMC_SET 0x0002 // PMAC is set + #define SSP_WAIT_PM0 0x2000 // bit1 in PM0 + #define SSP_WAIT_30FE06 0x4000 // ssp tight loops on 30FE08 to become non-zero + #define SSP_WAIT_30FE08 0x8000 // same for 30FE06 + #define SSP_WAIT_MASK 0xe000 unsigned int emu_status; unsigned int pad[30]; } ssp1601_t;