X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.h;h=017859035fc935987901c2771ec9f7e5bd44bc46;hb=ef4eb506de324df73bcda06f027a20349c69d05f;hp=f443baebfdcd2d32f6db5579d839be1de71bbaf4;hpb=406c96c547a11046f63cb88bd0bc666003812608;p=picodrive.git diff --git a/Pico/Pico.h b/Pico/Pico.h index f443bae..0178590 100644 --- a/Pico/Pico.h +++ b/Pico/Pico.h @@ -71,8 +71,20 @@ extern int (*PicoMCDcloseTray)(void); extern int PicoCDBuffers; // Pico/Pico.c -extern int PicoPicoPenPos[2]; // x: 0x03c-0x17d, y: 0x200-0x2d8 -extern int PicoPicoPage; +#define XPCM_BUFFER_SIZE (320+32) +typedef struct +{ + int pen_pos[2]; + int page; + // internal + int fifo_bytes; // free bytes in FIFO + int fifo_line_bytes; // float part, << 16 + int line_counter; + unsigned short r1, r12; + unsigned char xpcm_buffer[XPCM_BUFFER_SIZE+4]; + unsigned char *xpcm_ptr; +} picohw_state; +extern picohw_state PicoPicohw; // Area.c typedef size_t (arearw)(void *p, size_t _size, size_t _n, void *file);