Removed (pretty inconsistently used) tab chars from source code base.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* 6502.h */
|
||||
/* 6502.h */
|
||||
/* */
|
||||
/* 6502 specific declarations */
|
||||
/* 6502 specific declarations */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -47,9 +47,9 @@ typedef unsigned size_t;
|
||||
|
||||
|
||||
/* Possible returns of getcpu() */
|
||||
#define CPU_6502 0
|
||||
#define CPU_65C02 1
|
||||
#define CPU_65816 2
|
||||
#define CPU_6502 0
|
||||
#define CPU_65C02 1
|
||||
#define CPU_65816 2
|
||||
|
||||
unsigned char getcpu (void);
|
||||
/* Detect the CPU the program is running on */
|
||||
@@ -57,29 +57,29 @@ unsigned char getcpu (void);
|
||||
|
||||
|
||||
/* Macros for CPU instructions */
|
||||
#define BRK() __asm__ ("brk")
|
||||
#define CLI() __asm__ ("cli")
|
||||
#define SEI() __asm__ ("sei")
|
||||
#define BRK() __asm__ ("brk")
|
||||
#define CLI() __asm__ ("cli")
|
||||
#define SEI() __asm__ ("sei")
|
||||
|
||||
|
||||
|
||||
/* Struct that holds the registers for the sys function */
|
||||
struct regs {
|
||||
unsigned char a; /* A register value */
|
||||
unsigned char x; /* X register value */
|
||||
unsigned char y; /* Y register value */
|
||||
unsigned char flags; /* Flags value */
|
||||
unsigned pc; /* Program counter */
|
||||
unsigned char a; /* A register value */
|
||||
unsigned char x; /* X register value */
|
||||
unsigned char y; /* Y register value */
|
||||
unsigned char flags; /* Flags value */
|
||||
unsigned pc; /* Program counter */
|
||||
};
|
||||
|
||||
/* Defines for the flags in the regs structure */
|
||||
#define F6502_N 0x80 /* N flag */
|
||||
#define F6502_V 0x40 /* V flag */
|
||||
#define F6502_B 0x10 /* B flag */
|
||||
#define F6502_D 0x08 /* D flag */
|
||||
#define F6502_I 0x04 /* I flag */
|
||||
#define F6502_Z 0x02 /* Z flag */
|
||||
#define F6502_C 0x01 /* C flag */
|
||||
#define F6502_N 0x80 /* N flag */
|
||||
#define F6502_V 0x40 /* V flag */
|
||||
#define F6502_B 0x10 /* B flag */
|
||||
#define F6502_D 0x08 /* D flag */
|
||||
#define F6502_I 0x04 /* I flag */
|
||||
#define F6502_Z 0x02 /* Z flag */
|
||||
#define F6502_C 0x01 /* C flag */
|
||||
|
||||
/* Function to call any machine language subroutine. All registers in the
|
||||
* regs structure are passed into the routine and the results are passed
|
||||
@@ -98,11 +98,11 @@ void __fastcall__ _sys (struct regs* r);
|
||||
* vector if the program ends.
|
||||
*/
|
||||
|
||||
extern unsigned char brk_a; /* A register value */
|
||||
extern unsigned char brk_x; /* X register value */
|
||||
extern unsigned char brk_y; /* Y register value */
|
||||
extern unsigned char brk_sr; /* Status register */
|
||||
extern unsigned brk_pc; /* PC value */
|
||||
extern unsigned char brk_a; /* A register value */
|
||||
extern unsigned char brk_x; /* X register value */
|
||||
extern unsigned char brk_y; /* Y register value */
|
||||
extern unsigned char brk_sr; /* Status register */
|
||||
extern unsigned brk_pc; /* PC value */
|
||||
|
||||
typedef void (*brk_handler) (void);
|
||||
/* Type of the break handler */
|
||||
@@ -116,8 +116,8 @@ void reset_brk (void);
|
||||
|
||||
|
||||
/* Possible returns for irq_handler() */
|
||||
#define IRQ_NOT_HANDLED 0
|
||||
#define IRQ_HANDLED 1
|
||||
#define IRQ_NOT_HANDLED 0
|
||||
#define IRQ_HANDLED 1
|
||||
|
||||
typedef unsigned char (*irq_handler) (void);
|
||||
/* Type of the C level interrupt request handler */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* */
|
||||
/* _6522.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -41,22 +41,22 @@
|
||||
* the compiler doesn't guarantee any order when writing 16 bit values.
|
||||
*/
|
||||
struct __6522 {
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char t1_lo; /* Timer 1, low byte */
|
||||
unsigned char t1_hi; /* Timer 1, high byte */
|
||||
unsigned char t1l_lo; /* Timer 1 latch, low byte */
|
||||
unsigned char t1l_hi; /* Timer 1 latch, high byte */
|
||||
unsigned char t2_lo; /* Timer 2, low byte */
|
||||
unsigned char t2_hi; /* Timer 2, high byte */
|
||||
unsigned char sr; /* Shift register */
|
||||
unsigned char acr; /* Auxiliary control register */
|
||||
unsigned char pcr; /* Peripheral control register */
|
||||
unsigned char ifr; /* Interrupt flag register */
|
||||
unsigned char ier; /* Interrupt enable register */
|
||||
unsigned char pra2; /* Port register A w/o handshake */
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char t1_lo; /* Timer 1, low byte */
|
||||
unsigned char t1_hi; /* Timer 1, high byte */
|
||||
unsigned char t1l_lo; /* Timer 1 latch, low byte */
|
||||
unsigned char t1l_hi; /* Timer 1 latch, high byte */
|
||||
unsigned char t2_lo; /* Timer 2, low byte */
|
||||
unsigned char t2_hi; /* Timer 2, high byte */
|
||||
unsigned char sr; /* Shift register */
|
||||
unsigned char acr; /* Auxiliary control register */
|
||||
unsigned char pcr; /* Peripheral control register */
|
||||
unsigned char ifr; /* Interrupt flag register */
|
||||
unsigned char ier; /* Interrupt enable register */
|
||||
unsigned char pra2; /* Port register A w/o handshake */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _6525.h */
|
||||
/* _6525.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -43,14 +43,14 @@
|
||||
* union to do that, however that would introduce an additional name.
|
||||
*/
|
||||
struct __6525 {
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char prc; /* Port register C */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ddrc; /* Data direction register C */
|
||||
unsigned char cr; /* Control register */
|
||||
unsigned char air; /* Active interrupt register */
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char prc; /* Port register C */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ddrc; /* Data direction register C */
|
||||
unsigned char cr; /* Control register */
|
||||
unsigned char air; /* Active interrupt register */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _6526.h */
|
||||
/* _6526.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -44,22 +44,22 @@
|
||||
* the compiler doesn't guarantee any order when writing 16 bit values.
|
||||
*/
|
||||
struct __6526 {
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ta_lo; /* Timer A, low byte */
|
||||
unsigned char ta_hi; /* Timer A, high byte */
|
||||
unsigned char tb_lo; /* Timer B, low byte */
|
||||
unsigned char tb_hi; /* Timer B, high byte */
|
||||
unsigned char tod_10; /* TOD, 1/10 sec. */
|
||||
unsigned char tod_sec; /* TOD, seconds */
|
||||
unsigned char tod_min; /* TOD, minutes */
|
||||
unsigned char tod_hour; /* TOD, hours */
|
||||
unsigned char sdr; /* Serial data register */
|
||||
unsigned char icr; /* Interrupt control register */
|
||||
unsigned char cra; /* Control register A */
|
||||
unsigned char crb; /* Control register B */
|
||||
unsigned char pra; /* Port register A */
|
||||
unsigned char prb; /* Port register B */
|
||||
unsigned char ddra; /* Data direction register A */
|
||||
unsigned char ddrb; /* Data direction register B */
|
||||
unsigned char ta_lo; /* Timer A, low byte */
|
||||
unsigned char ta_hi; /* Timer A, high byte */
|
||||
unsigned char tb_lo; /* Timer B, low byte */
|
||||
unsigned char tb_hi; /* Timer B, high byte */
|
||||
unsigned char tod_10; /* TOD, 1/10 sec. */
|
||||
unsigned char tod_sec; /* TOD, seconds */
|
||||
unsigned char tod_min; /* TOD, minutes */
|
||||
unsigned char tod_hour; /* TOD, hours */
|
||||
unsigned char sdr; /* Serial data register */
|
||||
unsigned char icr; /* Interrupt control register */
|
||||
unsigned char cra; /* Control register A */
|
||||
unsigned char crb; /* Control register B */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _6545.h */
|
||||
/* _6545.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,8 +40,8 @@
|
||||
|
||||
/* Define a structure with the 6545 register offsets */
|
||||
struct __6545 {
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char data; /* Data register */
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char data; /* Data register */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _6551.h */
|
||||
/* _6551.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,10 +40,10 @@
|
||||
|
||||
/* Define a structure with the 6551 register offsets */
|
||||
struct __6551 {
|
||||
unsigned char data; /* Data register */
|
||||
unsigned char status; /* Status register */
|
||||
unsigned char cmd; /* Command register */
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char data; /* Data register */
|
||||
unsigned char status; /* Status register */
|
||||
unsigned char cmd; /* Command register */
|
||||
unsigned char ctrl; /* Control register */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _gtia.h */
|
||||
/* _gtia.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -29,19 +29,19 @@ struct usedblock {
|
||||
* Beware: Field order is significant!
|
||||
*/
|
||||
struct freeblock {
|
||||
unsigned size;
|
||||
struct freeblock* next;
|
||||
struct freeblock* prev;
|
||||
unsigned size;
|
||||
struct freeblock* next;
|
||||
struct freeblock* prev;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Variables that describe the heap */
|
||||
extern unsigned* _heaporg; /* Bottom of heap */
|
||||
extern unsigned* _heapptr; /* Current top */
|
||||
extern unsigned* _heapend; /* Upper limit */
|
||||
extern struct freeblock* _heapfirst; /* First free block in list */
|
||||
extern struct freeblock* _heaplast; /* Last free block in list */
|
||||
extern unsigned* _heaporg; /* Bottom of heap */
|
||||
extern unsigned* _heapptr; /* Current top */
|
||||
extern unsigned* _heapend; /* Upper limit */
|
||||
extern struct freeblock* _heapfirst; /* First free block in list */
|
||||
extern struct freeblock* _heaplast; /* Last free block in list */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ struct __mikey {
|
||||
unsigned char mtest2; // 0xFD9E
|
||||
unsigned char unused5; // 0xFD9F not used
|
||||
unsigned char palette[32]; // 0xFDA0 - 0xFDBF palette 32 bytes
|
||||
// 0xFDC0 - 0xFDFF not used
|
||||
// 0xFDC0 - 0xFDFF not used
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _pbi.h */
|
||||
/* _pbi.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -32,31 +32,31 @@
|
||||
#define __PBI_H
|
||||
|
||||
/* parallel bus interface area */
|
||||
#define PBI ((unsigned char*)0xD100)
|
||||
#define PBI ((unsigned char*)0xD100)
|
||||
|
||||
/* parallel device IRQ status */
|
||||
#define PDVI ((unsigned char*)0xD1FF)
|
||||
#define PDVI ((unsigned char*)0xD1FF)
|
||||
|
||||
/* parallel device select */
|
||||
#define PDVS ((unsigned char*)0xD1FF)
|
||||
#define PDVS ((unsigned char*)0xD1FF)
|
||||
|
||||
/* parallel bus interface RAM area */
|
||||
#define PBIRAM ((unsigned char*)0xD600)
|
||||
#define PBIRAM ((unsigned char*)0xD600)
|
||||
|
||||
/* parallel device ID 1 */
|
||||
#define PDID1 ((unsigned char*)0xD803)
|
||||
#define PDID1 ((unsigned char*)0xD803)
|
||||
|
||||
/* parallel device I/O vector */
|
||||
#define PDIDV ((unsigned char*)0xD805)
|
||||
#define PDIDV ((unsigned char*)0xD805)
|
||||
|
||||
/* parallel device IRQ vector */
|
||||
#define PDIRQV ((unsigned char*)0xD808)
|
||||
#define PDIRQV ((unsigned char*)0xD808)
|
||||
|
||||
/* parallel device ID 2 */
|
||||
#define PDID2 ((unsigned char*)0xD80B)
|
||||
#define PDID2 ((unsigned char*)0xD80B)
|
||||
|
||||
/* parallel device vector table */
|
||||
#define PDVV ((unsigned char*)0xD80D)
|
||||
#define PDVV ((unsigned char*)0xD80D)
|
||||
|
||||
/* End of _pbi.h */
|
||||
#endif /* #ifndef __PBI_H */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _pia.h */
|
||||
/* _pia.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _pokey.h */
|
||||
/* _pokey.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _sid.h */
|
||||
/* _sid.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,23 +40,23 @@
|
||||
|
||||
/* Define a structure with the sid register offsets */
|
||||
struct __sid_voice {
|
||||
unsigned freq; /* Frequency */
|
||||
unsigned pw; /* Pulse width */
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char ad; /* Attack/decay */
|
||||
unsigned char sr; /* Sustain/release */
|
||||
unsigned freq; /* Frequency */
|
||||
unsigned pw; /* Pulse width */
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char ad; /* Attack/decay */
|
||||
unsigned char sr; /* Sustain/release */
|
||||
};
|
||||
struct __sid {
|
||||
struct __sid_voice v1; /* Voice 1 */
|
||||
struct __sid_voice v2; /* Voice 2 */
|
||||
struct __sid_voice v3; /* Voice 3 */
|
||||
unsigned flt_freq; /* Filter frequency */
|
||||
unsigned char flt_ctrl; /* Filter control register */
|
||||
unsigned char amp; /* Amplitude */
|
||||
unsigned char ad1; /* A/D converter 1 */
|
||||
unsigned char ad2; /* A/D converter 2 */
|
||||
unsigned char noise; /* Noise generator */
|
||||
unsigned char read3; /* Value of voice 3 */
|
||||
struct __sid_voice v1; /* Voice 1 */
|
||||
struct __sid_voice v2; /* Voice 2 */
|
||||
struct __sid_voice v3; /* Voice 3 */
|
||||
unsigned flt_freq; /* Filter frequency */
|
||||
unsigned char flt_ctrl; /* Filter control register */
|
||||
unsigned char amp; /* Amplitude */
|
||||
unsigned char ad1; /* A/D converter 1 */
|
||||
unsigned char ad2; /* A/D converter 2 */
|
||||
unsigned char noise; /* Noise generator */
|
||||
unsigned char read3; /* Value of voice 3 */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -310,7 +310,7 @@ struct __suzy {
|
||||
unsigned char parstat; // 0xFCC2 parallel port status
|
||||
unsigned char pardata; // 0xFCC3 parallel port data
|
||||
unsigned char howie; // 0xFCC4 howie (?)
|
||||
// 0xFCC5 - 0xFCFF unused
|
||||
// 0xFCC5 - 0xFCFF unused
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _ted.h */
|
||||
/* _ted.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _vdc.h */
|
||||
/* _vdc.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,8 +40,8 @@
|
||||
|
||||
/* Define a structure with the vdc register offsets */
|
||||
struct __vdc {
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char data; /* Data register */
|
||||
unsigned char ctrl; /* Control register */
|
||||
unsigned char data; /* Data register */
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* _vic.h */
|
||||
/* _vic.h */
|
||||
/* */
|
||||
/* Internal include file, do not use directly */
|
||||
/* Internal include file, do not use directly */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,21 +40,21 @@
|
||||
|
||||
/* Define a structure with the vic register offsets */
|
||||
struct __vic {
|
||||
unsigned char leftborder;
|
||||
unsigned char upperborder;
|
||||
unsigned char charsperline; /* Characters per line */
|
||||
unsigned char linecount; /* Number of lines */
|
||||
unsigned char rasterline; /* Current raster line */
|
||||
unsigned char addr; /* Address of chargen and video ram */
|
||||
unsigned char strobe_x; /* Light pen, X position */
|
||||
unsigned char strobe_y; /* Light pen, Y position */
|
||||
unsigned char analog_x; /* Analog input X */
|
||||
unsigned char analog_y; /* Analog input Y */
|
||||
unsigned char voice1; /* Sound generator #1 */
|
||||
unsigned char voice2; /* Sound generator #2 */
|
||||
unsigned char voice3; /* Sound generator #3 */
|
||||
unsigned char noise; /* Noise generator */
|
||||
unsigned char volume_color; /* Bits 0..3: volume, 4..7: color */
|
||||
unsigned char leftborder;
|
||||
unsigned char upperborder;
|
||||
unsigned char charsperline; /* Characters per line */
|
||||
unsigned char linecount; /* Number of lines */
|
||||
unsigned char rasterline; /* Current raster line */
|
||||
unsigned char addr; /* Address of chargen and video ram */
|
||||
unsigned char strobe_x; /* Light pen, X position */
|
||||
unsigned char strobe_y; /* Light pen, Y position */
|
||||
unsigned char analog_x; /* Analog input X */
|
||||
unsigned char analog_y; /* Analog input Y */
|
||||
unsigned char voice1; /* Sound generator #1 */
|
||||
unsigned char voice2; /* Sound generator #2 */
|
||||
unsigned char voice3; /* Sound generator #3 */
|
||||
unsigned char noise; /* Noise generator */
|
||||
unsigned char volume_color; /* Bits 0..3: volume, 4..7: color */
|
||||
unsigned char bg_border_color;/* Background and border color */
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* ace.h */
|
||||
/* ace.h */
|
||||
/* */
|
||||
/* ACE system specific definitions */
|
||||
/* ACE system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -52,10 +52,10 @@
|
||||
|
||||
|
||||
struct aceDirentBuf {
|
||||
unsigned long ad_size; /* Size in bytes */
|
||||
unsigned char ad_date [8]; /* YY:YY:MM:DD:HH:MM:SS:TW */
|
||||
char ad_type [4]; /* File type as ASCIIZ string */
|
||||
unsigned char ad_flags; /* File flags */
|
||||
unsigned long ad_size; /* Size in bytes */
|
||||
unsigned char ad_date [8]; /* YY:YY:MM:DD:HH:MM:SS:TW */
|
||||
char ad_type [4]; /* File type as ASCIIZ string */
|
||||
unsigned char ad_flags; /* File flags */
|
||||
unsigned char ad_usage; /* More flags */
|
||||
unsigned char ad_namelen; /* Length of name */
|
||||
char ad_name [17]; /* Name itself, ASCIIZ */
|
||||
@@ -69,27 +69,27 @@ int aceDirRead (int handle, struct aceDirentBuf* buf);
|
||||
typedef unsigned int aceKey;
|
||||
|
||||
/* #defines for the shift mask returned by aceConGetKey */
|
||||
#define aceSH_KEY 0x00FF /* Mask key itself */
|
||||
#define aceSH_MASK 0xFF00 /* Mask shift mask */
|
||||
#define aceSH_EXT 0x2000 /* Extended key */
|
||||
#define aceSH_CAPS 0x1000 /* Caps lock key */
|
||||
#define aceSH_ALT 0x0800 /* Alternate key */
|
||||
#define aceSH_CTRL 0x0400 /* Ctrl key */
|
||||
#define aceSH_CBM 0x0200 /* Commodore key */
|
||||
#define aceSH_SHIFT 0x0100 /* Shift key */
|
||||
#define aceSH_KEY 0x00FF /* Mask key itself */
|
||||
#define aceSH_MASK 0xFF00 /* Mask shift mask */
|
||||
#define aceSH_EXT 0x2000 /* Extended key */
|
||||
#define aceSH_CAPS 0x1000 /* Caps lock key */
|
||||
#define aceSH_ALT 0x0800 /* Alternate key */
|
||||
#define aceSH_CTRL 0x0400 /* Ctrl key */
|
||||
#define aceSH_CBM 0x0200 /* Commodore key */
|
||||
#define aceSH_SHIFT 0x0100 /* Shift key */
|
||||
|
||||
/* #defines for the options in aceConSetOpt/aceConGetOpt */
|
||||
#define aceOP_PUTMASK 1 /* Console put mask */
|
||||
#define aceOP_CHARCOLOR 2 /* Character color */
|
||||
#define aceOP_CHARATTR 3 /* Character attribute */
|
||||
#define aceOP_FILLCOLOR 4 /* Fill color */
|
||||
#define aceOP_FILLATTR 5 /* Fill attribute */
|
||||
#define aceOP_CRSCOLOR 6 /* Cursor color */
|
||||
#define aceOP_CRSWRAP 7 /* Force cursor wrap */
|
||||
#define aceOP_SHSCROLL 8 /* Shift keys for scrolling */
|
||||
#define aceOP_MOUSCALE 9 /* Mouse scaling */
|
||||
#define aceOP_RPTDELAY 10 /* Key repeat delay */
|
||||
#define aceOP_RPTRATE 11 /* Key repeat rate */
|
||||
#define aceOP_PUTMASK 1 /* Console put mask */
|
||||
#define aceOP_CHARCOLOR 2 /* Character color */
|
||||
#define aceOP_CHARATTR 3 /* Character attribute */
|
||||
#define aceOP_FILLCOLOR 4 /* Fill color */
|
||||
#define aceOP_FILLATTR 5 /* Fill attribute */
|
||||
#define aceOP_CRSCOLOR 6 /* Cursor color */
|
||||
#define aceOP_CRSWRAP 7 /* Force cursor wrap */
|
||||
#define aceOP_SHSCROLL 8 /* Shift keys for scrolling */
|
||||
#define aceOP_MOUSCALE 9 /* Mouse scaling */
|
||||
#define aceOP_RPTDELAY 10 /* Key repeat delay */
|
||||
#define aceOP_RPTRATE 11 /* Key repeat rate */
|
||||
|
||||
/* Console functions */
|
||||
void aceConWrite (char* buf, size_t count);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* apple2.h */
|
||||
/* apple2.h */
|
||||
/* */
|
||||
/* Apple ][ system specific definitions */
|
||||
/* Apple ][ system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ extern void a2_lo_tgi[];
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* apple2enh.h */
|
||||
/* */
|
||||
/* enhanced Apple //e system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* apple2enh.h */
|
||||
/* */
|
||||
/* enhanced Apple //e system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2004 Oliver Schmidt, <ol.sc@web.de> */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
/* warranty. In no event will the authors be held liable for any damages */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* Permission is granted to anyone to use this software for any purpose, */
|
||||
/* including commercial applications, and to alter it and redistribute it */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* 1. The origin of this software must not be misrepresented; you must not */
|
||||
/* claim that you wrote the original software. If you use this software */
|
||||
/* in a product, an acknowledgment in the product documentation would be */
|
||||
/* appreciated but is not required. */
|
||||
/* appreciated but is not required. */
|
||||
/* 2. Altered source versions must be plainly marked as such, and must not */
|
||||
/* be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or altered from any source */
|
||||
/* distribution. */
|
||||
/* */
|
||||
/* be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or altered from any source */
|
||||
/* distribution. */
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
#define CH_F10 0xB0
|
||||
|
||||
/* Styles for textframe */
|
||||
#define TEXTFRAME_WIDE 0x00
|
||||
#define TEXTFRAME_TALL 0x04
|
||||
#define TEXTFRAME_WIDE 0x00
|
||||
#define TEXTFRAME_TALL 0x04
|
||||
|
||||
/* Video modes */
|
||||
#define VIDEOMODE_40x24 0x0011
|
||||
@@ -101,7 +101,7 @@ extern void a2e_lo_tgi[];
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* assert.h */
|
||||
/* assert.h */
|
||||
/* */
|
||||
/* Diagnostics */
|
||||
/* Diagnostics */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -43,7 +43,7 @@
|
||||
# define assert(expr)
|
||||
#else
|
||||
extern void _afailed (const char*, unsigned);
|
||||
# define assert(expr) ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
|
||||
# define assert(expr) ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* atari.h */
|
||||
/* atari.h */
|
||||
/* */
|
||||
/* Atari system specific definitions */
|
||||
/* Atari system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -45,11 +45,11 @@
|
||||
|
||||
|
||||
/* Character codes */
|
||||
#define CH_DELCHR 0xFE /* delete char under the cursor */
|
||||
#define CH_ENTER 0x9B
|
||||
#define CH_ESC 0x1B
|
||||
#define CH_CURS_UP 28
|
||||
#define CH_CURS_DOWN 29
|
||||
#define CH_DELCHR 0xFE /* delete char under the cursor */
|
||||
#define CH_ENTER 0x9B
|
||||
#define CH_ESC 0x1B
|
||||
#define CH_CURS_UP 28
|
||||
#define CH_CURS_DOWN 29
|
||||
#define CH_CURS_LEFT 30
|
||||
#define CH_CURS_RIGHT 31
|
||||
|
||||
@@ -63,26 +63,26 @@
|
||||
#define CH_INSLINE 0x9D /* insert line */
|
||||
|
||||
/* These are defined to be Atari + NumberKey */
|
||||
#define CH_F1 177
|
||||
#define CH_F2 178
|
||||
#define CH_F3 179
|
||||
#define CH_F4 180
|
||||
#define CH_F5 181
|
||||
#define CH_F6 182
|
||||
#define CH_F7 183
|
||||
#define CH_F8 184
|
||||
#define CH_F9 185
|
||||
#define CH_F10 176
|
||||
#define CH_F1 177
|
||||
#define CH_F2 178
|
||||
#define CH_F3 179
|
||||
#define CH_F4 180
|
||||
#define CH_F5 181
|
||||
#define CH_F6 182
|
||||
#define CH_F7 183
|
||||
#define CH_F8 184
|
||||
#define CH_F9 185
|
||||
#define CH_F10 176
|
||||
|
||||
#define CH_ULCORNER 0x11
|
||||
#define CH_URCORNER 0x05
|
||||
#define CH_LLCORNER 0x1A
|
||||
#define CH_LRCORNER 0x03
|
||||
#define CH_TTEE 0x17
|
||||
#define CH_BTEE 0x18
|
||||
#define CH_LTEE 0x01
|
||||
#define CH_RTEE 0x04
|
||||
#define CH_CROSS 0x13
|
||||
#define CH_ULCORNER 0x11
|
||||
#define CH_URCORNER 0x05
|
||||
#define CH_LLCORNER 0x1A
|
||||
#define CH_LRCORNER 0x03
|
||||
#define CH_TTEE 0x17
|
||||
#define CH_BTEE 0x18
|
||||
#define CH_LTEE 0x01
|
||||
#define CH_RTEE 0x04
|
||||
#define CH_CROSS 0x13
|
||||
#define CH_HLINE 0x12
|
||||
#define CH_VLINE 0x7C
|
||||
|
||||
@@ -114,22 +114,22 @@
|
||||
/* Color defines, similar to c64 colors (untested) */
|
||||
/* Note that the conio color implementation is monochrome (bgcolor and textcolor are only placeholders) */
|
||||
/* Use the defines with the setcolor() or _atari_xxxcolor() functions */
|
||||
#define COLOR_BLACK _gtia_mkcolor(HUE_GREY,0)
|
||||
#define COLOR_WHITE _gtia_mkcolor(HUE_GREY,7)
|
||||
#define COLOR_RED _gtia_mkcolor(HUE_REDORANGE,1)
|
||||
#define COLOR_CYAN _gtia_mkcolor(HUE_CYAN,3)
|
||||
#define COLOR_VIOLET _gtia_mkcolor(HUE_PURPLE,4)
|
||||
#define COLOR_GREEN _gtia_mkcolor(HUE_GREEN,2)
|
||||
#define COLOR_BLUE _gtia_mkcolor(HUE_BLUE,2)
|
||||
#define COLOR_YELLOW _gtia_mkcolor(HUE_YELLOW,7)
|
||||
#define COLOR_ORANGE _gtia_mkcolor(HUE_ORANGE,5)
|
||||
#define COLOR_BROWN _gtia_mkcolor(HUE_YELLOW,2)
|
||||
#define COLOR_LIGHTRED _gtia_mkcolor(HUE_REDORANGE,6)
|
||||
#define COLOR_GRAY1 _gtia_mkcolor(HUE_GREY,2)
|
||||
#define COLOR_GRAY2 _gtia_mkcolor(HUE_GREY,3)
|
||||
#define COLOR_LIGHTGREEN _gtia_mkcolor(HUE_GREEN,6)
|
||||
#define COLOR_LIGHTBLUE _gtia_mkcolor(HUE_BLUE,6)
|
||||
#define COLOR_GRAY3 _gtia_mkcolor(HUE_GREY,5)
|
||||
#define COLOR_BLACK _gtia_mkcolor(HUE_GREY,0)
|
||||
#define COLOR_WHITE _gtia_mkcolor(HUE_GREY,7)
|
||||
#define COLOR_RED _gtia_mkcolor(HUE_REDORANGE,1)
|
||||
#define COLOR_CYAN _gtia_mkcolor(HUE_CYAN,3)
|
||||
#define COLOR_VIOLET _gtia_mkcolor(HUE_PURPLE,4)
|
||||
#define COLOR_GREEN _gtia_mkcolor(HUE_GREEN,2)
|
||||
#define COLOR_BLUE _gtia_mkcolor(HUE_BLUE,2)
|
||||
#define COLOR_YELLOW _gtia_mkcolor(HUE_YELLOW,7)
|
||||
#define COLOR_ORANGE _gtia_mkcolor(HUE_ORANGE,5)
|
||||
#define COLOR_BROWN _gtia_mkcolor(HUE_YELLOW,2)
|
||||
#define COLOR_LIGHTRED _gtia_mkcolor(HUE_REDORANGE,6)
|
||||
#define COLOR_GRAY1 _gtia_mkcolor(HUE_GREY,2)
|
||||
#define COLOR_GRAY2 _gtia_mkcolor(HUE_GREY,3)
|
||||
#define COLOR_LIGHTGREEN _gtia_mkcolor(HUE_GREEN,6)
|
||||
#define COLOR_LIGHTBLUE _gtia_mkcolor(HUE_BLUE,6)
|
||||
#define COLOR_GRAY3 _gtia_mkcolor(HUE_GREY,5)
|
||||
|
||||
/* color register functions */
|
||||
extern void __fastcall__ _setcolor (unsigned char color_reg, unsigned char hue, unsigned char luminace);
|
||||
|
||||
100
include/atmos.h
100
include/atmos.h
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* atmos.h */
|
||||
/* atmos.h */
|
||||
/* */
|
||||
/* Oric Atmos system-specific definitions */
|
||||
/* Oric Atmos system-specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -47,82 +47,82 @@
|
||||
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_RED 0x01
|
||||
#define COLOR_GREEN 0x02
|
||||
#define COLOR_YELLOW 0x03
|
||||
#define COLOR_BLUE 0x04
|
||||
#define COLOR_MAGENTA 0x05
|
||||
#define COLOR_CYAN 0x06
|
||||
#define COLOR_WHITE 0x07
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_RED 0x01
|
||||
#define COLOR_GREEN 0x02
|
||||
#define COLOR_YELLOW 0x03
|
||||
#define COLOR_BLUE 0x04
|
||||
#define COLOR_MAGENTA 0x05
|
||||
#define COLOR_CYAN 0x06
|
||||
#define COLOR_WHITE 0x07
|
||||
|
||||
/* TGI color defines */
|
||||
/* White and red are swapped, so that the pallete
|
||||
** driver is compatible with black-and-white drivers.
|
||||
*/
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE 1
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_MAGENTA COLOR_MAGENTA
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_RED 7
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE 1
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_MAGENTA COLOR_MAGENTA
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_RED 7
|
||||
|
||||
|
||||
|
||||
/* Define hardware */
|
||||
#include <_6522.h>
|
||||
#define VIA (*(struct __6522*)0x300)
|
||||
#define VIA (*(struct __6522*)0x300)
|
||||
|
||||
|
||||
|
||||
/* These are defined to be FUNCT + NumberKey */
|
||||
#define CH_F1 0xB1
|
||||
#define CH_F2 0xB2
|
||||
#define CH_F3 0xB3
|
||||
#define CH_F4 0xB4
|
||||
#define CH_F5 0xB5
|
||||
#define CH_F6 0xB6
|
||||
#define CH_F7 0xB7
|
||||
#define CH_F8 0xB8
|
||||
#define CH_F9 0xB9
|
||||
#define CH_F10 0xB0
|
||||
#define CH_F1 0xB1
|
||||
#define CH_F2 0xB2
|
||||
#define CH_F3 0xB3
|
||||
#define CH_F4 0xB4
|
||||
#define CH_F5 0xB5
|
||||
#define CH_F6 0xB6
|
||||
#define CH_F7 0xB7
|
||||
#define CH_F8 0xB8
|
||||
#define CH_F9 0xB9
|
||||
#define CH_F10 0xB0
|
||||
|
||||
|
||||
|
||||
/* Character codes */
|
||||
#define CH_ULCORNER '+'
|
||||
#define CH_URCORNER '+'
|
||||
#define CH_LLCORNER '+'
|
||||
#define CH_LRCORNER '+'
|
||||
#define CH_TTEE '+'
|
||||
#define CH_BTEE '+'
|
||||
#define CH_LTEE '+'
|
||||
#define CH_RTEE '+'
|
||||
#define CH_CROSS '+'
|
||||
#define CH_CURS_UP 11
|
||||
#define CH_CURS_DOWN 10
|
||||
#define CH_CURS_LEFT 8
|
||||
#define CH_CURS_RIGHT 9
|
||||
#define CH_DEL 127
|
||||
#define CH_ENTER 13
|
||||
#define CH_STOP 3
|
||||
#define CH_LIRA 95
|
||||
#define CH_ESC 27
|
||||
#define CH_ULCORNER '+'
|
||||
#define CH_URCORNER '+'
|
||||
#define CH_LLCORNER '+'
|
||||
#define CH_LRCORNER '+'
|
||||
#define CH_TTEE '+'
|
||||
#define CH_BTEE '+'
|
||||
#define CH_LTEE '+'
|
||||
#define CH_RTEE '+'
|
||||
#define CH_CROSS '+'
|
||||
#define CH_CURS_UP 11
|
||||
#define CH_CURS_DOWN 10
|
||||
#define CH_CURS_LEFT 8
|
||||
#define CH_CURS_RIGHT 9
|
||||
#define CH_DEL 127
|
||||
#define CH_ENTER 13
|
||||
#define CH_STOP 3
|
||||
#define CH_LIRA 95
|
||||
#define CH_ESC 27
|
||||
|
||||
|
||||
|
||||
/* No support for dynamically loadable drivers */
|
||||
#define DYN_DRV 0
|
||||
#define DYN_DRV 0
|
||||
|
||||
|
||||
|
||||
/* The addresses of the static drivers */
|
||||
extern void atmos_pase_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void atmos_pase_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void atmos_acia_ser[];
|
||||
extern void atmos_228_200_3_tgi[];
|
||||
extern void atmos_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
||||
extern void atmos_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* c128.h */
|
||||
/* c128.h */
|
||||
/* */
|
||||
/* C128 system specific definitions */
|
||||
/* C128 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -46,50 +46,50 @@
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
|
||||
/* TGI color defines */
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
||||
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
|
||||
/* Video mode defines */
|
||||
#define VIDEOMODE_40x25 0x00
|
||||
@@ -101,22 +101,22 @@
|
||||
|
||||
/* Define hardware */
|
||||
#include <_vic2.h>
|
||||
#define VIC (*(struct __vic2*)0xD000)
|
||||
#define VIC (*(struct __vic2*)0xD000)
|
||||
|
||||
#include <_sid.h>
|
||||
#define SID (*(struct __sid*)0xD400)
|
||||
#define SID (*(struct __sid*)0xD400)
|
||||
|
||||
#include <_vdc.h>
|
||||
#define VDC (*(struct __vdc*)0xD600)
|
||||
|
||||
#include <_6526.h>
|
||||
#define CIA1 (*(struct __6526*)0xDC00)
|
||||
#define CIA2 (*(struct __6526*)0xDD00)
|
||||
#define CIA1 (*(struct __6526*)0xDC00)
|
||||
#define CIA2 (*(struct __6526*)0xDD00)
|
||||
|
||||
|
||||
|
||||
/* Define special memory areas */
|
||||
#define COLOR_RAM ((unsigned char*)0xD800)
|
||||
#define COLOR_RAM ((unsigned char*)0xD800)
|
||||
|
||||
|
||||
|
||||
@@ -128,12 +128,12 @@ extern void c128_ramcart_emd[];
|
||||
extern void c128_reu_emd[];
|
||||
extern void c128_vdc_emd[];
|
||||
extern void c128_ptvjoy_joy[];
|
||||
extern void c128_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void c128_1351_mous[]; /* Referred to by mouse_static_stddrv[] */
|
||||
extern void c128_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void c128_1351_mous[]; /* Referred to by mouse_static_stddrv[] */
|
||||
extern void c128_joy_mou[];
|
||||
extern void c128_pot_mou[];
|
||||
extern void c128_swlink_ser[];
|
||||
extern void c128_vdc_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
||||
extern void c128_vdc_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
||||
extern void c128_vdc2_tgi[];
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* c16.h */
|
||||
/* c16.h */
|
||||
/* */
|
||||
/* C16 system specific definitions */
|
||||
/* C16 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
100
include/c64.h
100
include/c64.h
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* c64.h */
|
||||
/* c64.h */
|
||||
/* */
|
||||
/* C64 system specific definitions */
|
||||
/* C64 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -46,72 +46,72 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_PURPLE COLOR_VIOLET
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
|
||||
/* TGI color defines */
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_PURPLE COLOR_PURPLE
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
||||
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_PURPLE COLOR_PURPLE
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
||||
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
|
||||
/* Define hardware */
|
||||
#include <_vic2.h>
|
||||
#define VIC (*(struct __vic2*)0xD000)
|
||||
#define VIC (*(struct __vic2*)0xD000)
|
||||
|
||||
#include <_sid.h>
|
||||
#define SID (*(struct __sid*)0xD400)
|
||||
#define SID (*(struct __sid*)0xD400)
|
||||
|
||||
#include <_6526.h>
|
||||
#define CIA1 (*(struct __6526*)0xDC00)
|
||||
#define CIA2 (*(struct __6526*)0xDD00)
|
||||
#define CIA1 (*(struct __6526*)0xDC00)
|
||||
#define CIA2 (*(struct __6526*)0xDD00)
|
||||
|
||||
/* Define special memory areas */
|
||||
#define COLOR_RAM ((unsigned char*)0xD800)
|
||||
#define COLOR_RAM ((unsigned char*)0xD800)
|
||||
|
||||
/* Return codes for get_ostype */
|
||||
#define C64_OS_US 0xAA /* US version */
|
||||
@@ -152,7 +152,7 @@ extern void c64_hi_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* cbm.h */
|
||||
/* cbm.h */
|
||||
/* */
|
||||
/* CBM system-specific definitions */
|
||||
/* CBM system-specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -94,29 +94,29 @@ extern char _filetype; /* Defaults to 's' */
|
||||
|
||||
|
||||
|
||||
#define CH_HLINE 192
|
||||
#define CH_VLINE 221
|
||||
#define CH_ULCORNER 176
|
||||
#define CH_URCORNER 174
|
||||
#define CH_LLCORNER 173
|
||||
#define CH_LRCORNER 189
|
||||
#define CH_TTEE 178
|
||||
#define CH_BTEE 177
|
||||
#define CH_LTEE 171
|
||||
#define CH_RTEE 179
|
||||
#define CH_CROSS 219
|
||||
#define CH_CURS_UP 145
|
||||
#define CH_CURS_DOWN 17
|
||||
#define CH_CURS_LEFT 157
|
||||
#define CH_CURS_RIGHT 29
|
||||
#define CH_PI 222
|
||||
#define CH_HOME 19
|
||||
#define CH_DEL 20
|
||||
#define CH_INS 148
|
||||
#define CH_ENTER 13
|
||||
#define CH_STOP 3
|
||||
#define CH_LIRA 92
|
||||
#define CH_ESC 27
|
||||
#define CH_HLINE 192
|
||||
#define CH_VLINE 221
|
||||
#define CH_ULCORNER 176
|
||||
#define CH_URCORNER 174
|
||||
#define CH_LLCORNER 173
|
||||
#define CH_LRCORNER 189
|
||||
#define CH_TTEE 178
|
||||
#define CH_BTEE 177
|
||||
#define CH_LTEE 171
|
||||
#define CH_RTEE 179
|
||||
#define CH_CROSS 219
|
||||
#define CH_CURS_UP 145
|
||||
#define CH_CURS_DOWN 17
|
||||
#define CH_CURS_LEFT 157
|
||||
#define CH_CURS_RIGHT 29
|
||||
#define CH_PI 222
|
||||
#define CH_HOME 19
|
||||
#define CH_DEL 20
|
||||
#define CH_INS 148
|
||||
#define CH_ENTER 13
|
||||
#define CH_STOP 3
|
||||
#define CH_LIRA 92
|
||||
#define CH_ESC 27
|
||||
|
||||
|
||||
|
||||
@@ -166,9 +166,9 @@ unsigned char get_tv (void);
|
||||
*
|
||||
* e.g., cbm_open(2, 8, CBM_READ, "0:data,s");
|
||||
*/
|
||||
#define CBM_READ 0 /* default is ",p" */
|
||||
#define CBM_WRITE 1 /* ditto */
|
||||
#define CBM_SEQ 2 /* default is ",r" -- or ",s" when writing */
|
||||
#define CBM_READ 0 /* default is ",p" */
|
||||
#define CBM_WRITE 1 /* ditto */
|
||||
#define CBM_SEQ 2 /* default is ",r" -- or ",s" when writing */
|
||||
|
||||
/* Kernal-level functions */
|
||||
unsigned char cbm_k_acptr (void);
|
||||
@@ -204,20 +204,20 @@ void cbm_k_unlsn (void);
|
||||
/* The cbm_* I/O functions below set _oserror (see errno.h),
|
||||
* in case of an error.
|
||||
*
|
||||
* error-code BASIC error
|
||||
* ---------- -----------
|
||||
* 1 = too many files
|
||||
* 2 = file open
|
||||
* 3 = file not open
|
||||
* 4 = file not found
|
||||
* 5 = device not present
|
||||
* 6 = not input-file
|
||||
* 7 = not output-file
|
||||
* 8 = missing file-name
|
||||
* 9 = illegal device-number
|
||||
* error-code BASIC error
|
||||
* ---------- -----------
|
||||
* 1 = too many files
|
||||
* 2 = file open
|
||||
* 3 = file not open
|
||||
* 4 = file not found
|
||||
* 5 = device not present
|
||||
* 6 = not input-file
|
||||
* 7 = not output-file
|
||||
* 8 = missing file-name
|
||||
* 9 = illegal device-number
|
||||
*
|
||||
* 10 = STOP-key pushed
|
||||
* 11 = general I/O-error
|
||||
* 10 = STOP-key pushed
|
||||
* 11 = general I/O-error
|
||||
*/
|
||||
|
||||
|
||||
|
||||
104
include/cbm264.h
104
include/cbm264.h
@@ -46,83 +46,83 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
|
||||
|
||||
|
||||
/* Color attributes */
|
||||
#define CATTR_LUMA0 0x00
|
||||
#define CATTR_LUMA1 0x10
|
||||
#define CATTR_LUMA2 0x20
|
||||
#define CATTR_LUMA3 0x30
|
||||
#define CATTR_LUMA4 0x40
|
||||
#define CATTR_LUMA5 0x50
|
||||
#define CATTR_LUMA6 0x60
|
||||
#define CATTR_LUMA7 0x70
|
||||
#define CATTR_BLINK 0x80
|
||||
#define CATTR_LUMA0 0x00
|
||||
#define CATTR_LUMA1 0x10
|
||||
#define CATTR_LUMA2 0x20
|
||||
#define CATTR_LUMA3 0x30
|
||||
#define CATTR_LUMA4 0x40
|
||||
#define CATTR_LUMA5 0x50
|
||||
#define CATTR_LUMA6 0x60
|
||||
#define CATTR_LUMA7 0x70
|
||||
#define CATTR_BLINK 0x80
|
||||
|
||||
/* Base colors */
|
||||
#define BCOLOR_BLACK 0x00
|
||||
#define BCOLOR_WHITE 0x01
|
||||
#define BCOLOR_RED 0x02
|
||||
#define BCOLOR_CYAN 0x03
|
||||
#define BCOLOR_VIOLET 0x04
|
||||
#define BCOLOR_BLACK 0x00
|
||||
#define BCOLOR_WHITE 0x01
|
||||
#define BCOLOR_RED 0x02
|
||||
#define BCOLOR_CYAN 0x03
|
||||
#define BCOLOR_VIOLET 0x04
|
||||
#define BCOLOR_PURPLE BCOLOR_VIOLET
|
||||
#define BCOLOR_GREEN 0x05
|
||||
#define BCOLOR_BLUE 0x06
|
||||
#define BCOLOR_YELLOW 0x07
|
||||
#define BCOLOR_ORANGE 0x08
|
||||
#define BCOLOR_BROWN 0x09
|
||||
#define BCOLOR_LEMON 0x0A /* What's that color? */
|
||||
#define BCOLOR_LIGHTVIOLET 0x0B
|
||||
#define BCOLOR_BLUEGREEN 0x0C
|
||||
#define BCOLOR_LIGHTBLUE 0x0D
|
||||
#define BCOLOR_DARKBLUE 0x0E
|
||||
#define BCOLOR_LIGHTGREEN 0x0F
|
||||
#define BCOLOR_GREEN 0x05
|
||||
#define BCOLOR_BLUE 0x06
|
||||
#define BCOLOR_YELLOW 0x07
|
||||
#define BCOLOR_ORANGE 0x08
|
||||
#define BCOLOR_BROWN 0x09
|
||||
#define BCOLOR_LEMON 0x0A /* What's that color? */
|
||||
#define BCOLOR_LIGHTVIOLET 0x0B
|
||||
#define BCOLOR_BLUEGREEN 0x0C
|
||||
#define BCOLOR_LIGHTBLUE 0x0D
|
||||
#define BCOLOR_DARKBLUE 0x0E
|
||||
#define BCOLOR_LIGHTGREEN 0x0F
|
||||
|
||||
/* Now try to mix up a C64/C128 compatible palette */
|
||||
#define COLOR_BLACK (BCOLOR_BLACK)
|
||||
#define COLOR_WHITE (BCOLOR_WHITE | CATTR_LUMA7)
|
||||
#define COLOR_RED (BCOLOR_RED | CATTR_LUMA4)
|
||||
#define COLOR_CYAN (BCOLOR_CYAN | CATTR_LUMA7)
|
||||
#define COLOR_VIOLET (BCOLOR_VIOLET | CATTR_LUMA7)
|
||||
#define COLOR_BLACK (BCOLOR_BLACK)
|
||||
#define COLOR_WHITE (BCOLOR_WHITE | CATTR_LUMA7)
|
||||
#define COLOR_RED (BCOLOR_RED | CATTR_LUMA4)
|
||||
#define COLOR_CYAN (BCOLOR_CYAN | CATTR_LUMA7)
|
||||
#define COLOR_VIOLET (BCOLOR_VIOLET | CATTR_LUMA7)
|
||||
#define COLOR_PURPLE COLOR_VIOLET
|
||||
#define COLOR_GREEN (BCOLOR_GREEN | CATTR_LUMA7)
|
||||
#define COLOR_BLUE (BCOLOR_BLUE | CATTR_LUMA7)
|
||||
#define COLOR_YELLOW (BCOLOR_YELLOW | CATTR_LUMA7)
|
||||
#define COLOR_ORANGE (BCOLOR_ORANGE | CATTR_LUMA7)
|
||||
#define COLOR_BROWN (BCOLOR_BROWN | CATTR_LUMA7)
|
||||
#define COLOR_LIGHTRED (BCOLOR_RED | CATTR_LUMA7)
|
||||
#define COLOR_GRAY1 (BCOLOR_WHITE | CATTR_LUMA1)
|
||||
#define COLOR_GRAY2 (BCOLOR_WHITE | CATTR_LUMA3)
|
||||
#define COLOR_LIGHTGREEN (BCOLOR_LIGHTGREEN | CATTR_LUMA7)
|
||||
#define COLOR_LIGHTBLUE (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
|
||||
#define COLOR_GRAY3 (BCOLOR_WHITE | CATTR_LUMA5)
|
||||
#define COLOR_GREEN (BCOLOR_GREEN | CATTR_LUMA7)
|
||||
#define COLOR_BLUE (BCOLOR_BLUE | CATTR_LUMA7)
|
||||
#define COLOR_YELLOW (BCOLOR_YELLOW | CATTR_LUMA7)
|
||||
#define COLOR_ORANGE (BCOLOR_ORANGE | CATTR_LUMA7)
|
||||
#define COLOR_BROWN (BCOLOR_BROWN | CATTR_LUMA7)
|
||||
#define COLOR_LIGHTRED (BCOLOR_RED | CATTR_LUMA7)
|
||||
#define COLOR_GRAY1 (BCOLOR_WHITE | CATTR_LUMA1)
|
||||
#define COLOR_GRAY2 (BCOLOR_WHITE | CATTR_LUMA3)
|
||||
#define COLOR_LIGHTGREEN (BCOLOR_LIGHTGREEN | CATTR_LUMA7)
|
||||
#define COLOR_LIGHTBLUE (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
|
||||
#define COLOR_GRAY3 (BCOLOR_WHITE | CATTR_LUMA5)
|
||||
|
||||
/* Define hardware */
|
||||
#include <_ted.h>
|
||||
#define TED (*(struct __ted*)0xFF00)
|
||||
|
||||
/* Define special memory areas */
|
||||
#define COLOR_RAM ((unsigned char*)0x0800)
|
||||
#define COLOR_RAM ((unsigned char*)0x0800)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* cbm510.h */
|
||||
/* cbm510.h */
|
||||
/* */
|
||||
/* System specific definitions for the CBM5x0 / P500 */
|
||||
/* System specific definitions for the CBM5x0 / P500 */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -46,68 +46,68 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 224
|
||||
#define CH_F2 225
|
||||
#define CH_F3 226
|
||||
#define CH_F4 227
|
||||
#define CH_F5 228
|
||||
#define CH_F6 229
|
||||
#define CH_F7 230
|
||||
#define CH_F8 231
|
||||
#define CH_F9 232
|
||||
#define CH_F10 233
|
||||
#define CH_F11 234
|
||||
#define CH_F12 235
|
||||
#define CH_F13 236
|
||||
#define CH_F14 237
|
||||
#define CH_F15 238
|
||||
#define CH_F16 239
|
||||
#define CH_F17 240
|
||||
#define CH_F18 241
|
||||
#define CH_F19 242
|
||||
#define CH_F20 243
|
||||
#define CH_F1 224
|
||||
#define CH_F2 225
|
||||
#define CH_F3 226
|
||||
#define CH_F4 227
|
||||
#define CH_F5 228
|
||||
#define CH_F6 229
|
||||
#define CH_F7 230
|
||||
#define CH_F8 231
|
||||
#define CH_F9 232
|
||||
#define CH_F10 233
|
||||
#define CH_F11 234
|
||||
#define CH_F12 235
|
||||
#define CH_F13 236
|
||||
#define CH_F14 237
|
||||
#define CH_F15 238
|
||||
#define CH_F16 239
|
||||
#define CH_F17 240
|
||||
#define CH_F18 241
|
||||
#define CH_F19 242
|
||||
#define CH_F20 243
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_PURPLE COLOR_VIOLET
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
|
||||
/* Define hardware */
|
||||
#include <_vic2.h>
|
||||
#define VIC (*(struct __vic2*)0xD800)
|
||||
#define VIC (*(struct __vic2*)0xD800)
|
||||
|
||||
#include <_sid.h>
|
||||
#define SID (*(struct __sid*)0xDA00)
|
||||
#define SID (*(struct __sid*)0xDA00)
|
||||
|
||||
#include <_6526.h>
|
||||
#define CIA (*(struct __6526*)0xDC00)
|
||||
#define CIA (*(struct __6526*)0xDC00)
|
||||
|
||||
#include <_6551.h>
|
||||
#define ACIA (*(struct __6551*)0xDD00)
|
||||
#define ACIA (*(struct __6551*)0xDD00)
|
||||
|
||||
#include <_6525.h>
|
||||
#define TPI1 (*(struct __6525*)0xDE00)
|
||||
#define TPI2 (*(struct __6525*)0xDF00)
|
||||
#define TPI1 (*(struct __6525*)0xDE00)
|
||||
#define TPI2 (*(struct __6525*)0xDF00)
|
||||
|
||||
|
||||
|
||||
@@ -119,13 +119,13 @@
|
||||
|
||||
/* The addresses of the static drivers */
|
||||
extern void cbm510_ram_emd[];
|
||||
extern void cbm510_std_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void cbm510_std_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void cbm510_std_ser[];
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* cbm610.h */
|
||||
/* cbm610.h */
|
||||
/* */
|
||||
/* CBM610 system specific definitions */
|
||||
/* CBM610 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -74,15 +74,15 @@
|
||||
#define CH_F20 243
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
|
||||
/* Define hardware */
|
||||
#include <_6545.h>
|
||||
#define CRTC (*(struct __6545)0xD800)
|
||||
|
||||
#include <_sid.h>
|
||||
#define SID (*(struct __sid*)0xDA00)
|
||||
#define SID (*(struct __sid*)0xDA00)
|
||||
|
||||
#include <_6526.h>
|
||||
#define CIA (*(struct __6526*)0xDC00)
|
||||
@@ -109,7 +109,7 @@ extern void cbm610_std_ser[];
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* conio.h */
|
||||
/* conio.h */
|
||||
/* */
|
||||
/* Direct console I/O */
|
||||
/* Direct console I/O */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Functions */
|
||||
/* Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* ctype.h */
|
||||
/* ctype.h */
|
||||
/* */
|
||||
/* Character handling */
|
||||
/* Character handling */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -41,21 +41,21 @@
|
||||
extern unsigned char _ctype[256];
|
||||
|
||||
/* Bits used to specify character classes */
|
||||
#define _CT_LOWER 0x01 /* 0 - Lower case char */
|
||||
#define _CT_UPPER 0x02 /* 1 - Upper case char */
|
||||
#define _CT_DIGIT 0x04 /* 2 - Numeric digit */
|
||||
#define _CT_XDIGIT 0x08 /* 3 - Hex digit (both lower and upper) */
|
||||
#define _CT_CNTRL 0x10 /* 4 - Control character */
|
||||
#define _CT_SPACE 0x20 /* 5 - The space character itself */
|
||||
#define _CT_OTHER_WS 0x40 /* 6 - Other whitespace ('\f', '\n', '\r', '\t', and '\v') */
|
||||
#define _CT_SPACE_TAB 0x80 /* 7 - Space or tab character */
|
||||
#define _CT_LOWER 0x01 /* 0 - Lower case char */
|
||||
#define _CT_UPPER 0x02 /* 1 - Upper case char */
|
||||
#define _CT_DIGIT 0x04 /* 2 - Numeric digit */
|
||||
#define _CT_XDIGIT 0x08 /* 3 - Hex digit (both lower and upper) */
|
||||
#define _CT_CNTRL 0x10 /* 4 - Control character */
|
||||
#define _CT_SPACE 0x20 /* 5 - The space character itself */
|
||||
#define _CT_OTHER_WS 0x40 /* 6 - Other whitespace ('\f', '\n', '\r', '\t', and '\v') */
|
||||
#define _CT_SPACE_TAB 0x80 /* 7 - Space or tab character */
|
||||
|
||||
/* Bit combinations */
|
||||
#define _CT_ALNUM (_CT_LOWER | _CT_UPPER | _CT_DIGIT)
|
||||
#define _CT_ALPHA (_CT_LOWER | _CT_UPPER)
|
||||
#define _CT_NOT_GRAPH (_CT_CNTRL | _CT_SPACE)
|
||||
#define _CT_ALNUM (_CT_LOWER | _CT_UPPER | _CT_DIGIT)
|
||||
#define _CT_ALPHA (_CT_LOWER | _CT_UPPER)
|
||||
#define _CT_NOT_GRAPH (_CT_CNTRL | _CT_SPACE)
|
||||
#define _CT_NOT_PRINT (_CT_CNTRL)
|
||||
#define _CT_NOT_PUNCT (_CT_SPACE | _CT_CNTRL | _CT_DIGIT | _CT_UPPER | _CT_LOWER)
|
||||
#define _CT_NOT_PUNCT (_CT_SPACE | _CT_CNTRL | _CT_DIGIT | _CT_UPPER | _CT_LOWER)
|
||||
#define _CT_WS (_CT_SPACE | _CT_OTHER_WS)
|
||||
|
||||
/* Character classification functions */
|
||||
@@ -71,11 +71,11 @@ int __fastcall__ isspace (int c);
|
||||
int __fastcall__ isupper (int c);
|
||||
int __fastcall__ isxdigit (int c);
|
||||
#if __CC65_STD__ >= __CC65_STD_C99__
|
||||
int __fastcall__ isblank (int c); /* New in C99 */
|
||||
int __fastcall__ isblank (int c); /* New in C99 */
|
||||
#endif
|
||||
|
||||
int __fastcall__ toupper (int c); /* Always external */
|
||||
int __fastcall__ tolower (int c); /* Always external */
|
||||
int __fastcall__ toupper (int c); /* Always external */
|
||||
int __fastcall__ tolower (int c); /* Always external */
|
||||
|
||||
#if __CC65_STD__ >= __CC65_STD_CC65__
|
||||
unsigned char __fastcall__ toascii (unsigned char c);
|
||||
@@ -95,83 +95,83 @@ unsigned char __fastcall__ toascii (unsigned char c);
|
||||
|
||||
#define isalnum(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_ALNUM), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_ALNUM), \
|
||||
__AX__)
|
||||
|
||||
#define isalpha(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_ALPHA), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_ALPHA), \
|
||||
__AX__)
|
||||
|
||||
#if __CC65_STD__ >= __CC65_STD_C99__
|
||||
#define isblank(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_SPACE_TAB), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_SPACE_TAB), \
|
||||
__AX__)
|
||||
#endif
|
||||
|
||||
#define iscntrl(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_CNTRL), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_CNTRL), \
|
||||
__AX__)
|
||||
|
||||
#define isdigit(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_DIGIT), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_DIGIT), \
|
||||
__AX__)
|
||||
|
||||
#define isgraph(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_GRAPH), \
|
||||
__asm__ ("cmp #1"), \
|
||||
__asm__ ("lda #1"), \
|
||||
__asm__ ("sbc #1"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_GRAPH), \
|
||||
__asm__ ("cmp #1"), \
|
||||
__asm__ ("lda #1"), \
|
||||
__asm__ ("sbc #1"), \
|
||||
__AX__)
|
||||
|
||||
#define islower(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_LOWER), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_LOWER), \
|
||||
__AX__)
|
||||
|
||||
#define isprint(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_PRINT), \
|
||||
__asm__ ("eor #%b", _CT_NOT_PRINT), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_PRINT), \
|
||||
__asm__ ("eor #%b", _CT_NOT_PRINT), \
|
||||
__AX__)
|
||||
|
||||
#define ispunct(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_PUNCT), \
|
||||
__asm__ ("cmp #1"), \
|
||||
__asm__ ("lda #1"), \
|
||||
__asm__ ("sbc #1"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_NOT_PUNCT), \
|
||||
__asm__ ("cmp #1"), \
|
||||
__asm__ ("lda #1"), \
|
||||
__asm__ ("sbc #1"), \
|
||||
__AX__)
|
||||
|
||||
#define isspace(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_WS), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_WS), \
|
||||
__AX__)
|
||||
|
||||
#define isupper(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_UPPER), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_UPPER), \
|
||||
__AX__)
|
||||
|
||||
#define isxdigit(c) (__AX__ = (c), \
|
||||
__asm__ ("tay"), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_XDIGIT), \
|
||||
__asm__ ("lda %v,y", _ctype), \
|
||||
__asm__ ("and #%b", _CT_XDIGIT), \
|
||||
__AX__)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* dbg.h */
|
||||
/* dbg.h */
|
||||
/* */
|
||||
/* Debugger module interface */
|
||||
/* Debugger module interface */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Utility functions */
|
||||
/* Utility functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ char* DbgMemDump (unsigned Addr, char* Buf, unsigned char Len);
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* High level user interface */
|
||||
/* High level user interface */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ void __fastcall__ DbgInit (unsigned unused);
|
||||
* next brk encountered.
|
||||
*/
|
||||
|
||||
#define BREAK() __asm__ ("brk")
|
||||
#define BREAK() __asm__ ("brk")
|
||||
/* Use this to insert breakpoints into your code */
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -113,11 +113,11 @@ struct dirent {
|
||||
#elif defined(__LYNX__)
|
||||
|
||||
struct dirent {
|
||||
unsigned char d_blocks;
|
||||
unsigned int d_offset;
|
||||
char d_type;
|
||||
void *d_address;
|
||||
unsigned int d_size;
|
||||
unsigned char d_blocks;
|
||||
unsigned int d_offset;
|
||||
char d_type;
|
||||
void *d_address;
|
||||
unsigned int d_size;
|
||||
};
|
||||
|
||||
extern struct dirent FileEntry;
|
||||
@@ -144,7 +144,7 @@ struct dirent {
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ struct em_copy {
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Functions */
|
||||
/* Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ typedef struct {
|
||||
void* map; /* MAP routine */
|
||||
void* use; /* USE routine */
|
||||
void* mapclean; /* MAPCLEAN routine */
|
||||
void* copyfrom; /* COPYFROM routine */
|
||||
void* copyfrom; /* COPYFROM routine */
|
||||
void* copyto; /* COPYTO routine */
|
||||
|
||||
} em_drv_header;
|
||||
@@ -68,7 +68,7 @@ typedef struct {
|
||||
|
||||
|
||||
/* EM kernel variables */
|
||||
extern em_drv_header* em_drv; /* Pointer to driver */
|
||||
extern em_drv_header* em_drv; /* Pointer to driver */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* errno.h */
|
||||
/* errno.h */
|
||||
/* */
|
||||
/* Error codes */
|
||||
/* Error codes */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -56,23 +56,23 @@ extern int _errno;
|
||||
|
||||
|
||||
/* Possible error codes */
|
||||
#define ENOENT 1 /* No such file or directory */
|
||||
#define ENOMEM 2 /* Out of memory */
|
||||
#define EACCES 3 /* Permission denied */
|
||||
#define ENODEV 4 /* No such device */
|
||||
#define EMFILE 5 /* Too many open files */
|
||||
#define EBUSY 6 /* Device or resource busy */
|
||||
#define EINVAL 7 /* Invalid argument */
|
||||
#define ENOSPC 8 /* No space left on device */
|
||||
#define EEXIST 9 /* File exists */
|
||||
#define EAGAIN 10 /* Try again */
|
||||
#define EIO 11 /* I/O error */
|
||||
#define EINTR 12 /* Interrupted system call */
|
||||
#define ENOSYS 13 /* Function not implemented */
|
||||
#define ESPIPE 14 /* Illegal seek */
|
||||
#define ENOENT 1 /* No such file or directory */
|
||||
#define ENOMEM 2 /* Out of memory */
|
||||
#define EACCES 3 /* Permission denied */
|
||||
#define ENODEV 4 /* No such device */
|
||||
#define EMFILE 5 /* Too many open files */
|
||||
#define EBUSY 6 /* Device or resource busy */
|
||||
#define EINVAL 7 /* Invalid argument */
|
||||
#define ENOSPC 8 /* No space left on device */
|
||||
#define EEXIST 9 /* File exists */
|
||||
#define EAGAIN 10 /* Try again */
|
||||
#define EIO 11 /* I/O error */
|
||||
#define EINTR 12 /* Interrupted system call */
|
||||
#define ENOSYS 13 /* Function not implemented */
|
||||
#define ESPIPE 14 /* Illegal seek */
|
||||
#define ERANGE 15 /* Range error */
|
||||
#define EBADF 16 /* Bad file number */
|
||||
#define EUNKNOWN 17 /* Unknown OS specific error */
|
||||
#define EUNKNOWN 17 /* Unknown OS specific error */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* fcntl.h */
|
||||
/* fcntl.h */
|
||||
/* */
|
||||
/* File control operations */
|
||||
/* */
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -56,13 +56,13 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Functions */
|
||||
int open (const char* name, int flags, ...); /* May take a mode argument */
|
||||
int open (const char* name, int flags, ...); /* May take a mode argument */
|
||||
int __fastcall__ close (int fd);
|
||||
int __fastcall__ creat (const char* name, unsigned mode);
|
||||
|
||||
|
||||
120
include/geos.h
120
include/geos.h
@@ -68,70 +68,70 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define CH_ULCORNER '+'
|
||||
#define CH_URCORNER '+'
|
||||
#define CH_LLCORNER '+'
|
||||
#define CH_LRCORNER '+'
|
||||
#define CH_TTEE '+'
|
||||
#define CH_RTEE '+'
|
||||
#define CH_BTEE '+'
|
||||
#define CH_LTEE '+'
|
||||
#define CH_CROSS '+'
|
||||
#define CH_ULCORNER '+'
|
||||
#define CH_URCORNER '+'
|
||||
#define CH_LLCORNER '+'
|
||||
#define CH_LRCORNER '+'
|
||||
#define CH_TTEE '+'
|
||||
#define CH_RTEE '+'
|
||||
#define CH_BTEE '+'
|
||||
#define CH_LTEE '+'
|
||||
#define CH_CROSS '+'
|
||||
|
||||
#define CH_F1 KEY_F1
|
||||
#define CH_F2 KEY_F2
|
||||
#define CH_F3 KEY_F3
|
||||
#define CH_F4 KEY_F4
|
||||
#define CH_F5 KEY_F5
|
||||
#define CH_F6 KEY_F6
|
||||
#define CH_F7 KEY_F7
|
||||
#define CH_F8 KEY_F8
|
||||
#define CH_F1 KEY_F1
|
||||
#define CH_F2 KEY_F2
|
||||
#define CH_F3 KEY_F3
|
||||
#define CH_F4 KEY_F4
|
||||
#define CH_F5 KEY_F5
|
||||
#define CH_F6 KEY_F6
|
||||
#define CH_F7 KEY_F7
|
||||
#define CH_F8 KEY_F8
|
||||
|
||||
#define CH_CURS_UP KEY_UP
|
||||
#define CH_CURS_DOWN KEY_DOWN
|
||||
#define CH_CURS_LEFT KEY_LEFT
|
||||
#define CH_CURS_RIGHT KEY_RIGHT
|
||||
#define CH_DEL KEY_DELETE
|
||||
#define CH_INS KEY_INSERT
|
||||
#define CH_ENTER KEY_ENTER
|
||||
#define CH_STOP KEY_STOP
|
||||
#define CH_ESC KEY_ESC
|
||||
#define CH_CURS_UP KEY_UP
|
||||
#define CH_CURS_DOWN KEY_DOWN
|
||||
#define CH_CURS_LEFT KEY_LEFT
|
||||
#define CH_CURS_RIGHT KEY_RIGHT
|
||||
#define CH_DEL KEY_DELETE
|
||||
#define CH_INS KEY_INSERT
|
||||
#define CH_ENTER KEY_ENTER
|
||||
#define CH_STOP KEY_STOP
|
||||
#define CH_ESC KEY_ESC
|
||||
|
||||
#define COLOR_BLACK BLACK
|
||||
#define COLOR_WHITE WHITE
|
||||
#define COLOR_RED RED
|
||||
#define COLOR_CYAN CYAN
|
||||
#define COLOR_VIOLET PURPLE
|
||||
#define COLOR_PURPLE PURPLE
|
||||
#define COLOR_GREEN GREEN
|
||||
#define COLOR_BLUE BLUE
|
||||
#define COLOR_YELLOW YELLOW
|
||||
#define COLOR_ORANGE ORANGE
|
||||
#define COLOR_BROWN BROWN
|
||||
#define COLOR_LIGHTRED LTRED
|
||||
#define COLOR_GRAY1 DKGREY
|
||||
#define COLOR_GRAY2 MEDGREY
|
||||
#define COLOR_LIGHTGREEN LTGREEN
|
||||
#define COLOR_LIGHTBLUE LTBLUE
|
||||
#define COLOR_GRAY3 LTGREY
|
||||
#define COLOR_BLACK BLACK
|
||||
#define COLOR_WHITE WHITE
|
||||
#define COLOR_RED RED
|
||||
#define COLOR_CYAN CYAN
|
||||
#define COLOR_VIOLET PURPLE
|
||||
#define COLOR_PURPLE PURPLE
|
||||
#define COLOR_GREEN GREEN
|
||||
#define COLOR_BLUE BLUE
|
||||
#define COLOR_YELLOW YELLOW
|
||||
#define COLOR_ORANGE ORANGE
|
||||
#define COLOR_BROWN BROWN
|
||||
#define COLOR_LIGHTRED LTRED
|
||||
#define COLOR_GRAY1 DKGREY
|
||||
#define COLOR_GRAY2 MEDGREY
|
||||
#define COLOR_LIGHTGREEN LTGREEN
|
||||
#define COLOR_LIGHTBLUE LTBLUE
|
||||
#define COLOR_GRAY3 LTGREY
|
||||
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_PURPLE COLOR_PURPLE
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
||||
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
#define TGI_COLOR_BLACK COLOR_BLACK
|
||||
#define TGI_COLOR_WHITE COLOR_WHITE
|
||||
#define TGI_COLOR_RED COLOR_RED
|
||||
#define TGI_COLOR_CYAN COLOR_CYAN
|
||||
#define TGI_COLOR_VIOLET COLOR_VIOLET
|
||||
#define TGI_COLOR_PURPLE COLOR_PURPLE
|
||||
#define TGI_COLOR_GREEN COLOR_GREEN
|
||||
#define TGI_COLOR_BLUE COLOR_BLUE
|
||||
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
||||
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
||||
#define TGI_COLOR_BROWN COLOR_BROWN
|
||||
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
||||
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
||||
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
||||
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
||||
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
||||
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
||||
|
||||
|
||||
/* End of geos.h */
|
||||
|
||||
@@ -9,59 +9,59 @@
|
||||
#ifndef _GCONST_H
|
||||
#define _GCONST_H
|
||||
|
||||
#define NULL 0
|
||||
#define FALSE NULL
|
||||
#define TRUE 0xff
|
||||
#define MOUSE_SPRNUM 0
|
||||
#define DISK_DRV_LGH 0x0d80
|
||||
#define NULL 0
|
||||
#define FALSE NULL
|
||||
#define TRUE 0xff
|
||||
#define MOUSE_SPRNUM 0
|
||||
#define DISK_DRV_LGH 0x0d80
|
||||
|
||||
/* drivetypes */
|
||||
#define DRV_NULL 0
|
||||
#define DRV_1541 1
|
||||
#define DRV_1571 2
|
||||
#define DRV_1581 3
|
||||
#define DRV_NETWORK 15
|
||||
#define DRV_NULL 0
|
||||
#define DRV_1541 1
|
||||
#define DRV_1571 2
|
||||
#define DRV_1581 3
|
||||
#define DRV_NETWORK 15
|
||||
|
||||
/* various disk constants */
|
||||
#define REL_FILE_NUM 9
|
||||
#define CMND_FILE_NUM 15
|
||||
#define MAX_CMND_STR 32
|
||||
#define DIR_1581_TRACK 40
|
||||
#define DIR_ACC_CHAN 13
|
||||
#define DIR_TRACK 18
|
||||
#define N_TRACKS 35
|
||||
#define DK_NM_ID_LEN 18
|
||||
#define TRACK 9
|
||||
#define SECTOR 12
|
||||
#define TOTAL_BLOCKS 664
|
||||
#define REL_FILE_NUM 9
|
||||
#define CMND_FILE_NUM 15
|
||||
#define MAX_CMND_STR 32
|
||||
#define DIR_1581_TRACK 40
|
||||
#define DIR_ACC_CHAN 13
|
||||
#define DIR_TRACK 18
|
||||
#define N_TRACKS 35
|
||||
#define DK_NM_ID_LEN 18
|
||||
#define TRACK 9
|
||||
#define SECTOR 12
|
||||
#define TOTAL_BLOCKS 664
|
||||
|
||||
/* offset to something */
|
||||
#define OFF_INDEX_PTR 1
|
||||
#define OFF_INDEX_PTR 1
|
||||
|
||||
/* values for CPU_DATA memory config - C64 */
|
||||
#define IO_IN 0x35
|
||||
#define KRNL_IO_IN 0x36
|
||||
#define KRNL_BAS_IO_IN 0x37
|
||||
#define IO_IN 0x35
|
||||
#define KRNL_IO_IN 0x36
|
||||
#define KRNL_BAS_IO_IN 0x37
|
||||
|
||||
/* values for MMU config - C128 */
|
||||
#define CIOIN 0x7E
|
||||
#define CRAM64K 0x7F
|
||||
#define CKRNLBASIOIN 0x40
|
||||
#define CKRNLIOIN 0x4E
|
||||
#define CIOIN 0x7E
|
||||
#define CRAM64K 0x7F
|
||||
#define CKRNLBASIOIN 0x40
|
||||
#define CKRNLIOIN 0x4E
|
||||
|
||||
/* alarmSetFlag */
|
||||
#define ALARMMASK 4
|
||||
#define ALARMMASK 4
|
||||
|
||||
#define CLR_SAVE 0x40
|
||||
#define CONSTRAINED 0x40
|
||||
#define UN_CONSTRAINED 0
|
||||
#define FG_SAVE 0x80
|
||||
#define CLR_SAVE 0x40
|
||||
#define CONSTRAINED 0x40
|
||||
#define UN_CONSTRAINED 0
|
||||
#define FG_SAVE 0x80
|
||||
|
||||
#define FUTURE1 7
|
||||
#define FUTURE2 8
|
||||
#define FUTURE3 9
|
||||
#define FUTURE4 10
|
||||
#define USELAST 127
|
||||
#define SHORTCUT 128
|
||||
#define FUTURE1 7
|
||||
#define FUTURE2 8
|
||||
#define FUTURE3 9
|
||||
#define FUTURE4 10
|
||||
#define USELAST 127
|
||||
#define SHORTCUT 128
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GDISK_H
|
||||
#ifndef _GDISK_H
|
||||
#define _GDISK_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
@@ -29,7 +29,7 @@ char OpenDisk(void);
|
||||
char __fastcall__ FindBAMBit(struct tr_se *myTrSe);
|
||||
char __fastcall__ BlkAlloc(struct tr_se output[], unsigned length);
|
||||
char __fastcall__ NxtBlkAlloc(struct tr_se *startTrSe,
|
||||
struct tr_se output[], unsigned length);
|
||||
struct tr_se output[], unsigned length);
|
||||
char __fastcall__ FreeBlock(struct tr_se *myTrSe);
|
||||
struct tr_se __fastcall__ SetNextFree(struct tr_se *myTrSe);
|
||||
// above needs (unsigned) casts on both sides of '='
|
||||
@@ -44,38 +44,38 @@ void PurgeTurbo(void);
|
||||
|
||||
char __fastcall__ ChangeDiskDevice(char newdev);
|
||||
|
||||
/* disk header offsets i.e. index curDirHead with these */
|
||||
#define OFF_TO_BAM 4
|
||||
#define OFF_DISK_NAME 144
|
||||
#define OFF_GS_DTYPE 189
|
||||
#define OFF_OP_TR_SC 171
|
||||
#define OFF_GS_ID 173
|
||||
/* disk header offsets i.e. index curDirHead with these */
|
||||
#define OFF_TO_BAM 4
|
||||
#define OFF_DISK_NAME 144
|
||||
#define OFF_GS_DTYPE 189
|
||||
#define OFF_OP_TR_SC 171
|
||||
#define OFF_GS_ID 173
|
||||
/* disk errors reported in _oserror */
|
||||
#define ANY_FAULT 0xf0
|
||||
#define G_EOF 0
|
||||
#define NO_BLOCKS 1
|
||||
#define INV_TRACK 2
|
||||
#define INSUFF_SPACE 3
|
||||
#define FULL_DIRECTORY 4
|
||||
#define FILE_NOT_FOUND 5
|
||||
#define BAD_BAM 6
|
||||
#define UNOPENED_VLIR 7
|
||||
#define INV_RECORD 8
|
||||
#define OUT_OF_RECORDS 9
|
||||
#define STRUCT_MISMAT 10
|
||||
#define BFR_OVERFLOW 11
|
||||
#define CANCEL_ERR 12
|
||||
#define DEV_NOT_FOUND 13
|
||||
#define INCOMPATIBLE 14
|
||||
#define HDR_NOT_THERE 0x20
|
||||
#define NO_SYNC 0x21
|
||||
#define DBLK_NOT_THERE 0x22
|
||||
#define DAT_CHKSUM_ERR 0x23
|
||||
#define WR_VER_ERR 0x25
|
||||
#define WR_PR_ON 0x26
|
||||
#define HDR_CHKSUM_ERR 0x27
|
||||
#define DSK_ID_MISMAT 0x29
|
||||
#define BYTE_DEC_ERR 0x2e
|
||||
#define DOS_MISMATCH 0x73
|
||||
#define ANY_FAULT 0xf0
|
||||
#define G_EOF 0
|
||||
#define NO_BLOCKS 1
|
||||
#define INV_TRACK 2
|
||||
#define INSUFF_SPACE 3
|
||||
#define FULL_DIRECTORY 4
|
||||
#define FILE_NOT_FOUND 5
|
||||
#define BAD_BAM 6
|
||||
#define UNOPENED_VLIR 7
|
||||
#define INV_RECORD 8
|
||||
#define OUT_OF_RECORDS 9
|
||||
#define STRUCT_MISMAT 10
|
||||
#define BFR_OVERFLOW 11
|
||||
#define CANCEL_ERR 12
|
||||
#define DEV_NOT_FOUND 13
|
||||
#define INCOMPATIBLE 14
|
||||
#define HDR_NOT_THERE 0x20
|
||||
#define NO_SYNC 0x21
|
||||
#define DBLK_NOT_THERE 0x22
|
||||
#define DAT_CHKSUM_ERR 0x23
|
||||
#define WR_VER_ERR 0x25
|
||||
#define WR_PR_ON 0x26
|
||||
#define HDR_CHKSUM_ERR 0x27
|
||||
#define DSK_ID_MISMAT 0x29
|
||||
#define BYTE_DEC_ERR 0x2e
|
||||
#define DOS_MISMATCH 0x73
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GDLGBOX_H
|
||||
#ifndef _GDLGBOX_H
|
||||
#define _GDLGBOX_H
|
||||
|
||||
char __fastcall__ DoDlgBox(const char *dboxstring);
|
||||
char RstrFrmDialogue(void);
|
||||
|
||||
/* These are custom, predefined dialog boxes, I'm sure you'll find them usable
|
||||
Most of them show 2 lines of text */
|
||||
Most of them show 2 lines of text */
|
||||
|
||||
char __fastcall__ DlgBoxYesNo(const char *line1, const char *line2);
|
||||
char __fastcall__ DlgBoxOkCancel(const char *line1, const char *line2);
|
||||
void __fastcall__ DlgBoxOk(const char *line1, const char *line2);
|
||||
char __fastcall__ DlgBoxGetString(char *myString, char strLength,
|
||||
const char *line1, const char *line2);
|
||||
const char *line1, const char *line2);
|
||||
char __fastcall__ DlgBoxFileSelect(const char *classtxt, char ftype,
|
||||
char *fname);
|
||||
char *fname);
|
||||
|
||||
/* This is a more general dialog box, works like printf in a window */
|
||||
char MessageBox(char mode, const char *format, ...);
|
||||
@@ -40,8 +40,8 @@ typedef void dlgBoxStr;
|
||||
|
||||
#define DB_DEFPOS(pattern) (char)(DEF_DB_POS | (pattern))
|
||||
#define DB_SETPOS(pattern,top,bot,left,right) \
|
||||
(char)(SET_DB_POS | (pattern)), (char)(top), (char)(bot), \
|
||||
(unsigned)(left), (unsigned)(right)
|
||||
(char)(SET_DB_POS | (pattern)), (char)(top), (char)(bot), \
|
||||
(unsigned)(left), (unsigned)(right)
|
||||
#define DB_ICON(i,x,y) (char)(i), (char)(x), (char)(y)
|
||||
#define DB_TXTSTR(x,y,text) (char)DBTXTSTR, (char)(x), (char)(y), (text)
|
||||
#define DB_VARSTR(x,y,ptr) (char)DBVARSTR, (char)(x), (char)(y), (char)(ptr)
|
||||
@@ -59,52 +59,52 @@ typedef void dlgBoxStr;
|
||||
*/
|
||||
|
||||
/* icons for DB_ICON */
|
||||
#define OK 1
|
||||
#define CANCEL 2
|
||||
#define YES 3
|
||||
#define NO 4
|
||||
#define OPEN 5
|
||||
#define DISK 6
|
||||
#define OK 1
|
||||
#define CANCEL 2
|
||||
#define YES 3
|
||||
#define NO 4
|
||||
#define OPEN 5
|
||||
#define DISK 6
|
||||
/* commands - internally used by command macros */
|
||||
#define DBTXTSTR 11
|
||||
#define DBVARSTR 12
|
||||
#define DBGETSTRING 13
|
||||
#define DBSYSOPV 14
|
||||
#define DBGRPHSTR 15
|
||||
#define DBGETFILES 16
|
||||
#define DBOPVEC 17
|
||||
#define DBUSRICON 18
|
||||
#define DB_USR_ROUT 19
|
||||
#define DBTXTSTR 11
|
||||
#define DBVARSTR 12
|
||||
#define DBGETSTRING 13
|
||||
#define DBSYSOPV 14
|
||||
#define DBGRPHSTR 15
|
||||
#define DBGETFILES 16
|
||||
#define DBOPVEC 17
|
||||
#define DBUSRICON 18
|
||||
#define DB_USR_ROUT 19
|
||||
/* icons tabulation in standard window */
|
||||
#define DBI_X_0 1
|
||||
#define DBI_X_1 9
|
||||
#define DBI_X_2 17
|
||||
#define DBI_Y_0 8
|
||||
#define DBI_Y_1 40
|
||||
#define DBI_Y_2 72
|
||||
#define DBI_X_0 1
|
||||
#define DBI_X_1 9
|
||||
#define DBI_X_2 17
|
||||
#define DBI_Y_0 8
|
||||
#define DBI_Y_1 40
|
||||
#define DBI_Y_2 72
|
||||
/* standard window size defaults */
|
||||
#define SET_DB_POS 0
|
||||
#define DEF_DB_POS 0x80
|
||||
#define DEF_DB_TOP 32
|
||||
#define DEF_DB_BOT 127
|
||||
#define DEF_DB_LEFT 64
|
||||
#define DEF_DB_RIGHT 255
|
||||
#define SET_DB_POS 0
|
||||
#define DEF_DB_POS 0x80
|
||||
#define DEF_DB_TOP 32
|
||||
#define DEF_DB_BOT 127
|
||||
#define DEF_DB_LEFT 64
|
||||
#define DEF_DB_RIGHT 255
|
||||
/* text tabulation in standard window */
|
||||
#define TXT_LN_1_Y 16
|
||||
#define TXT_LN_2_Y 32
|
||||
#define TXT_LN_3_Y 48
|
||||
#define TXT_LN_4_Y 64
|
||||
#define TXT_LN_5_Y 80
|
||||
#define TXT_LN_X 16
|
||||
#define TXT_LN_1_Y 16
|
||||
#define TXT_LN_2_Y 32
|
||||
#define TXT_LN_3_Y 48
|
||||
#define TXT_LN_4_Y 64
|
||||
#define TXT_LN_5_Y 80
|
||||
#define TXT_LN_X 16
|
||||
/* system icons size */
|
||||
#define SYSDBI_HEIGHT 16
|
||||
#define SYSDBI_WIDTH 6
|
||||
#define SYSDBI_HEIGHT 16
|
||||
#define SYSDBI_WIDTH 6
|
||||
/* dialogbox string offsets */
|
||||
#define OFF_DB_FORM 0
|
||||
#define OFF_DB_TOP 1
|
||||
#define OFF_DB_BOT 2
|
||||
#define OFF_DB_LEFT 3
|
||||
#define OFF_DB_RIGHT 5
|
||||
#define OFF_DB_1STCMD 7
|
||||
#define OFF_DB_FORM 0
|
||||
#define OFF_DB_TOP 1
|
||||
#define OFF_DB_BOT 2
|
||||
#define OFF_DB_LEFT 3
|
||||
#define OFF_DB_RIGHT 5
|
||||
#define OFF_DB_1STCMD 7
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GFILE_H
|
||||
#ifndef _GFILE_H
|
||||
#define _GFILE_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
@@ -43,32 +43,32 @@ char __fastcall__ WriteRecord(const char *buffer, unsigned flength);
|
||||
char UpdateRecordFile(void);
|
||||
|
||||
/* GEOS filetypes */
|
||||
#define NOT_GEOS 0
|
||||
#define BASIC 1
|
||||
#define ASSEMBLY 2
|
||||
#define DATA 3
|
||||
#define SYSTEM 4
|
||||
#define DESK_ACC 5
|
||||
#define APPLICATION 6
|
||||
#define APPL_DATA 7
|
||||
#define FONT 8
|
||||
#define PRINTER 9
|
||||
#define INPUT_DEVICE 10
|
||||
#define DISK_DEVICE 11
|
||||
#define SYSTEM_BOOT 12
|
||||
#define TEMPORARY 13
|
||||
#define AUTO_EXEC 14
|
||||
#define INPUT_128 15
|
||||
#define NUMFILETYPES 16
|
||||
#define NOT_GEOS 0
|
||||
#define BASIC 1
|
||||
#define ASSEMBLY 2
|
||||
#define DATA 3
|
||||
#define SYSTEM 4
|
||||
#define DESK_ACC 5
|
||||
#define APPLICATION 6
|
||||
#define APPL_DATA 7
|
||||
#define FONT 8
|
||||
#define PRINTER 9
|
||||
#define INPUT_DEVICE 10
|
||||
#define DISK_DEVICE 11
|
||||
#define SYSTEM_BOOT 12
|
||||
#define TEMPORARY 13
|
||||
#define AUTO_EXEC 14
|
||||
#define INPUT_128 15
|
||||
#define NUMFILETYPES 16
|
||||
/* supported structures */
|
||||
#define SEQUENTIAL 0
|
||||
#define VLIR 1
|
||||
#define SEQUENTIAL 0
|
||||
#define VLIR 1
|
||||
/* DOS filetypes */
|
||||
#define DEL 0
|
||||
#define SEQ 1
|
||||
#define PRG 2
|
||||
#define USR 3
|
||||
#define REL 4
|
||||
#define CBM 5
|
||||
#define DEL 0
|
||||
#define SEQ 1
|
||||
#define PRG 2
|
||||
#define USR 3
|
||||
#define REL 4
|
||||
#define CBM 5
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GGRAPH_H
|
||||
#ifndef _GGRAPH_H
|
||||
#define _GGRAPH_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
@@ -40,125 +40,125 @@ void UseSystemFont(void);
|
||||
|
||||
void __fastcall__ BitmapUp(struct iconpic *myIcon);
|
||||
void __fastcall__ BitmapClip(char skipl, char skipr, unsigned skiptop,
|
||||
struct iconpic *myIcon);
|
||||
struct iconpic *myIcon);
|
||||
void __fastcall__ BitOtherClip(void *proc1, void *proc2, char skipl,
|
||||
char skipr, unsigned skiptop,
|
||||
struct iconpic *myIcon);
|
||||
char skipr, unsigned skiptop,
|
||||
struct iconpic *myIcon);
|
||||
|
||||
void __fastcall__ GraphicsString(char *myGfxString);
|
||||
|
||||
/* VIC colour constants */
|
||||
#define BLACK 0
|
||||
#define WHITE 1
|
||||
#define RED 2
|
||||
#define CYAN 3
|
||||
#define PURPLE 4
|
||||
#define GREEN 5
|
||||
#define BLUE 6
|
||||
#define YELLOW 7
|
||||
#define ORANGE 8
|
||||
#define BROWN 9
|
||||
#define LTRED 10
|
||||
#define DKGREY 11
|
||||
#define GREY 12
|
||||
#define MEDGREY 12
|
||||
#define LTGREEN 13
|
||||
#define LTBLUE 14
|
||||
#define LTGREY 15
|
||||
#define BLACK 0
|
||||
#define WHITE 1
|
||||
#define RED 2
|
||||
#define CYAN 3
|
||||
#define PURPLE 4
|
||||
#define GREEN 5
|
||||
#define BLUE 6
|
||||
#define YELLOW 7
|
||||
#define ORANGE 8
|
||||
#define BROWN 9
|
||||
#define LTRED 10
|
||||
#define DKGREY 11
|
||||
#define GREY 12
|
||||
#define MEDGREY 12
|
||||
#define LTGREEN 13
|
||||
#define LTBLUE 14
|
||||
#define LTGREY 15
|
||||
/* VIC memory banks - lowest 2 bits of cia2base+0 */
|
||||
#define GRBANK0 3
|
||||
#define GRBANK1 2
|
||||
#define GRBANK2 1
|
||||
#define GRBANK3 0
|
||||
#define GRBANK0 3
|
||||
#define GRBANK1 2
|
||||
#define GRBANK2 1
|
||||
#define GRBANK3 0
|
||||
/* VIC screen sizes */
|
||||
#define VIC_X_POS_OFF 24
|
||||
#define VIC_Y_POS_OFF 50
|
||||
#define VIC_X_POS_OFF 24
|
||||
#define VIC_Y_POS_OFF 50
|
||||
#ifdef __GEOS_CBM__
|
||||
#define SC_BYTE_WIDTH 40
|
||||
#define SC_PIX_HEIGHT 200
|
||||
#define SC_PIX_WIDTH 320
|
||||
#define SC_SIZE 8000
|
||||
#define SC_BYTE_WIDTH 40
|
||||
#define SC_PIX_HEIGHT 200
|
||||
#define SC_PIX_WIDTH 320
|
||||
#define SC_SIZE 8000
|
||||
#else
|
||||
#define SC_BYTE_WIDTH 70
|
||||
#define SC_PIX_HEIGHT 192
|
||||
#define SC_PIX_WIDTH 560
|
||||
#define SC_SIZE 13440
|
||||
#define SC_BYTE_WIDTH 70
|
||||
#define SC_PIX_HEIGHT 192
|
||||
#define SC_PIX_WIDTH 560
|
||||
#define SC_SIZE 13440
|
||||
#endif
|
||||
/* VDC screen constants */
|
||||
#define SCREENBYTEWIDTH 80
|
||||
#define SCREENPIXELWIDTH 640
|
||||
/* VDC screen constants */
|
||||
#define SCREENBYTEWIDTH 80
|
||||
#define SCREENPIXELWIDTH 640
|
||||
/* control characters for use as numbers, not characters */
|
||||
#define BACKSPACE 8
|
||||
#define FORWARDSPACE 9
|
||||
#define TAB 9
|
||||
#define LF 10
|
||||
#define HOME 11
|
||||
#define PAGE_BREAK 12
|
||||
#define UPLINE 12
|
||||
#define CR 13
|
||||
#define ULINEON 14
|
||||
#define ULINEOFF 15
|
||||
#define ESC_GRAPHICS 16
|
||||
#define ESC_RULER 17
|
||||
#define REV_ON 18
|
||||
#define REV_OFF 19
|
||||
#define GOTOX 20
|
||||
#define GOTOY 21
|
||||
#define GOTOXY 22
|
||||
#define NEWCARDSET 23
|
||||
#define BOLDON 24
|
||||
#define ITALICON 25
|
||||
#define OUTLINEON 26
|
||||
#define PLAINTEXT 27
|
||||
#define BACKSPACE 8
|
||||
#define FORWARDSPACE 9
|
||||
#define TAB 9
|
||||
#define LF 10
|
||||
#define HOME 11
|
||||
#define PAGE_BREAK 12
|
||||
#define UPLINE 12
|
||||
#define CR 13
|
||||
#define ULINEON 14
|
||||
#define ULINEOFF 15
|
||||
#define ESC_GRAPHICS 16
|
||||
#define ESC_RULER 17
|
||||
#define REV_ON 18
|
||||
#define REV_OFF 19
|
||||
#define GOTOX 20
|
||||
#define GOTOY 21
|
||||
#define GOTOXY 22
|
||||
#define NEWCARDSET 23
|
||||
#define BOLDON 24
|
||||
#define ITALICON 25
|
||||
#define OUTLINEON 26
|
||||
#define PLAINTEXT 27
|
||||
/* control characters for use in
|
||||
strings: eg: str[10]=CBOLDON "Hello"; */
|
||||
#define CCR "\015"
|
||||
#define CULINEON "\016"
|
||||
#define CULINEOFF "\017"
|
||||
#define CREV_ON "\022"
|
||||
#define CREV_OFF "\023"
|
||||
#define CBOLDON "\030"
|
||||
#define CITALICON "\031"
|
||||
#define COUTLINEON "\032"
|
||||
#define CPLAINTEXT "\033"
|
||||
#define CCR "\015"
|
||||
#define CULINEON "\016"
|
||||
#define CULINEOFF "\017"
|
||||
#define CREV_ON "\022"
|
||||
#define CREV_OFF "\023"
|
||||
#define CBOLDON "\030"
|
||||
#define CITALICON "\031"
|
||||
#define COUTLINEON "\032"
|
||||
#define CPLAINTEXT "\033"
|
||||
|
||||
/*values of currentMode */
|
||||
/*values of currentMode */
|
||||
/* bitNumbers */
|
||||
#define UNDERLINE_BIT 7
|
||||
#define BOLD_BIT 6
|
||||
#define REVERSE_BIT 5
|
||||
#define ITALIC_BIT 4
|
||||
#define OUTLINE_BIT 3
|
||||
#define SUPERSCRIPT_BIT 2
|
||||
#define SUBSCRIPT_BIT 1
|
||||
#define UNDERLINE_BIT 7
|
||||
#define BOLD_BIT 6
|
||||
#define REVERSE_BIT 5
|
||||
#define ITALIC_BIT 4
|
||||
#define OUTLINE_BIT 3
|
||||
#define SUPERSCRIPT_BIT 2
|
||||
#define SUBSCRIPT_BIT 1
|
||||
/* bitMasks */
|
||||
#define SET_UNDERLINE 0x80
|
||||
#define SET_BOLD 0x40
|
||||
#define SET_REVERSE 0x20
|
||||
#define SET_ITALIC 0x10
|
||||
#define SET_OUTLINE 0x08
|
||||
#define SET_SUPERSCRIPT 0x04
|
||||
#define SET_SUBSCRIPT 0x02
|
||||
#define SET_PLAINTEXT 0
|
||||
#define SET_UNDERLINE 0x80
|
||||
#define SET_BOLD 0x40
|
||||
#define SET_REVERSE 0x20
|
||||
#define SET_ITALIC 0x10
|
||||
#define SET_OUTLINE 0x08
|
||||
#define SET_SUPERSCRIPT 0x04
|
||||
#define SET_SUBSCRIPT 0x02
|
||||
#define SET_PLAINTEXT 0
|
||||
/* values of dispBufferOn */
|
||||
#define ST_WRGS_FORE 0x20
|
||||
#define ST_WR_BACK 0x40
|
||||
#define ST_WR_FORE 0x80
|
||||
#define ST_WRGS_FORE 0x20
|
||||
#define ST_WR_BACK 0x40
|
||||
#define ST_WR_FORE 0x80
|
||||
/* PutDecimal parameters */
|
||||
/* leading zeros? */
|
||||
#define SET_NOSURPRESS 0
|
||||
#define SET_SURPRESS 0x40
|
||||
#define SET_NOSURPRESS 0
|
||||
#define SET_SURPRESS 0x40
|
||||
/* justification */
|
||||
#define SET_RIGHTJUST 0
|
||||
#define SET_LEFTJUST 0x80
|
||||
#define SET_RIGHTJUST 0
|
||||
#define SET_LEFTJUST 0x80
|
||||
/* C128 x-extension flags */
|
||||
#define ADD1_W 0x2000
|
||||
#define DOUBLE_B 0x80
|
||||
#define DOUBLE_W 0x8000
|
||||
#define ADD1_W 0x2000
|
||||
#define DOUBLE_B 0x80
|
||||
#define DOUBLE_W 0x8000
|
||||
/* DrawLine/DrawPoint mode values */
|
||||
#define DRAW_ERASE 0x00
|
||||
#define DRAW_DRAW 0x40
|
||||
#define DRAW_COPY 0x80
|
||||
#define DRAW_ERASE 0x00
|
||||
#define DRAW_DRAW 0x40
|
||||
#define DRAW_COPY 0x80
|
||||
|
||||
typedef void graphicStr;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GMEMORY_H
|
||||
#ifndef _GMEMORY_H
|
||||
#define _GMEMORY_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GMENU_H
|
||||
#ifndef _GMENU_H
|
||||
#define _GMENU_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
@@ -21,35 +21,35 @@ void GotoFirstMenu(void);
|
||||
void __fastcall__ DoIcons(struct icontab *myIconTab);
|
||||
|
||||
/* DoMenu - menutypes */
|
||||
#define MENU_ACTION 0x00
|
||||
#define DYN_SUB_MENU 0x40
|
||||
#define SUB_MENU 0x80
|
||||
#define HORIZONTAL 0x00
|
||||
#define VERTICAL 0x80
|
||||
#define MENU_ACTION 0x00
|
||||
#define DYN_SUB_MENU 0x40
|
||||
#define SUB_MENU 0x80
|
||||
#define HORIZONTAL 0x00
|
||||
#define VERTICAL 0x80
|
||||
/* menu string offsets */
|
||||
#define OFF_MY_TOP 0
|
||||
#define OFF_MY_BOT 1
|
||||
#define OFF_MX_LEFT 2
|
||||
#define OFF_MX_RIGHT 4
|
||||
#define OFF_NUM_M_ITEMS 6
|
||||
#define OFF_1ST_M_ITEM 7
|
||||
#define OFF_MY_TOP 0
|
||||
#define OFF_MY_BOT 1
|
||||
#define OFF_MX_LEFT 2
|
||||
#define OFF_MX_RIGHT 4
|
||||
#define OFF_NUM_M_ITEMS 6
|
||||
#define OFF_1ST_M_ITEM 7
|
||||
/* icon string offsets */
|
||||
#define OFF_NM_ICNS 0
|
||||
#define OFF_IC_XMOUSE 1
|
||||
#define OFF_IC_YMOUSE 3
|
||||
#define OFF_PIC_ICON 0
|
||||
#define OFF_X_ICON_POS 2
|
||||
#define OFF_Y_ICON_POS 3
|
||||
#define OFF_WDTH_ICON 4
|
||||
#define OFF_HEIGHT_ICON 5
|
||||
#define OFF_SRV_RT_ICON 6
|
||||
#define OFF_NX_ICON 8
|
||||
/* icons, menus status flags */
|
||||
#define ST_FLASH 0x80
|
||||
#define ST_INVERT 0x40
|
||||
#define ST_LD_AT_ADDR 0x01
|
||||
#define ST_LD_DATA 0x80
|
||||
#define ST_PR_DATA 0x40
|
||||
#define ST_WR_PR 0x40
|
||||
#define OFF_NM_ICNS 0
|
||||
#define OFF_IC_XMOUSE 1
|
||||
#define OFF_IC_YMOUSE 3
|
||||
#define OFF_PIC_ICON 0
|
||||
#define OFF_X_ICON_POS 2
|
||||
#define OFF_Y_ICON_POS 3
|
||||
#define OFF_WDTH_ICON 4
|
||||
#define OFF_HEIGHT_ICON 5
|
||||
#define OFF_SRV_RT_ICON 6
|
||||
#define OFF_NX_ICON 8
|
||||
/* icons, menus status flags */
|
||||
#define ST_FLASH 0x80
|
||||
#define ST_INVERT 0x40
|
||||
#define ST_LD_AT_ADDR 0x01
|
||||
#define ST_LD_DATA 0x80
|
||||
#define ST_PR_DATA 0x40
|
||||
#define ST_WR_PR 0x40
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GPROCESS_H
|
||||
#ifndef _GPROCESS_H
|
||||
#define _GPROCESS_H
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GSPRITE_H
|
||||
#ifndef _GSPRITE_H
|
||||
#define _GSPRITE_H
|
||||
|
||||
void StartMouseMode(void);
|
||||
@@ -24,73 +24,73 @@ void PromptOff(void);
|
||||
char GetNextChar(void);
|
||||
|
||||
/* keyboard constants */
|
||||
#define KEY_F1 1
|
||||
#define KEY_F2 2
|
||||
#define KEY_F3 3
|
||||
#define KEY_F4 4
|
||||
#define KEY_F5 5
|
||||
#define KEY_F6 6
|
||||
#define KEY_NOSCRL 7
|
||||
#define KEY_ENTER 13
|
||||
#define KEY_F7 14
|
||||
#define KEY_F8 15
|
||||
#define KEY_HOME 18
|
||||
#define KEY_CLEAR 19
|
||||
#define KEY_LARROW 20
|
||||
#define KEY_UPARROW 21
|
||||
#define KEY_STOP 22
|
||||
#define KEY_RUN 23
|
||||
#define KEY_BPS 24
|
||||
#define KEY_HELP 25
|
||||
#define KEY_ALT 26
|
||||
#define KEY_ESC 27
|
||||
#define KEY_INSERT 28
|
||||
#define KEY_INVALID 31
|
||||
#define KEY_LEFT BACKSPACE
|
||||
#define KEY_F1 1
|
||||
#define KEY_F2 2
|
||||
#define KEY_F3 3
|
||||
#define KEY_F4 4
|
||||
#define KEY_F5 5
|
||||
#define KEY_F6 6
|
||||
#define KEY_NOSCRL 7
|
||||
#define KEY_ENTER 13
|
||||
#define KEY_F7 14
|
||||
#define KEY_F8 15
|
||||
#define KEY_HOME 18
|
||||
#define KEY_CLEAR 19
|
||||
#define KEY_LARROW 20
|
||||
#define KEY_UPARROW 21
|
||||
#define KEY_STOP 22
|
||||
#define KEY_RUN 23
|
||||
#define KEY_BPS 24
|
||||
#define KEY_HELP 25
|
||||
#define KEY_ALT 26
|
||||
#define KEY_ESC 27
|
||||
#define KEY_INSERT 28
|
||||
#define KEY_INVALID 31
|
||||
#define KEY_LEFT BACKSPACE
|
||||
#ifdef __GEOS_CBM__
|
||||
#define KEY_UP 16
|
||||
#define KEY_DOWN 17
|
||||
#define KEY_DELETE 29
|
||||
#define KEY_RIGHT 30
|
||||
#define KEY_UP 16
|
||||
#define KEY_DOWN 17
|
||||
#define KEY_DELETE 29
|
||||
#define KEY_RIGHT 30
|
||||
#else
|
||||
#define KEY_UP 11
|
||||
#define KEY_DOWN 10
|
||||
#define KEY_DELETE 127
|
||||
#define KEY_RIGHT 21
|
||||
#define KEY_UP 11
|
||||
#define KEY_DOWN 10
|
||||
#define KEY_DELETE 127
|
||||
#define KEY_RIGHT 21
|
||||
#endif
|
||||
|
||||
/* values of faultData - pointer position vs. mouseWindow */
|
||||
/* bit numbers */
|
||||
#define OFFTOP_BIT 7
|
||||
#define OFFBOTTOM_BIT 6
|
||||
#define OFFLEFT_BIT 5
|
||||
#define OFFRIGHT_BIT 4
|
||||
#define OFFMENU_BIT 3
|
||||
#define OFFTOP_BIT 7
|
||||
#define OFFBOTTOM_BIT 6
|
||||
#define OFFLEFT_BIT 5
|
||||
#define OFFRIGHT_BIT 4
|
||||
#define OFFMENU_BIT 3
|
||||
/* bit masks */
|
||||
#define SET_OFFTOP 0x80
|
||||
#define SET_OFFBOTTOM 0x40
|
||||
#define SET_OFFLEFT 0x20
|
||||
#define SET_OFFRIGHT 0x10
|
||||
#define SET_OFFMENU 0x08
|
||||
#define SET_OFFTOP 0x80
|
||||
#define SET_OFFBOTTOM 0x40
|
||||
#define SET_OFFLEFT 0x20
|
||||
#define SET_OFFRIGHT 0x10
|
||||
#define SET_OFFMENU 0x08
|
||||
|
||||
/* mouseOn */
|
||||
/* bit numbers */
|
||||
#define MOUSEON_BIT 7
|
||||
#define MENUON_BIT 6
|
||||
#define ICONSON_BIT 5
|
||||
#define MOUSEON_BIT 7
|
||||
#define MENUON_BIT 6
|
||||
#define ICONSON_BIT 5
|
||||
/* bit masks */
|
||||
#define SET_MSE_ON 0x80
|
||||
#define SET_MENUON 0x40
|
||||
#define SET_ICONSON 0x20
|
||||
#define SET_MSE_ON 0x80
|
||||
#define SET_MENUON 0x40
|
||||
#define SET_ICONSON 0x20
|
||||
|
||||
/* pressFlag */
|
||||
/* bit numbers */
|
||||
#define KEYPRESS_BIT 7
|
||||
#define INPUT_BIT 6
|
||||
#define MOUSE_BIT 5
|
||||
#define KEYPRESS_BIT 7
|
||||
#define INPUT_BIT 6
|
||||
#define MOUSE_BIT 5
|
||||
/* bit masks */
|
||||
#define SET_KEYPRESS 0x80
|
||||
#define SET_INPUTCHG 0x40
|
||||
#define SET_MOUSE 0x20
|
||||
|
||||
#define SET_KEYPRESS 0x80
|
||||
#define SET_INPUTCHG 0x40
|
||||
#define SET_MOUSE 0x20
|
||||
|
||||
#endif
|
||||
|
||||
@@ -18,157 +18,157 @@
|
||||
|
||||
typedef void (*void_func) (void);
|
||||
|
||||
struct s_date { /* system date & time */
|
||||
char s_year;
|
||||
char s_month;
|
||||
char s_day;
|
||||
char s_hour;
|
||||
char s_minutes;
|
||||
char s_seconds;
|
||||
struct s_date { /* system date & time */
|
||||
char s_year;
|
||||
char s_month;
|
||||
char s_day;
|
||||
char s_hour;
|
||||
char s_minutes;
|
||||
char s_seconds;
|
||||
};
|
||||
|
||||
struct tr_se { /* track and sector */
|
||||
char track;
|
||||
char sector;
|
||||
struct tr_se { /* track and sector */
|
||||
char track;
|
||||
char sector;
|
||||
};
|
||||
|
||||
struct fileheader { /* header block (like fileHeader) */
|
||||
struct tr_se n_block;
|
||||
char icon_desc[3];
|
||||
char icon_pic[63];
|
||||
char dostype;
|
||||
char type;
|
||||
char structure;
|
||||
unsigned load_address;
|
||||
unsigned end_address;
|
||||
unsigned exec_address;
|
||||
char class_name[19];
|
||||
char column_flag;
|
||||
char author[63];
|
||||
char note[96];
|
||||
struct fileheader { /* header block (like fileHeader) */
|
||||
struct tr_se n_block;
|
||||
char icon_desc[3];
|
||||
char icon_pic[63];
|
||||
char dostype;
|
||||
char type;
|
||||
char structure;
|
||||
unsigned load_address;
|
||||
unsigned end_address;
|
||||
unsigned exec_address;
|
||||
char class_name[19];
|
||||
char column_flag;
|
||||
char author[63];
|
||||
char note[96];
|
||||
};
|
||||
|
||||
#ifdef __GEOS_CBM__
|
||||
|
||||
struct f_date { /* date in filedesctiptor */
|
||||
char f_year;
|
||||
char f_month;
|
||||
char f_day;
|
||||
char f_hour;
|
||||
char f_minute;
|
||||
struct f_date { /* date in filedesctiptor */
|
||||
char f_year;
|
||||
char f_month;
|
||||
char f_day;
|
||||
char f_hour;
|
||||
char f_minute;
|
||||
};
|
||||
|
||||
struct filehandle { /* filehandle in directory sectors */
|
||||
char dostype; /* or in dirEntryBuf */
|
||||
struct tr_se n_block;
|
||||
char name[16];
|
||||
struct tr_se header;
|
||||
char structure;
|
||||
char type;
|
||||
struct f_date date;
|
||||
unsigned size;
|
||||
struct filehandle { /* filehandle in directory sectors */
|
||||
char dostype; /* or in dirEntryBuf */
|
||||
struct tr_se n_block;
|
||||
char name[16];
|
||||
struct tr_se header;
|
||||
char structure;
|
||||
char type;
|
||||
struct f_date date;
|
||||
unsigned size;
|
||||
};
|
||||
|
||||
#else /* #ifdef __GEOS_CBM__ */
|
||||
|
||||
struct f_date { /* date in filedesctiptor */
|
||||
unsigned f_day:5;
|
||||
unsigned f_month:4;
|
||||
unsigned f_year:7;
|
||||
char f_minute;
|
||||
char f_hour;
|
||||
struct f_date { /* date in filedesctiptor */
|
||||
unsigned f_day:5;
|
||||
unsigned f_month:4;
|
||||
unsigned f_year:7;
|
||||
char f_minute;
|
||||
char f_hour;
|
||||
};
|
||||
|
||||
struct filehandle { /* filehandle in directory sectors */
|
||||
unsigned name_len:4; /* or in dirEntryBuf */
|
||||
unsigned structure:4;
|
||||
char name[15];
|
||||
char type;
|
||||
struct tr_se n_block;
|
||||
unsigned size;
|
||||
char byte_size[3];
|
||||
struct f_date date;
|
||||
char version;
|
||||
char min_version;
|
||||
char access;
|
||||
struct tr_se header;
|
||||
struct f_date mod_date;
|
||||
struct tr_se dir_head;
|
||||
struct filehandle { /* filehandle in directory sectors */
|
||||
unsigned name_len:4; /* or in dirEntryBuf */
|
||||
unsigned structure:4;
|
||||
char name[15];
|
||||
char type;
|
||||
struct tr_se n_block;
|
||||
unsigned size;
|
||||
char byte_size[3];
|
||||
struct f_date date;
|
||||
char version;
|
||||
char min_version;
|
||||
char access;
|
||||
struct tr_se header;
|
||||
struct f_date mod_date;
|
||||
struct tr_se dir_head;
|
||||
};
|
||||
|
||||
#endif /* #ifdef __GEOS_CBM__ */
|
||||
|
||||
struct pixel { /* describes point */
|
||||
unsigned x;
|
||||
char y;
|
||||
struct pixel { /* describes point */
|
||||
unsigned x;
|
||||
char y;
|
||||
};
|
||||
|
||||
struct fontdesc { /* describes font */
|
||||
char baseline;
|
||||
char width;
|
||||
char height;
|
||||
char *index_tbl;
|
||||
char *data_ptr;
|
||||
struct fontdesc { /* describes font */
|
||||
char baseline;
|
||||
char width;
|
||||
char height;
|
||||
char *index_tbl;
|
||||
char *data_ptr;
|
||||
};
|
||||
|
||||
struct window { /* describes screen region */
|
||||
char top;
|
||||
char bot;
|
||||
unsigned left;
|
||||
unsigned right;
|
||||
struct window { /* describes screen region */
|
||||
char top;
|
||||
char bot;
|
||||
unsigned left;
|
||||
unsigned right;
|
||||
};
|
||||
|
||||
struct VLIR_info { /* VLIR information */
|
||||
char curRecord; /* currently only used in VLIR */
|
||||
char usedRecords; /* as system info (curRecord is mainly of your interest */
|
||||
char fileWritten;
|
||||
unsigned fileSize;
|
||||
struct VLIR_info { /* VLIR information */
|
||||
char curRecord; /* currently only used in VLIR */
|
||||
char usedRecords; /* as system info (curRecord is mainly of your interest */
|
||||
char fileWritten;
|
||||
unsigned fileSize;
|
||||
};
|
||||
|
||||
struct process { /* process info, declare table of that type */
|
||||
unsigned pointer; /* (like: struct process proctab[2]=... */
|
||||
unsigned jiffies; /* last entry HAVE TO BE {0,0} */
|
||||
struct process { /* process info, declare table of that type */
|
||||
unsigned pointer; /* (like: struct process proctab[2]=... */
|
||||
unsigned jiffies; /* last entry HAVE TO BE {0,0} */
|
||||
};
|
||||
|
||||
struct iconpic { /* icon/encoded bitmap description */
|
||||
char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
|
||||
char x; /* position in cards (*8 pixels) */
|
||||
char y;
|
||||
char width; /* in cards */
|
||||
char heigth; /* in lines (pixels) */
|
||||
struct iconpic { /* icon/encoded bitmap description */
|
||||
char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
|
||||
char x; /* position in cards (*8 pixels) */
|
||||
char y;
|
||||
char width; /* in cards */
|
||||
char heigth; /* in lines (pixels) */
|
||||
};
|
||||
|
||||
struct icondef { /* icon definition for DoIcons */
|
||||
char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
|
||||
char x; /* position in cards (*8 pixels) */
|
||||
char y;
|
||||
char width; /* of icon (in cards) */
|
||||
char heigth; /* of icon in lines (pixels) */
|
||||
unsigned proc_ptr; /* pointer to function handling that icon */
|
||||
struct icondef { /* icon definition for DoIcons */
|
||||
char *pic_ptr; /* ptr to a photo scrap (or encoded bitmap) */
|
||||
char x; /* position in cards (*8 pixels) */
|
||||
char y;
|
||||
char width; /* of icon (in cards) */
|
||||
char heigth; /* of icon in lines (pixels) */
|
||||
unsigned proc_ptr; /* pointer to function handling that icon */
|
||||
};
|
||||
|
||||
struct icontab {
|
||||
char number; /* number of declared icons */
|
||||
struct pixel mousepos; /* position of mouse after DoIcons */
|
||||
struct icondef tab[]; /* table of size declared by icontab.number */
|
||||
char number; /* number of declared icons */
|
||||
struct pixel mousepos; /* position of mouse after DoIcons */
|
||||
struct icondef tab[]; /* table of size declared by icontab.number */
|
||||
};
|
||||
|
||||
struct menuitem {
|
||||
char *name;
|
||||
char type;
|
||||
void *rest; /* may be ptr to function, or ptr to struct menu (submenu) */
|
||||
char *name;
|
||||
char type;
|
||||
void *rest; /* may be ptr to function, or ptr to struct menu (submenu) */
|
||||
};
|
||||
|
||||
struct menu {
|
||||
struct window size;
|
||||
char number;
|
||||
struct menuitem items[];
|
||||
struct window size;
|
||||
char number;
|
||||
struct menuitem items[];
|
||||
};
|
||||
|
||||
struct inittab { /* use struct inittab mytab[n] for initram */
|
||||
unsigned ptr; /* ptr to 1st byte */
|
||||
char number; /* number of following bytes */
|
||||
char values[]; /* actual string of bytes */
|
||||
struct inittab { /* use struct inittab mytab[n] for initram */
|
||||
unsigned ptr; /* ptr to 1st byte */
|
||||
char number; /* number of following bytes */
|
||||
char values[]; /* actual string of bytes */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -11,331 +11,331 @@
|
||||
#include <geos/gstruct.h>
|
||||
#endif
|
||||
|
||||
#define r0 (*(unsigned*)(R_BASE + 0x00))
|
||||
#define r0L (*(char*)(R_BASE + 0x00))
|
||||
#define r0H (*(char*)(R_BASE + 0x01))
|
||||
#define r1 (*(unsigned*)(R_BASE + 0x02))
|
||||
#define r1L (*(char*)(R_BASE + 0x02))
|
||||
#define r1H (*(char*)(R_BASE + 0x03))
|
||||
#define drawWindow (*(struct window*)(R_BASE + 0x04))
|
||||
#define r2 (*(unsigned*)(R_BASE + 0x04))
|
||||
#define r2L (*(char*)(R_BASE + 0x04))
|
||||
#define r2H (*(char*)(R_BASE + 0x05))
|
||||
#define r3 (*(unsigned*)(R_BASE + 0x06))
|
||||
#define r3L (*(char*)(R_BASE + 0x06))
|
||||
#define r3H (*(char*)(R_BASE + 0x07))
|
||||
#define r4 (*(unsigned*)(R_BASE + 0x08))
|
||||
#define r4L (*(char*)(R_BASE + 0x08))
|
||||
#define r4H (*(char*)(R_BASE + 0x09))
|
||||
#define r5 (*(unsigned*)(R_BASE + 0x0a))
|
||||
#define r5L (*(char*)(R_BASE + 0x0a))
|
||||
#define r5H (*(char*)(R_BASE + 0x0b))
|
||||
#define r6 (*(unsigned*)(R_BASE + 0x0c))
|
||||
#define r6L (*(char*)(R_BASE + 0x0c))
|
||||
#define r6H (*(char*)(R_BASE + 0x0d))
|
||||
#define r7 (*(unsigned*)(R_BASE + 0x0e))
|
||||
#define r7L (*(char*)(R_BASE + 0x0e))
|
||||
#define r7H (*(char*)(R_BASE + 0x0f))
|
||||
#define r8 (*(unsigned*)(R_BASE + 0x10))
|
||||
#define r8L (*(char*)(R_BASE + 0x10))
|
||||
#define r8H (*(char*)(R_BASE + 0x11))
|
||||
#define r9 (*(unsigned*)(R_BASE + 0x12))
|
||||
#define r9L (*(char*)(R_BASE + 0x12))
|
||||
#define r9H (*(char*)(R_BASE + 0x13))
|
||||
#define r10 (*(unsigned*)(R_BASE + 0x14))
|
||||
#define r10L (*(char*)(R_BASE + 0x14))
|
||||
#define r10H (*(char*)(R_BASE + 0x15))
|
||||
#define r11 (*(unsigned*)(R_BASE + 0x16))
|
||||
#define r11L (*(char*)(R_BASE + 0x16))
|
||||
#define r11H (*(char*)(R_BASE + 0x17))
|
||||
#define r12 (*(unsigned*)(R_BASE + 0x18))
|
||||
#define r12L (*(char*)(R_BASE + 0x18))
|
||||
#define r12H (*(char*)(R_BASE + 0x19))
|
||||
#define r13 (*(unsigned*)(R_BASE + 0x1a))
|
||||
#define r13L (*(char*)(R_BASE + 0x1a))
|
||||
#define r13H (*(char*)(R_BASE + 0x1b))
|
||||
#define r14 (*(unsigned*)(R_BASE + 0x1c))
|
||||
#define r14L (*(char*)(R_BASE + 0x1c))
|
||||
#define r14H (*(char*)(R_BASE + 0x1d))
|
||||
#define r15 (*(unsigned*)(R_BASE + 0x1e))
|
||||
#define r15L (*(char*)(R_BASE + 0x1e))
|
||||
#define r15H (*(char*)(R_BASE + 0x1f))
|
||||
#define r0 (*(unsigned*)(R_BASE + 0x00))
|
||||
#define r0L (*(char*)(R_BASE + 0x00))
|
||||
#define r0H (*(char*)(R_BASE + 0x01))
|
||||
#define r1 (*(unsigned*)(R_BASE + 0x02))
|
||||
#define r1L (*(char*)(R_BASE + 0x02))
|
||||
#define r1H (*(char*)(R_BASE + 0x03))
|
||||
#define drawWindow (*(struct window*)(R_BASE + 0x04))
|
||||
#define r2 (*(unsigned*)(R_BASE + 0x04))
|
||||
#define r2L (*(char*)(R_BASE + 0x04))
|
||||
#define r2H (*(char*)(R_BASE + 0x05))
|
||||
#define r3 (*(unsigned*)(R_BASE + 0x06))
|
||||
#define r3L (*(char*)(R_BASE + 0x06))
|
||||
#define r3H (*(char*)(R_BASE + 0x07))
|
||||
#define r4 (*(unsigned*)(R_BASE + 0x08))
|
||||
#define r4L (*(char*)(R_BASE + 0x08))
|
||||
#define r4H (*(char*)(R_BASE + 0x09))
|
||||
#define r5 (*(unsigned*)(R_BASE + 0x0a))
|
||||
#define r5L (*(char*)(R_BASE + 0x0a))
|
||||
#define r5H (*(char*)(R_BASE + 0x0b))
|
||||
#define r6 (*(unsigned*)(R_BASE + 0x0c))
|
||||
#define r6L (*(char*)(R_BASE + 0x0c))
|
||||
#define r6H (*(char*)(R_BASE + 0x0d))
|
||||
#define r7 (*(unsigned*)(R_BASE + 0x0e))
|
||||
#define r7L (*(char*)(R_BASE + 0x0e))
|
||||
#define r7H (*(char*)(R_BASE + 0x0f))
|
||||
#define r8 (*(unsigned*)(R_BASE + 0x10))
|
||||
#define r8L (*(char*)(R_BASE + 0x10))
|
||||
#define r8H (*(char*)(R_BASE + 0x11))
|
||||
#define r9 (*(unsigned*)(R_BASE + 0x12))
|
||||
#define r9L (*(char*)(R_BASE + 0x12))
|
||||
#define r9H (*(char*)(R_BASE + 0x13))
|
||||
#define r10 (*(unsigned*)(R_BASE + 0x14))
|
||||
#define r10L (*(char*)(R_BASE + 0x14))
|
||||
#define r10H (*(char*)(R_BASE + 0x15))
|
||||
#define r11 (*(unsigned*)(R_BASE + 0x16))
|
||||
#define r11L (*(char*)(R_BASE + 0x16))
|
||||
#define r11H (*(char*)(R_BASE + 0x17))
|
||||
#define r12 (*(unsigned*)(R_BASE + 0x18))
|
||||
#define r12L (*(char*)(R_BASE + 0x18))
|
||||
#define r12H (*(char*)(R_BASE + 0x19))
|
||||
#define r13 (*(unsigned*)(R_BASE + 0x1a))
|
||||
#define r13L (*(char*)(R_BASE + 0x1a))
|
||||
#define r13H (*(char*)(R_BASE + 0x1b))
|
||||
#define r14 (*(unsigned*)(R_BASE + 0x1c))
|
||||
#define r14L (*(char*)(R_BASE + 0x1c))
|
||||
#define r14H (*(char*)(R_BASE + 0x1d))
|
||||
#define r15 (*(unsigned*)(R_BASE + 0x1e))
|
||||
#define r15L (*(char*)(R_BASE + 0x1e))
|
||||
#define r15H (*(char*)(R_BASE + 0x1f))
|
||||
|
||||
#ifdef __GEOS_CBM__
|
||||
|
||||
#define nameBuf char[17]
|
||||
#define blockBuf char[256]
|
||||
#define nameBuf char[17]
|
||||
#define blockBuf char[256]
|
||||
|
||||
#define CPU_DDR (*(char*)0x00)
|
||||
#define CPU_DATA (*(char*)0x01)
|
||||
#define CPU_DDR (*(char*)0x00)
|
||||
#define CPU_DATA (*(char*)0x01)
|
||||
|
||||
#define R_BASE 0x02
|
||||
#define R_BASE 0x02
|
||||
|
||||
#define curPattern (*(unsigned*)0x22)
|
||||
#define string (*(unsigned*)0x24)
|
||||
#define curFontDesc (*(struct fontdesc*)0x26)
|
||||
#define currentMode (*(char*)0x2e)
|
||||
#define dispBufferOn (*(char*)0x2f)
|
||||
#define mouseOn (*(char*)0x30)
|
||||
#define msePicPtr (*(unsigned*)0x31)
|
||||
#define curWindow (*(struct window*)0x33)
|
||||
#define pressFlag (*(char*)0x39)
|
||||
#define mousePos (*(struct pixel*)0x3a)
|
||||
#define returnAddress (*(unsigned*)0x3d)
|
||||
#define graphMode (*(char*)0x3f)
|
||||
#define STATUS (*(char*)0x90)
|
||||
#define curDevice (*(char*)0xba)
|
||||
#define curPattern (*(unsigned*)0x22)
|
||||
#define string (*(unsigned*)0x24)
|
||||
#define curFontDesc (*(struct fontdesc*)0x26)
|
||||
#define currentMode (*(char*)0x2e)
|
||||
#define dispBufferOn (*(char*)0x2f)
|
||||
#define mouseOn (*(char*)0x30)
|
||||
#define msePicPtr (*(unsigned*)0x31)
|
||||
#define curWindow (*(struct window*)0x33)
|
||||
#define pressFlag (*(char*)0x39)
|
||||
#define mousePos (*(struct pixel*)0x3a)
|
||||
#define returnAddress (*(unsigned*)0x3d)
|
||||
#define graphMode (*(char*)0x3f)
|
||||
#define STATUS (*(char*)0x90)
|
||||
#define curDevice (*(char*)0xba)
|
||||
|
||||
#define irqvec (*(void_func*)0x0314)
|
||||
#define bkvec (*(void_func*)0x0316)
|
||||
#define nmivec (*(void_func*)0x0318)
|
||||
#define irqvec (*(void_func*)0x0314)
|
||||
#define bkvec (*(void_func*)0x0316)
|
||||
#define nmivec (*(void_func*)0x0318)
|
||||
|
||||
#define APP_RAM ((char*)0x0400)
|
||||
#define BACK_SCR_BASE ((char*)0x6000)
|
||||
#define PRINTBASE ((char*)0x7900)
|
||||
#define OS_VARS ((char*)0x8000)
|
||||
#define APP_RAM ((char*)0x0400)
|
||||
#define BACK_SCR_BASE ((char*)0x6000)
|
||||
#define PRINTBASE ((char*)0x7900)
|
||||
#define OS_VARS ((char*)0x8000)
|
||||
|
||||
#define diskBlkBuf ((blockBuf)0x8000)
|
||||
#define fileHeader (*(struct fileheader*)0x8100)
|
||||
#define curDirHead ((blockBuf)0x8200)
|
||||
#define fileTrScTab ((struct tr_se[128])0x8300)
|
||||
#define dirEntryBuf (*(struct filehandle*)0x8400)
|
||||
#define diskBlkBuf ((blockBuf)0x8000)
|
||||
#define fileHeader (*(struct fileheader*)0x8100)
|
||||
#define curDirHead ((blockBuf)0x8200)
|
||||
#define fileTrScTab ((struct tr_se[128])0x8300)
|
||||
#define dirEntryBuf (*(struct filehandle*)0x8400)
|
||||
|
||||
#define DrACurDkNm ((nameBuf)0x841e)
|
||||
#define DrBCurDkNm ((nameBuf)0x8430)
|
||||
#define dataFileName ((nameBuf)0x8442)
|
||||
#define dataDiskName ((nameBuf)0x8453)
|
||||
#define PrntFileName ((nameBuf)0x8465)
|
||||
#define PrntDiskName ((nameBuf)0x8476)
|
||||
#define DrACurDkNm ((nameBuf)0x841e)
|
||||
#define DrBCurDkNm ((nameBuf)0x8430)
|
||||
#define dataFileName ((nameBuf)0x8442)
|
||||
#define dataDiskName ((nameBuf)0x8453)
|
||||
#define PrntFileName ((nameBuf)0x8465)
|
||||
#define PrntDiskName ((nameBuf)0x8476)
|
||||
|
||||
#define curDrive (*(char*)0x8489)
|
||||
#define diskOpenFlg (*(char*)0x848a)
|
||||
#define isGEOS (*(char*)0x848b)
|
||||
#define interleave (*(char*)0x848c)
|
||||
#define NUMDRV (*(char*)0x848d)
|
||||
#define curDrive (*(char*)0x8489)
|
||||
#define diskOpenFlg (*(char*)0x848a)
|
||||
#define isGEOS (*(char*)0x848b)
|
||||
#define interleave (*(char*)0x848c)
|
||||
#define NUMDRV (*(char*)0x848d)
|
||||
|
||||
#define driveType ((char[4])0x848e)
|
||||
#define turboFlags ((char[4])0x8492)
|
||||
#define driveType ((char[4])0x848e)
|
||||
#define turboFlags ((char[4])0x8492)
|
||||
|
||||
#define VLIRInfo (*(struct VLIR_info*)0x8496)
|
||||
#define VLIRInfo (*(struct VLIR_info*)0x8496)
|
||||
|
||||
#define appMain (*(void_func*)0x849b)
|
||||
#define intTopVector (*(void_func*)0x849d)
|
||||
#define intBotVector (*(void_func*)0x849f)
|
||||
#define mouseVector (*(void_func*)0x84a1)
|
||||
#define keyVector (*(void_func*)0x84a3)
|
||||
#define inputVector (*(void_func*)0x84a5)
|
||||
#define mouseFaultVec (*(void_func*)0x84a7)
|
||||
#define otherPressVec (*(void_func*)0x84a9)
|
||||
#define StringFaultVec (*(void_func*)0x84ab)
|
||||
#define alarmTmtVector (*(void_func*)0x84ad)
|
||||
#define BRKVector (*(void_func*)0x84af)
|
||||
#define RecoverVector (*(void_func*)0x84b1)
|
||||
#define appMain (*(void_func*)0x849b)
|
||||
#define intTopVector (*(void_func*)0x849d)
|
||||
#define intBotVector (*(void_func*)0x849f)
|
||||
#define mouseVector (*(void_func*)0x84a1)
|
||||
#define keyVector (*(void_func*)0x84a3)
|
||||
#define inputVector (*(void_func*)0x84a5)
|
||||
#define mouseFaultVec (*(void_func*)0x84a7)
|
||||
#define otherPressVec (*(void_func*)0x84a9)
|
||||
#define StringFaultVec (*(void_func*)0x84ab)
|
||||
#define alarmTmtVector (*(void_func*)0x84ad)
|
||||
#define BRKVector (*(void_func*)0x84af)
|
||||
#define RecoverVector (*(void_func*)0x84b1)
|
||||
|
||||
#define selectionFlash (*(char*)0x84b3)
|
||||
#define alphaFlag (*(char*)0x84b4)
|
||||
#define iconSelFlg (*(char*)0x84b5)
|
||||
#define faultData (*(char*)0x84b6)
|
||||
#define menuNumber (*(char*)0x84b7)
|
||||
#define mouseWindow (*(struct window*)0x84b8)
|
||||
#define stringXY (*(struct pixel*)0x84be)
|
||||
#define mousePicData (*(char*)0x84c1)
|
||||
#define selectionFlash (*(char*)0x84b3)
|
||||
#define alphaFlag (*(char*)0x84b4)
|
||||
#define iconSelFlg (*(char*)0x84b5)
|
||||
#define faultData (*(char*)0x84b6)
|
||||
#define menuNumber (*(char*)0x84b7)
|
||||
#define mouseWindow (*(struct window*)0x84b8)
|
||||
#define stringXY (*(struct pixel*)0x84be)
|
||||
#define mousePicData (*(char*)0x84c1)
|
||||
|
||||
#define maxMouseSpeed (*(char*)0x8501)
|
||||
#define minMouseSpeed (*(char*)0x8502)
|
||||
#define mouseAccel (*(char*)0x8503)
|
||||
#define keyData (*(char*)0x8504)
|
||||
#define mouseData (*(char*)0x8505)
|
||||
#define inputData (*(char*)0x8506)
|
||||
#define mouseSpeed (*(char*)0x8507)
|
||||
#define random (*(char*)0x850a)
|
||||
#define saveFontTab (*(struct fontdesc*)0x850c)
|
||||
#define maxMouseSpeed (*(char*)0x8501)
|
||||
#define minMouseSpeed (*(char*)0x8502)
|
||||
#define mouseAccel (*(char*)0x8503)
|
||||
#define keyData (*(char*)0x8504)
|
||||
#define mouseData (*(char*)0x8505)
|
||||
#define inputData (*(char*)0x8506)
|
||||
#define mouseSpeed (*(char*)0x8507)
|
||||
#define random (*(char*)0x850a)
|
||||
#define saveFontTab (*(struct fontdesc*)0x850c)
|
||||
|
||||
#define dblClickCount (*(char*)0x8515)
|
||||
#define system_date (*(struct s_date*)0x8516)
|
||||
#define alarmSetFlag (*(char*)0x851c)
|
||||
#define sysDBData (*(char*)0x851d)
|
||||
#define screencolors (*(char*)0x851e)
|
||||
#define dlgBoxRamBuf (*(char*)0x851f)
|
||||
#define dblClickCount (*(char*)0x8515)
|
||||
#define system_date (*(struct s_date*)0x8516)
|
||||
#define alarmSetFlag (*(char*)0x851c)
|
||||
#define sysDBData (*(char*)0x851d)
|
||||
#define screencolors (*(char*)0x851e)
|
||||
#define dlgBoxRamBuf (*(char*)0x851f)
|
||||
|
||||
#define savedmoby2 (*(char*)0x88bb)
|
||||
#define scr80polar (*(char*)0x88bc)
|
||||
#define scr80colors (*(char*)0x88bd)
|
||||
#define vdcClrMode (*(char*)0x88be)
|
||||
#define driveData ((char[4])0x88bf)
|
||||
#define ramExpSize (*(char*)0x88c3)
|
||||
#define sysRAMFlg (*(char*)0x88c4)
|
||||
#define firstBoot (*(char*)0x88c5)
|
||||
#define curType (*(char*)0x88c6)
|
||||
#define ramBase (*(char*)0x88c7)
|
||||
#define inputDevName ((nameBuf)0x88cb)
|
||||
#define DrCCurDkNm ((nameBuf)0x88dc)
|
||||
#define DrDCurDkNm ((nameBuf)0x88ee)
|
||||
#define dir2Head ((blockBuf)0x8900)
|
||||
#define SPRITE_PICS ((char*)0x8a00)
|
||||
#define sprpic ((char[8][64])0x8a00)
|
||||
#define COLOR_MATRIX ((char[1000])0x8c00)
|
||||
#define objPointer ((char[8])0x8ff8)
|
||||
#define savedmoby2 (*(char*)0x88bb)
|
||||
#define scr80polar (*(char*)0x88bc)
|
||||
#define scr80colors (*(char*)0x88bd)
|
||||
#define vdcClrMode (*(char*)0x88be)
|
||||
#define driveData ((char[4])0x88bf)
|
||||
#define ramExpSize (*(char*)0x88c3)
|
||||
#define sysRAMFlg (*(char*)0x88c4)
|
||||
#define firstBoot (*(char*)0x88c5)
|
||||
#define curType (*(char*)0x88c6)
|
||||
#define ramBase (*(char*)0x88c7)
|
||||
#define inputDevName ((nameBuf)0x88cb)
|
||||
#define DrCCurDkNm ((nameBuf)0x88dc)
|
||||
#define DrDCurDkNm ((nameBuf)0x88ee)
|
||||
#define dir2Head ((blockBuf)0x8900)
|
||||
#define SPRITE_PICS ((char*)0x8a00)
|
||||
#define sprpic ((char[8][64])0x8a00)
|
||||
#define COLOR_MATRIX ((char[1000])0x8c00)
|
||||
#define objPointer ((char[8])0x8ff8)
|
||||
|
||||
#define DISK_BASE ((char*)0x9000)
|
||||
#define SCREEN_BASE ((char*)0xa000)
|
||||
#define OS_ROM ((char*)0xc000)
|
||||
#define OS_JUMPTAB ((char*)0xc100)
|
||||
#define EXP_BASE ((char*)0xdf00)
|
||||
#define MOUSE_BASE_128 ((char*)0xfd00)
|
||||
#define MOUSE_JMP_128 ((char*)0xfd00)
|
||||
#define END_MOUSE_128 ((char*)0xfe80)
|
||||
#define MOUSE_BASE ((char*)0xfe80)
|
||||
#define MOUSE_JMP ((char*)0xfe80)
|
||||
#define DISK_BASE ((char*)0x9000)
|
||||
#define SCREEN_BASE ((char*)0xa000)
|
||||
#define OS_ROM ((char*)0xc000)
|
||||
#define OS_JUMPTAB ((char*)0xc100)
|
||||
#define EXP_BASE ((char*)0xdf00)
|
||||
#define MOUSE_BASE_128 ((char*)0xfd00)
|
||||
#define MOUSE_JMP_128 ((char*)0xfd00)
|
||||
#define END_MOUSE_128 ((char*)0xfe80)
|
||||
#define MOUSE_BASE ((char*)0xfe80)
|
||||
#define MOUSE_JMP ((char*)0xfe80)
|
||||
|
||||
#define config (*(char*)0xff00)
|
||||
#define END_MOUSE ((char*)0xfffa)
|
||||
#define config (*(char*)0xff00)
|
||||
#define END_MOUSE ((char*)0xfffa)
|
||||
|
||||
#define NMI_VECTOR (*(void_func*)0xfffa)
|
||||
#define RESET_VECTOR (*(void_func*)0xfffc)
|
||||
#define IRQ_VECTOR (*(void_func*)0xfffe)
|
||||
#define NMI_VECTOR (*(void_func*)0xfffa)
|
||||
#define RESET_VECTOR (*(void_func*)0xfffc)
|
||||
#define IRQ_VECTOR (*(void_func*)0xfffe)
|
||||
|
||||
#define vicbase ((char*)0xd000)
|
||||
#define sidbase ((char*)0xd400)
|
||||
#define mmu ((char*)0xd500)
|
||||
#define VDC ((char*)0xd600)
|
||||
#define ctab ((char*)0xd800)
|
||||
#define cia1base ((char*)0xdc00)
|
||||
#define cia2base ((char*)0xdd00)
|
||||
#define vicbase ((char*)0xd000)
|
||||
#define sidbase ((char*)0xd400)
|
||||
#define mmu ((char*)0xd500)
|
||||
#define VDC ((char*)0xd600)
|
||||
#define ctab ((char*)0xd800)
|
||||
#define cia1base ((char*)0xdc00)
|
||||
#define cia2base ((char*)0xdd00)
|
||||
|
||||
#define mob0xpos (*(char*)0xd000)
|
||||
#define mob0ypos (*(char*)0xd001)
|
||||
#define mob1xpos (*(char*)0xd002)
|
||||
#define mob1ypos (*(char*)0xd003)
|
||||
#define mob2xpos (*(char*)0xd004)
|
||||
#define mob2ypos (*(char*)0xd005)
|
||||
#define mob3xpos (*(char*)0xd006)
|
||||
#define mob3ypos (*(char*)0xd007)
|
||||
#define mob4xpos (*(char*)0xd008)
|
||||
#define mob4ypos (*(char*)0xd009)
|
||||
#define mob5xpos (*(char*)0xd00a)
|
||||
#define mob5ypos (*(char*)0xd00b)
|
||||
#define mob6xpos (*(char*)0xd00c)
|
||||
#define mob6ypos (*(char*)0xd00d)
|
||||
#define mob7xpos (*(char*)0xd00e)
|
||||
#define mob7ypos (*(char*)0xd00f)
|
||||
#define msbxpos (*(char*)0xd010)
|
||||
#define grcntrl1 (*(char*)0xd011)
|
||||
#define rasreg (*(char*)0xd012)
|
||||
#define lpxpos (*(char*)0xd013)
|
||||
#define lpypos (*(char*)0xd014)
|
||||
#define mobenble (*(char*)0xd015)
|
||||
#define grcntrl2 (*(char*)0xd016)
|
||||
#define grmemptr (*(char*)0xd018)
|
||||
#define grirq (*(char*)0xd019)
|
||||
#define grirqen (*(char*)0xd01a)
|
||||
#define moby2 (*(char*)0xd017)
|
||||
#define mobprior (*(char*)0xd01b)
|
||||
#define mobmcm (*(char*)0xd01c)
|
||||
#define mobx2 (*(char*)0xd01d)
|
||||
#define mobmobcol (*(char*)0xd01e)
|
||||
#define mobbakcol (*(char*)0xd01f)
|
||||
#define extclr (*(char*)0xd020)
|
||||
#define bakclr0 (*(char*)0xd021)
|
||||
#define bakclr1 (*(char*)0xd022)
|
||||
#define bakclr2 (*(char*)0xd023)
|
||||
#define bakclr3 (*(char*)0xd024)
|
||||
#define mcmclr0 (*(char*)0xd025)
|
||||
#define mcmclr1 (*(char*)0xd026)
|
||||
#define mob0clr (*(char*)0xd027)
|
||||
#define mob1clr (*(char*)0xd028)
|
||||
#define mob2clr (*(char*)0xd029)
|
||||
#define mob3clr (*(char*)0xd02a)
|
||||
#define mob4clr (*(char*)0xd02b)
|
||||
#define mob5clr (*(char*)0xd02c)
|
||||
#define mob6clr (*(char*)0xd02d)
|
||||
#define mob7clr (*(char*)0xd02e)
|
||||
#define keyreg (*(char*)0xd02f)
|
||||
#define clkreg (*(char*)0xd030)
|
||||
#define mob0xpos (*(char*)0xd000)
|
||||
#define mob0ypos (*(char*)0xd001)
|
||||
#define mob1xpos (*(char*)0xd002)
|
||||
#define mob1ypos (*(char*)0xd003)
|
||||
#define mob2xpos (*(char*)0xd004)
|
||||
#define mob2ypos (*(char*)0xd005)
|
||||
#define mob3xpos (*(char*)0xd006)
|
||||
#define mob3ypos (*(char*)0xd007)
|
||||
#define mob4xpos (*(char*)0xd008)
|
||||
#define mob4ypos (*(char*)0xd009)
|
||||
#define mob5xpos (*(char*)0xd00a)
|
||||
#define mob5ypos (*(char*)0xd00b)
|
||||
#define mob6xpos (*(char*)0xd00c)
|
||||
#define mob6ypos (*(char*)0xd00d)
|
||||
#define mob7xpos (*(char*)0xd00e)
|
||||
#define mob7ypos (*(char*)0xd00f)
|
||||
#define msbxpos (*(char*)0xd010)
|
||||
#define grcntrl1 (*(char*)0xd011)
|
||||
#define rasreg (*(char*)0xd012)
|
||||
#define lpxpos (*(char*)0xd013)
|
||||
#define lpypos (*(char*)0xd014)
|
||||
#define mobenble (*(char*)0xd015)
|
||||
#define grcntrl2 (*(char*)0xd016)
|
||||
#define grmemptr (*(char*)0xd018)
|
||||
#define grirq (*(char*)0xd019)
|
||||
#define grirqen (*(char*)0xd01a)
|
||||
#define moby2 (*(char*)0xd017)
|
||||
#define mobprior (*(char*)0xd01b)
|
||||
#define mobmcm (*(char*)0xd01c)
|
||||
#define mobx2 (*(char*)0xd01d)
|
||||
#define mobmobcol (*(char*)0xd01e)
|
||||
#define mobbakcol (*(char*)0xd01f)
|
||||
#define extclr (*(char*)0xd020)
|
||||
#define bakclr0 (*(char*)0xd021)
|
||||
#define bakclr1 (*(char*)0xd022)
|
||||
#define bakclr2 (*(char*)0xd023)
|
||||
#define bakclr3 (*(char*)0xd024)
|
||||
#define mcmclr0 (*(char*)0xd025)
|
||||
#define mcmclr1 (*(char*)0xd026)
|
||||
#define mob0clr (*(char*)0xd027)
|
||||
#define mob1clr (*(char*)0xd028)
|
||||
#define mob2clr (*(char*)0xd029)
|
||||
#define mob3clr (*(char*)0xd02a)
|
||||
#define mob4clr (*(char*)0xd02b)
|
||||
#define mob5clr (*(char*)0xd02c)
|
||||
#define mob6clr (*(char*)0xd02d)
|
||||
#define mob7clr (*(char*)0xd02e)
|
||||
#define keyreg (*(char*)0xd02f)
|
||||
#define clkreg (*(char*)0xd030)
|
||||
|
||||
#define vdcreg (*(char*)0xd600)
|
||||
#define vdcdata (*(char*)0xd601)
|
||||
#define vdcreg (*(char*)0xd600)
|
||||
#define vdcdata (*(char*)0xd601)
|
||||
|
||||
#else /* #ifdef __GEOS_CBM__ */
|
||||
|
||||
#define nameBuf char[16]
|
||||
#define blockBuf char[512]
|
||||
#define nameBuf char[16]
|
||||
#define blockBuf char[512]
|
||||
|
||||
#define R_BASE 0x00
|
||||
#define R_BASE 0x00
|
||||
|
||||
#define curPattern (*(unsigned*)0x022c)
|
||||
#define string (*(unsigned*)0x53)
|
||||
#define curFontDesc (*(struct fontdesc*)0x0218)
|
||||
#define currentMode (*(char*)0x021c)
|
||||
#define dispBufferOn (*(char*)0x021d)
|
||||
#define mouseOn (*(char*)0x5d)
|
||||
#define curWindow (*(struct window*)0x021e)
|
||||
#define pressFlag (*(char*)0x08fe)
|
||||
#define mousePos (*(struct pixel*)0x0241)
|
||||
#define returnAddress (*(unsigned*)0x64)
|
||||
#define curPattern (*(unsigned*)0x022c)
|
||||
#define string (*(unsigned*)0x53)
|
||||
#define curFontDesc (*(struct fontdesc*)0x0218)
|
||||
#define currentMode (*(char*)0x021c)
|
||||
#define dispBufferOn (*(char*)0x021d)
|
||||
#define mouseOn (*(char*)0x5d)
|
||||
#define curWindow (*(struct window*)0x021e)
|
||||
#define pressFlag (*(char*)0x08fe)
|
||||
#define mousePos (*(struct pixel*)0x0241)
|
||||
#define returnAddress (*(unsigned*)0x64)
|
||||
|
||||
#define diskBlkBuf ((blockBuf)0xf659)
|
||||
#define fileHeader (*(struct fileheader*)0xf859)
|
||||
#define curDirHead ((char[39])0xfa80)
|
||||
#define dirEntryBuf (*(struct filehandle*)0xfa59)
|
||||
#define diskBlkBuf ((blockBuf)0xf659)
|
||||
#define fileHeader (*(struct fileheader*)0xf859)
|
||||
#define curDirHead ((char[39])0xfa80)
|
||||
#define dirEntryBuf (*(struct filehandle*)0xfa59)
|
||||
|
||||
#define DrACurDkNm ((nameBuf)0xfaa7)
|
||||
#define DrBCurDkNm ((nameBuf)0xfab7)
|
||||
#define dataFileName ((nameBuf)0x02a4)
|
||||
#define dataDiskName ((nameBuf)0x02b4)
|
||||
#define PrntFileName ((nameBuf)0x08ac)
|
||||
#define DrACurDkNm ((nameBuf)0xfaa7)
|
||||
#define DrBCurDkNm ((nameBuf)0xfab7)
|
||||
#define dataFileName ((nameBuf)0x02a4)
|
||||
#define dataDiskName ((nameBuf)0x02b4)
|
||||
#define PrntFileName ((nameBuf)0x08ac)
|
||||
|
||||
#define curDrive (*(char*)0xf60d)
|
||||
#define diskOpenFlg (*(char*)0xf617)
|
||||
#define NUMDRV (*(char*)0xf60e)
|
||||
#define curDrive (*(char*)0xf60d)
|
||||
#define diskOpenFlg (*(char*)0xf617)
|
||||
#define NUMDRV (*(char*)0xf60e)
|
||||
|
||||
#define driveType ((char[4])0xfaf3)
|
||||
#define driveType ((char[4])0xfaf3)
|
||||
|
||||
#define VLIRInfo (*(struct VLIR_info*)0xf618)
|
||||
#define VLIRInfo (*(struct VLIR_info*)0xf618)
|
||||
|
||||
#define appMain (*(void_func*)0x0200)
|
||||
#define intTopVector (*(void_func*)0x0202)
|
||||
#define intBotVector (*(void_func*)0x0204)
|
||||
#define mouseVector (*(void_func*)0x0206)
|
||||
#define keyVector (*(void_func*)0x0208)
|
||||
#define inputVector (*(void_func*)0x020a)
|
||||
#define mouseFaultVec (*(void_func*)0x020c)
|
||||
#define otherPressVec (*(void_func*)0x020e)
|
||||
#define StringFaultVec (*(void_func*)0x0210)
|
||||
#define alarmTmtVector (*(void_func*)0x0212)
|
||||
#define BRKVector (*(void_func*)0x0214)
|
||||
#define RecoverVector (*(void_func*)0x0216)
|
||||
#define appMain (*(void_func*)0x0200)
|
||||
#define intTopVector (*(void_func*)0x0202)
|
||||
#define intBotVector (*(void_func*)0x0204)
|
||||
#define mouseVector (*(void_func*)0x0206)
|
||||
#define keyVector (*(void_func*)0x0208)
|
||||
#define inputVector (*(void_func*)0x020a)
|
||||
#define mouseFaultVec (*(void_func*)0x020c)
|
||||
#define otherPressVec (*(void_func*)0x020e)
|
||||
#define StringFaultVec (*(void_func*)0x0210)
|
||||
#define alarmTmtVector (*(void_func*)0x0212)
|
||||
#define BRKVector (*(void_func*)0x0214)
|
||||
#define RecoverVector (*(void_func*)0x0216)
|
||||
|
||||
#define selectionFlash (*(char*)0x0224)
|
||||
#define alphaFlag (*(char*)0x0225)
|
||||
#define iconSelFlg (*(char*)0x0226)
|
||||
#define faultData (*(char*)0x0227)
|
||||
#define menuNumber (*(char*)0x0228)
|
||||
#define mouseWindow (*(struct window*)0x57)
|
||||
#define stringXY (*(struct pixel*)0x022e)
|
||||
#define selectionFlash (*(char*)0x0224)
|
||||
#define alphaFlag (*(char*)0x0225)
|
||||
#define iconSelFlg (*(char*)0x0226)
|
||||
#define faultData (*(char*)0x0227)
|
||||
#define menuNumber (*(char*)0x0228)
|
||||
#define mouseWindow (*(struct window*)0x57)
|
||||
#define stringXY (*(struct pixel*)0x022e)
|
||||
|
||||
#define maxMouseSpeed (*(char*)0x027d)
|
||||
#define minMouseSpeed (*(char*)0x027e)
|
||||
#define mouseAccel (*(char*)0x027f)
|
||||
#define keyData (*(char*)0x0245)
|
||||
#define mouseData (*(char*)0x0246)
|
||||
#define inputData (*(char*)0x0247)
|
||||
#define random (*(char*)0x024c)
|
||||
#define saveFontTab (*(struct fontdesc*)0x024e)
|
||||
#define maxMouseSpeed (*(char*)0x027d)
|
||||
#define minMouseSpeed (*(char*)0x027e)
|
||||
#define mouseAccel (*(char*)0x027f)
|
||||
#define keyData (*(char*)0x0245)
|
||||
#define mouseData (*(char*)0x0246)
|
||||
#define inputData (*(char*)0x0247)
|
||||
#define random (*(char*)0x024c)
|
||||
#define saveFontTab (*(struct fontdesc*)0x024e)
|
||||
|
||||
#define dblClickCount (*(char*)0x0258)
|
||||
#define system_date (*(struct s_date*)0xf200)
|
||||
#define sysDBData (*(char*)0x0259)
|
||||
#define dlgBoxRamBuf (*(char*)0xf381)
|
||||
#define dblClickCount (*(char*)0x0258)
|
||||
#define system_date (*(struct s_date*)0xf200)
|
||||
#define sysDBData (*(char*)0x0259)
|
||||
#define dlgBoxRamBuf (*(char*)0xf381)
|
||||
|
||||
#define firstBoot (*(char*)0x0281)
|
||||
#define inputDevName ((nameBuf)0x08cc)
|
||||
#define DrCCurDkNm ((nameBuf)0xfac7)
|
||||
#define DrDCurDkNm ((nameBuf)0xfad7)
|
||||
#define firstBoot (*(char*)0x0281)
|
||||
#define inputDevName ((nameBuf)0x08cc)
|
||||
#define DrCCurDkNm ((nameBuf)0xfac7)
|
||||
#define DrDCurDkNm ((nameBuf)0xfad7)
|
||||
|
||||
#define mobenble (*(char*)0x0818)
|
||||
#define moby2 (*(char*)0x081a)
|
||||
#define mobx2 (*(char*)0x0819)
|
||||
#define mobenble (*(char*)0x0818)
|
||||
#define moby2 (*(char*)0x081a)
|
||||
#define mobx2 (*(char*)0x0819)
|
||||
|
||||
#endif /* #ifdef __GEOS_CBM__ */
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GSYS_H
|
||||
#ifndef _GSYS_H
|
||||
#define _GSYS_H
|
||||
|
||||
void FirstInit(void);
|
||||
@@ -27,24 +27,24 @@ char get_ostype(void);
|
||||
/* possible return values of get_ostype, machine and version flags will
|
||||
be combined with OR */
|
||||
/* machine flags */
|
||||
#define GEOS64 0x00
|
||||
#define GEOS64 0x00
|
||||
#define GEOS4 0x04 /* plus4 geos is not or'ed with version */
|
||||
#define GEOS128 0x80
|
||||
#define GEOS128 0x80
|
||||
/* version flags */
|
||||
#define GEOS_V10 0x10
|
||||
#define GEOS_V10 0x10
|
||||
#define GEOS_V11 0x11
|
||||
#define GEOS_V12 0x12 /* ??? not sure */
|
||||
#define GEOS_V20 0x20
|
||||
#define WHEELS 0x40 /* only Wheels? */
|
||||
#define GEOS_V12 0x12 /* ??? not sure */
|
||||
#define GEOS_V20 0x20
|
||||
#define WHEELS 0x40 /* only Wheels? */
|
||||
|
||||
char get_tv(void);
|
||||
|
||||
/* possible return values of get_tv, these flags will be combined
|
||||
note that columns state can be changed during runtime and get_tv
|
||||
always returns the current state */
|
||||
#define COLUMNS40 0x00
|
||||
#define COLUMNS80 0x01
|
||||
#define TV_PAL 0x00
|
||||
#define TV_NTSC 0x80
|
||||
#define COLUMNS40 0x00
|
||||
#define COLUMNS80 0x01
|
||||
#define TV_PAL 0x00
|
||||
#define TV_NTSC 0x80
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* iso646.h */
|
||||
/* iso646.h */
|
||||
/* */
|
||||
/* Alternative spellings */
|
||||
/* Alternative spellings */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -39,17 +39,17 @@
|
||||
|
||||
|
||||
/* Operator tokens */
|
||||
#define and &&
|
||||
#define and_eq &=
|
||||
#define bitand &
|
||||
#define bitor |
|
||||
#define compl ~
|
||||
#define not !
|
||||
#define not_eq !=
|
||||
#define or ||
|
||||
#define or_eq |=
|
||||
#define xor ^
|
||||
#define xor_eq ^=
|
||||
#define and &&
|
||||
#define and_eq &=
|
||||
#define bitand &
|
||||
#define bitor |
|
||||
#define compl ~
|
||||
#define not !
|
||||
#define not_eq !=
|
||||
#define or ||
|
||||
#define or_eq |=
|
||||
#define xor ^
|
||||
#define xor_eq ^=
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* joystick.h */
|
||||
/* joystick.h */
|
||||
/* */
|
||||
/* Read the joystick on systems that support it */
|
||||
/* Read the joystick on systems that support it */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -52,8 +52,8 @@
|
||||
#define JOY_ERR_NO_DEVICE 4 /* Device (hardware) not found */
|
||||
|
||||
/* Argument for the joy_read function */
|
||||
#define JOY_1 0
|
||||
#define JOY_2 1
|
||||
#define JOY_1 0
|
||||
#define JOY_2 1
|
||||
|
||||
/* The following codes are *indices* into the joy_masks array */
|
||||
#define JOY_UP 0
|
||||
@@ -83,7 +83,7 @@ extern const void joy_static_stddrv[];
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Functions */
|
||||
/* Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ typedef struct {
|
||||
|
||||
|
||||
/* JOY kernel variables */
|
||||
extern joy_drv_header* joy_drv; /* Pointer to driver */
|
||||
extern joy_drv_header* joy_drv; /* Pointer to driver */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* limits.h */
|
||||
/* limits.h */
|
||||
/* */
|
||||
/* Sizes of integer types */
|
||||
/* Sizes of integer types */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -38,30 +38,30 @@
|
||||
|
||||
|
||||
|
||||
#define CHAR_BIT 8
|
||||
#define CHAR_BIT 8
|
||||
|
||||
#define SCHAR_MIN ((signed char) 0x80)
|
||||
#define SCHAR_MAX 127
|
||||
#define SCHAR_MIN ((signed char) 0x80)
|
||||
#define SCHAR_MAX 127
|
||||
|
||||
#define UCHAR_MAX 255
|
||||
#define UCHAR_MAX 255
|
||||
|
||||
#define CHAR_MIN 0
|
||||
#define CHAR_MAX 255
|
||||
#define CHAR_MIN 0
|
||||
#define CHAR_MAX 255
|
||||
|
||||
#define SHRT_MIN ((short) 0x8000)
|
||||
#define SHRT_MAX 32767
|
||||
#define SHRT_MIN ((short) 0x8000)
|
||||
#define SHRT_MAX 32767
|
||||
|
||||
#define USHRT_MAX 65535U
|
||||
#define USHRT_MAX 65535U
|
||||
|
||||
#define INT_MIN ((int) 0x8000)
|
||||
#define INT_MAX 32767
|
||||
#define INT_MIN ((int) 0x8000)
|
||||
#define INT_MAX 32767
|
||||
|
||||
#define UINT_MAX 65535U
|
||||
#define UINT_MAX 65535U
|
||||
|
||||
#define LONG_MAX 2147483647L
|
||||
#define LONG_MIN ((long) 0x80000000)
|
||||
#define LONG_MAX 2147483647L
|
||||
#define LONG_MIN ((long) 0x80000000)
|
||||
|
||||
#define ULONG_MAX 4294967295UL
|
||||
#define ULONG_MAX 4294967295UL
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* locale.h */
|
||||
/* locale.h */
|
||||
/* */
|
||||
/* Localization <locale.h> */
|
||||
/* Localization <locale.h> */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,38 +40,38 @@
|
||||
|
||||
/* NULL pointer */
|
||||
#ifndef _HAVE_NULL
|
||||
#define NULL 0
|
||||
#define NULL 0
|
||||
#define _HAVE_NULL
|
||||
#endif
|
||||
|
||||
/* Locale information constants */
|
||||
#define LC_ALL 0
|
||||
#define LC_COLLATE 1
|
||||
#define LC_CTYPE 2
|
||||
#define LC_MONETARY 3
|
||||
#define LC_NUMERIC 4
|
||||
#define LC_TIME 5
|
||||
#define LC_ALL 0
|
||||
#define LC_COLLATE 1
|
||||
#define LC_CTYPE 2
|
||||
#define LC_MONETARY 3
|
||||
#define LC_NUMERIC 4
|
||||
#define LC_TIME 5
|
||||
|
||||
/* Struct containing locale settings */
|
||||
struct lconv {
|
||||
char* currency_symbol;
|
||||
char* decimal_point;
|
||||
char* grouping;
|
||||
char* int_curr_symbol;
|
||||
char* mon_decimal_point;
|
||||
char* mon_grouping;
|
||||
char* mon_thousands_sep;
|
||||
char* negative_sign;
|
||||
char* positive_sign;
|
||||
char* thousands_sep;
|
||||
char frac_digits;
|
||||
char int_frac_digits;
|
||||
char n_cs_precedes;
|
||||
char n_sep_by_space;
|
||||
char n_sign_posn;
|
||||
char p_cs_precedes;
|
||||
char p_sep_by_space;
|
||||
char p_sign_posn;
|
||||
char* currency_symbol;
|
||||
char* decimal_point;
|
||||
char* grouping;
|
||||
char* int_curr_symbol;
|
||||
char* mon_decimal_point;
|
||||
char* mon_grouping;
|
||||
char* mon_thousands_sep;
|
||||
char* negative_sign;
|
||||
char* positive_sign;
|
||||
char* thousands_sep;
|
||||
char frac_digits;
|
||||
char int_frac_digits;
|
||||
char n_cs_precedes;
|
||||
char n_sep_by_space;
|
||||
char n_sign_posn;
|
||||
char p_cs_precedes;
|
||||
char p_sep_by_space;
|
||||
char p_sign_posn;
|
||||
};
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* mouse.h */
|
||||
/* mouse.h */
|
||||
/* */
|
||||
/* Mouse API */
|
||||
/* Mouse API */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Definitions */
|
||||
/* Definitions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -55,13 +55,13 @@
|
||||
#define MOUSE_ERR_INV_IOCTL 5 /* Invalid ioctl code */
|
||||
|
||||
/* Mouse button masks */
|
||||
#define MOUSE_BTN_LEFT 0x10
|
||||
#define MOUSE_BTN_LEFT 0x10
|
||||
#define MOUSE_BTN_RIGHT 0x01
|
||||
|
||||
/* Structure containing the mouse coordinates */
|
||||
struct mouse_pos {
|
||||
int x;
|
||||
int y;
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
|
||||
/* Structure containing information about the mouse */
|
||||
@@ -72,10 +72,10 @@ struct mouse_info {
|
||||
|
||||
/* Structure used for getbox/setbox */
|
||||
struct mouse_box {
|
||||
int minx;
|
||||
int miny;
|
||||
int maxx;
|
||||
int maxy;
|
||||
int minx;
|
||||
int miny;
|
||||
int maxx;
|
||||
int maxy;
|
||||
};
|
||||
|
||||
/* Structure containing mouse callback functions. These functions are declared
|
||||
@@ -113,7 +113,7 @@ extern const void mouse_static_stddrv[];
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Functions */
|
||||
/* Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -150,10 +150,10 @@ void __fastcall__ mouse_setbox (const struct mouse_box* box);
|
||||
* NOTE: The function does *not* check if the mouse is currently inside the
|
||||
* given margins. The proper way to use this function therefore is:
|
||||
*
|
||||
* - Hide the mouse
|
||||
* - Set the bounding box
|
||||
* - Place the mouse at the desired position
|
||||
* - Show the mouse again.
|
||||
* - Hide the mouse
|
||||
* - Set the bounding box
|
||||
* - Place the mouse at the desired position
|
||||
* - Show the mouse again.
|
||||
*
|
||||
* NOTE2: When setting the box to something that is larger than the actual
|
||||
* screen, the positioning of the mouse cursor can fail. If such margins
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
/* Mouse kernel variables */
|
||||
extern void* mouse_drv; /* Pointer to driver */
|
||||
extern void* mouse_drv; /* Pointer to driver */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* nes.h */
|
||||
/* nes.h */
|
||||
/* */
|
||||
/* NES system specific definitions */
|
||||
/* NES system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* o65.h */
|
||||
/* o65.h */
|
||||
/* */
|
||||
/* Definitions for the o65 file format */
|
||||
/* Definitions for the o65 file format */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -57,9 +57,9 @@ typedef struct o65_header o65_header;
|
||||
struct o65_header {
|
||||
char marker[2]; /* Non-C64 marker */
|
||||
char magic[3]; /* o65 magic */
|
||||
char version; /* Version number */
|
||||
char version; /* Version number */
|
||||
unsigned mode; /* Mode word */
|
||||
o65_size tbase; /* Original text (code) segment address */
|
||||
o65_size tbase; /* Original text (code) segment address */
|
||||
o65_size tlen; /* Size of text (code) segment */
|
||||
o65_size dbase; /* Original data segment address */
|
||||
o65_size dlen; /* Size of data segment */
|
||||
@@ -81,7 +81,7 @@ struct o65_header {
|
||||
#define O65_VERSION 0x00
|
||||
|
||||
/* Defines for the mode word */
|
||||
#define O65_CPU_65816 0x8000 /* Executable is for 65816 */
|
||||
#define O65_CPU_65816 0x8000 /* Executable is for 65816 */
|
||||
#define O65_CPU_6502 0x0000 /* Executable is for the 6502 */
|
||||
#define O65_CPU_MASK 0x8000 /* Mask to extract CPU type */
|
||||
|
||||
@@ -89,7 +89,7 @@ struct o65_header {
|
||||
#define O65_RELOC_BYTE 0x0000 /* Byte wise relocation */
|
||||
#define O65_RELOC_MASK 0x4000 /* Mask to extract relocation type */
|
||||
|
||||
#define O65_SIZE_32BIT 0x2000 /* All size words are 32bit */
|
||||
#define O65_SIZE_32BIT 0x2000 /* All size words are 32bit */
|
||||
#define O65_SIZE_16BIT 0x0000 /* All size words are 16bit */
|
||||
#define O65_SIZE_MASK 0x2000 /* Mask to extract size */
|
||||
|
||||
@@ -108,7 +108,7 @@ struct o65_header {
|
||||
#define O65_BSSZERO_MASK 0x0200 /* Mask to extract bss zero flag */
|
||||
|
||||
/* The following is used if O65_CPU == 6502 */
|
||||
#define O65_CPU2_6502 0x0000 /* Executable is for 6502 */
|
||||
#define O65_CPU2_6502 0x0000 /* Executable is for 6502 */
|
||||
#define O65_CPU2_65C02 0x0010 /* Executable is for 65C02 */
|
||||
#define O65_CPU2_65SC02 0x0020 /* Executable is for 65SC02 */
|
||||
#define O65_CPU2_65CE02 0x0030 /* Executable is for 65CE02 */
|
||||
@@ -131,12 +131,12 @@ struct o65_header {
|
||||
O65_ALIGN_1)
|
||||
|
||||
/* The four o65 segment types. */
|
||||
#define O65_SEGID_UNDEF 0x00
|
||||
#define O65_SEGID_ABS 0x01
|
||||
#define O65_SEGID_TEXT 0x02
|
||||
#define O65_SEGID_DATA 0x03
|
||||
#define O65_SEGID_BSS 0x04
|
||||
#define O65_SEGID_ZP 0x05
|
||||
#define O65_SEGID_UNDEF 0x00
|
||||
#define O65_SEGID_ABS 0x01
|
||||
#define O65_SEGID_TEXT 0x02
|
||||
#define O65_SEGID_DATA 0x03
|
||||
#define O65_SEGID_BSS 0x04
|
||||
#define O65_SEGID_ZP 0x05
|
||||
#define O65_SEGID_MASK 0x07
|
||||
|
||||
/* Relocation type codes */
|
||||
@@ -158,14 +158,14 @@ struct o65_header {
|
||||
|
||||
/* Option tags */
|
||||
#define O65_OPT_FILENAME 0
|
||||
#define O65_OPT_OS 1
|
||||
#define O65_OPT_ASM 2
|
||||
#define O65_OPT_AUTHOR 3
|
||||
#define O65_OPT_TIMESTAMP 4
|
||||
#define O65_OPT_OS 1
|
||||
#define O65_OPT_ASM 2
|
||||
#define O65_OPT_AUTHOR 3
|
||||
#define O65_OPT_TIMESTAMP 4
|
||||
|
||||
/* Operating system codes for O65_OPT_OS */
|
||||
#define O65_OS_OSA65 1
|
||||
#define O65_OS_LUNIX 2
|
||||
#define O65_OS_OSA65 1
|
||||
#define O65_OS_LUNIX 2
|
||||
#define O65_OS_CC65 3
|
||||
#define O65_OS_OPENCBM 4
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* */
|
||||
/* pet.h */
|
||||
/* */
|
||||
/* PET system specific definitions */
|
||||
/* PET system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -52,8 +52,8 @@
|
||||
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
|
||||
/* Define hardware */
|
||||
#include <_pia.h>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* plus4.h */
|
||||
/* plus4.h */
|
||||
/* */
|
||||
/* Plus/4 system specific definitions */
|
||||
/* Plus/4 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
|
||||
@@ -39,51 +39,51 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Baudrate settings */
|
||||
#define SER_BAUD_45_5 0x00
|
||||
#define SER_BAUD_50 0x01
|
||||
#define SER_BAUD_50 0x01
|
||||
#define SER_BAUD_75 0x02
|
||||
#define SER_BAUD_110 0x03
|
||||
#define SER_BAUD_134_5 0x04
|
||||
#define SER_BAUD_110 0x03
|
||||
#define SER_BAUD_134_5 0x04
|
||||
#define SER_BAUD_150 0x05
|
||||
#define SER_BAUD_300 0x06
|
||||
#define SER_BAUD_600 0x07
|
||||
#define SER_BAUD_1200 0x08
|
||||
#define SER_BAUD_300 0x06
|
||||
#define SER_BAUD_600 0x07
|
||||
#define SER_BAUD_1200 0x08
|
||||
#define SER_BAUD_1800 0x09
|
||||
#define SER_BAUD_2400 0x0A
|
||||
#define SER_BAUD_2400 0x0A
|
||||
#define SER_BAUD_3600 0x0B
|
||||
#define SER_BAUD_4800 0x0C
|
||||
#define SER_BAUD_4800 0x0C
|
||||
#define SER_BAUD_7200 0x0D
|
||||
#define SER_BAUD_9600 0x0E
|
||||
#define SER_BAUD_19200 0x0F
|
||||
#define SER_BAUD_38400 0x10
|
||||
#define SER_BAUD_57600 0x11
|
||||
#define SER_BAUD_115200 0x12
|
||||
#define SER_BAUD_230400 0x13
|
||||
#define SER_BAUD_31250 0x14
|
||||
#define SER_BAUD_62500 0x15
|
||||
#define SER_BAUD_9600 0x0E
|
||||
#define SER_BAUD_19200 0x0F
|
||||
#define SER_BAUD_38400 0x10
|
||||
#define SER_BAUD_57600 0x11
|
||||
#define SER_BAUD_115200 0x12
|
||||
#define SER_BAUD_230400 0x13
|
||||
#define SER_BAUD_31250 0x14
|
||||
#define SER_BAUD_62500 0x15
|
||||
|
||||
/* Data bit settings */
|
||||
#define SER_BITS_5 0x00
|
||||
#define SER_BITS_6 0x01
|
||||
#define SER_BITS_7 0x02
|
||||
#define SER_BITS_8 0x03
|
||||
#define SER_BITS_5 0x00
|
||||
#define SER_BITS_6 0x01
|
||||
#define SER_BITS_7 0x02
|
||||
#define SER_BITS_8 0x03
|
||||
|
||||
/* Stop bit settings */
|
||||
#define SER_STOP_1 0x00 /* One stop bit */
|
||||
#define SER_STOP_2 0x01 /* Two stop bits */
|
||||
#define SER_STOP_1 0x00 /* One stop bit */
|
||||
#define SER_STOP_2 0x01 /* Two stop bits */
|
||||
|
||||
/* Parity settings */
|
||||
#define SER_PAR_NONE 0x00
|
||||
#define SER_PAR_ODD 0x01
|
||||
#define SER_PAR_EVEN 0x02
|
||||
#define SER_PAR_MARK 0x03
|
||||
#define SER_PAR_SPACE 0x04
|
||||
#define SER_PAR_NONE 0x00
|
||||
#define SER_PAR_ODD 0x01
|
||||
#define SER_PAR_EVEN 0x02
|
||||
#define SER_PAR_MARK 0x03
|
||||
#define SER_PAR_SPACE 0x04
|
||||
|
||||
/* Handshake settings. The latter two may be combined. */
|
||||
#define SER_HS_NONE 0x00 /* No handshake */
|
||||
@@ -93,22 +93,22 @@
|
||||
/* Bit masks to mask out things from the status returned by ser_status.
|
||||
* These are 6551 specific and must be mapped by drivers for other chips.
|
||||
*/
|
||||
#define SER_STATUS_PE 0x01 /* Parity error */
|
||||
#define SER_STATUS_FE 0x02 /* Framing error */
|
||||
#define SER_STATUS_OE 0x04 /* Overrun error */
|
||||
#define SER_STATUS_DCD 0x20 /* NOT data carrier detect */
|
||||
#define SER_STATUS_DSR 0x40 /* NOT data set ready */
|
||||
#define SER_STATUS_PE 0x01 /* Parity error */
|
||||
#define SER_STATUS_FE 0x02 /* Framing error */
|
||||
#define SER_STATUS_OE 0x04 /* Overrun error */
|
||||
#define SER_STATUS_DCD 0x20 /* NOT data carrier detect */
|
||||
#define SER_STATUS_DSR 0x40 /* NOT data set ready */
|
||||
|
||||
/* Error codes returned by all functions */
|
||||
#define SER_ERR_OK 0x00 /* Not an error - relax */
|
||||
#define SER_ERR_OK 0x00 /* Not an error - relax */
|
||||
#define SER_ERR_NO_DRIVER 0x01 /* No driver available */
|
||||
#define SER_ERR_CANNOT_LOAD 0x02 /* Error loading driver */
|
||||
#define SER_ERR_INV_DRIVER 0x03 /* Invalid driver */
|
||||
#define SER_ERR_NO_DEVICE 0x04 /* Device (hardware) not found */
|
||||
#define SER_ERR_BAUD_UNAVAIL 0x05 /* Baud rate not available */
|
||||
#define SER_ERR_NO_DATA 0x06 /* Nothing to read */
|
||||
#define SER_ERR_OVERFLOW 0x07 /* No room in send buffer */
|
||||
#define SER_ERR_INIT_FAILED 0x08 /* Initialization failed */
|
||||
#define SER_ERR_BAUD_UNAVAIL 0x05 /* Baud rate not available */
|
||||
#define SER_ERR_NO_DATA 0x06 /* Nothing to read */
|
||||
#define SER_ERR_OVERFLOW 0x07 /* No room in send buffer */
|
||||
#define SER_ERR_INIT_FAILED 0x08 /* Initialization failed */
|
||||
#define SER_ERR_INV_IOCTL 0x09 /* IOCTL not supported */
|
||||
#define SER_ERR_INSTALLED 0x0A /* A driver is already installed */
|
||||
|
||||
@@ -123,7 +123,7 @@ struct ser_params {
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* setjmp.h */
|
||||
/* setjmp.h */
|
||||
/* */
|
||||
/* Nonlocal jumps */
|
||||
/* Nonlocal jumps */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -43,7 +43,7 @@ typedef char jmp_buf [5];
|
||||
|
||||
|
||||
int __fastcall__ _setjmp (jmp_buf buf);
|
||||
#define setjmp _setjmp /* ISO insists on a macro */
|
||||
#define setjmp _setjmp /* ISO insists on a macro */
|
||||
void __fastcall__ longjmp (jmp_buf buf, int retval) __attribute__((noreturn));
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* stdarg.h */
|
||||
/* stdarg.h */
|
||||
/* */
|
||||
/* Variable arguments */
|
||||
/* Variable arguments */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,10 +40,10 @@
|
||||
|
||||
typedef unsigned char* va_list;
|
||||
|
||||
#define va_start(ap, fix) ap = ((va_list)&(fix))
|
||||
#define va_arg(ap,type) (*(type*)(ap -= ((sizeof (type) + 1) & ~1)))
|
||||
#define va_start(ap, fix) ap = ((va_list)&(fix))
|
||||
#define va_arg(ap,type) (*(type*)(ap -= ((sizeof (type) + 1) & ~1)))
|
||||
#if __CC65_STD__ >= __CC65_STD_C99__
|
||||
#define va_copy(dest, src) ((dest)=(src))
|
||||
#define va_copy(dest, src) ((dest)=(src))
|
||||
#endif
|
||||
#define va_end(ap)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* stdbool.h */
|
||||
/* */
|
||||
/* C99 Boolean definitions */
|
||||
/* */
|
||||
/* stdbool.h */
|
||||
/* */
|
||||
/* C99 Boolean definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2002 Greg King */
|
||||
@@ -11,20 +11,20 @@
|
||||
/* */
|
||||
/* This software is provided "as-is," without any expressed or implied */
|
||||
/* warranty. In no event will the authors be held liable for any damages */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* Permission is granted to anyone to use this software for any purpose, */
|
||||
/* including commercial applications, and to alter and redistribute it */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* including commercial applications, and to alter and redistribute it */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* 1. The origin of this software must not be misrepresented; you must not */
|
||||
/* claim that you wrote the original software. If you use this software */
|
||||
/* in a product, an acknowledgment, in the product's documentation, */
|
||||
/* would be appreciated, but is not required. */
|
||||
/* 2. Alterred source versions must be marked plainly as such, */
|
||||
/* and must not be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or alterred */
|
||||
/* from any source distribution. */
|
||||
/* in a product, an acknowledgment, in the product's documentation, */
|
||||
/* would be appreciated, but is not required. */
|
||||
/* 2. Alterred source versions must be marked plainly as such, */
|
||||
/* and must not be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or alterred */
|
||||
/* from any source distribution. */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* stddef.h */
|
||||
/* stddef.h */
|
||||
/* */
|
||||
/* Common definitions */
|
||||
/* Common definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -54,12 +54,12 @@ typedef unsigned size_t;
|
||||
|
||||
/* NULL pointer */
|
||||
#ifndef _HAVE_NULL
|
||||
#define NULL 0
|
||||
#define NULL 0
|
||||
#define _HAVE_NULL
|
||||
#endif
|
||||
|
||||
/* offsetof macro */
|
||||
#define offsetof(type, member) (size_t) (&((type*) 0)->member)
|
||||
#define offsetof(type, member) (size_t) (&((type*) 0)->member)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* stdio.h */
|
||||
/* stdio.h */
|
||||
/* */
|
||||
/* Input/output */
|
||||
/* Input/output */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -57,33 +57,33 @@ extern FILE* stdout;
|
||||
extern FILE* stderr;
|
||||
|
||||
/* Standard defines */
|
||||
#define _IOFBF 0
|
||||
#define _IOLBF 1
|
||||
#define _IONBF 2
|
||||
#define BUFSIZ 256
|
||||
#define EOF -1
|
||||
#define FOPEN_MAX 8
|
||||
#define SEEK_CUR 0
|
||||
#define SEEK_END 1
|
||||
#define SEEK_SET 2
|
||||
#define TMP_MAX 256
|
||||
#define _IOFBF 0
|
||||
#define _IOLBF 1
|
||||
#define _IONBF 2
|
||||
#define BUFSIZ 256
|
||||
#define EOF -1
|
||||
#define FOPEN_MAX 8
|
||||
#define SEEK_CUR 0
|
||||
#define SEEK_END 1
|
||||
#define SEEK_SET 2
|
||||
#define TMP_MAX 256
|
||||
|
||||
/* Standard defines that are platform dependent */
|
||||
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
|
||||
# define FILENAME_MAX (64+1)
|
||||
# define FILENAME_MAX (64+1)
|
||||
#elif defined(__ATARI__)
|
||||
# define FILENAME_MAX (12+1)
|
||||
# define FILENAME_MAX (12+1)
|
||||
#elif defined(__LUNIX__)
|
||||
# define FILENAME_MAX (80+1)
|
||||
#else
|
||||
# define FILENAME_MAX (16+1)
|
||||
#endif
|
||||
#define L_tmpnam FILENAME_MAX
|
||||
#define L_tmpnam FILENAME_MAX
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -132,14 +132,14 @@ int __fastcall__ vsscanf (const char* s, const char* format, va_list ap);
|
||||
int __fastcall__ vfscanf (FILE* f, const char* format, va_list ap);
|
||||
|
||||
#if __CC65_STD__ == __CC65_STD_CC65__
|
||||
FILE* __fastcall__ fdopen (int fd, const char* mode); /* Unix */
|
||||
int __fastcall__ fileno (FILE* f); /* Unix */
|
||||
FILE* __fastcall__ fdopen (int fd, const char* mode); /* Unix */
|
||||
int __fastcall__ fileno (FILE* f); /* Unix */
|
||||
#endif
|
||||
void __fastcall__ _poserror (const char* msg); /* cc65 */
|
||||
void __fastcall__ _poserror (const char* msg); /* cc65 */
|
||||
|
||||
/* Masking macros for some functions */
|
||||
#define getc(f) fgetc (f) /* ANSI */
|
||||
#define putc(c, f) fputc (c, f) /* ANSI */
|
||||
#define getc(f) fgetc (f) /* ANSI */
|
||||
#define putc(c, f) fputc (c, f) /* ANSI */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* stdlib.h */
|
||||
/* stdlib.h */
|
||||
/* */
|
||||
/* General utilities */
|
||||
/* General utilities */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -45,8 +45,8 @@ typedef unsigned size_t;
|
||||
#endif
|
||||
|
||||
/* Standard exit codes */
|
||||
#define EXIT_SUCCESS 0
|
||||
#define EXIT_FAILURE 1
|
||||
#define EXIT_SUCCESS 0
|
||||
#define EXIT_FAILURE 1
|
||||
|
||||
/* Return type of the div function */
|
||||
typedef struct {
|
||||
@@ -94,7 +94,7 @@ size_t _heapmaxavail (void);
|
||||
|
||||
|
||||
/* Random numbers */
|
||||
#define RAND_MAX 0x7FFF
|
||||
#define RAND_MAX 0x7FFF
|
||||
int rand (void);
|
||||
void __fastcall__ srand (unsigned seed);
|
||||
void _randomize (void); /* Non-standard */
|
||||
@@ -107,12 +107,12 @@ int __fastcall__ atoi (const char* s);
|
||||
long __fastcall__ atol (const char* s);
|
||||
int __fastcall__ atexit (void (*exitfunc) (void));
|
||||
void* __fastcall__ bsearch (const void* key, const void* base, size_t n,
|
||||
size_t size, int (*cmp) (const void*, const void*));
|
||||
size_t size, int (*cmp) (const void*, const void*));
|
||||
div_t __fastcall__ div (int numer, int denom);
|
||||
void __fastcall__ exit (int ret) __attribute__ ((noreturn));
|
||||
char* __fastcall__ getenv (const char* name);
|
||||
void __fastcall__ qsort (void* base, size_t count, size_t size,
|
||||
int (*compare) (const void*, const void*));
|
||||
int (*compare) (const void*, const void*));
|
||||
long __fastcall__ strtol (const char* nptr, char** endptr, int base);
|
||||
unsigned long __fastcall__ strtoul (const char* nptr, char** endptr, int base);
|
||||
int __fastcall__ system (const char* s);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* string.h */
|
||||
/* string.h */
|
||||
/* */
|
||||
/* String handling */
|
||||
/* String handling */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -72,7 +72,7 @@ void* __fastcall__ _bzero (void* ptr, size_t n);
|
||||
/* Non standard: */
|
||||
#if __CC65_STD__ == __CC65_STD_CC65__
|
||||
void __fastcall__ bzero (void* ptr, size_t n); /* BSD */
|
||||
char* __fastcall__ strdup (const char* s); /* SYSV/BSD */
|
||||
char* __fastcall__ strdup (const char* s); /* SYSV/BSD */
|
||||
int __fastcall__ stricmp (const char* s1, const char* s2); /* DOS/Windows */
|
||||
int __fastcall__ strcasecmp (const char* s1, const char* s2); /* Same for Unix */
|
||||
int __fastcall__ strnicmp (const char* s1, const char* s2, size_t count); /* DOS/Windows */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* */
|
||||
/* supervision.h */
|
||||
/* */
|
||||
/* Supervision specific definitions */
|
||||
/* Supervision specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -11,20 +11,20 @@
|
||||
/* */
|
||||
/* This software is provided "as-is," without any expressed or implied */
|
||||
/* warranty. In no event will the authors be held liable for any damages */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* arising from the use of this software. */
|
||||
/* */
|
||||
/* Permission is granted to anyone to use this software for any purpose, */
|
||||
/* including commercial applications, and to alter and redistribute it */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* including commercial applications, and to alter and redistribute it */
|
||||
/* freely, subject to the following restrictions: */
|
||||
/* */
|
||||
/* 1. The origin of this software must not be misrepresented; you must not */
|
||||
/* claim that you wrote the original software. If you use this software */
|
||||
/* in a product, an acknowledgment, in the product's documentation, */
|
||||
/* would be appreciated, but is not required. */
|
||||
/* 2. Alterred source versions must be marked plainly as such, */
|
||||
/* and must not be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or alterred */
|
||||
/* from any source distribution. */
|
||||
/* in a product, an acknowledgment, in the product's documentation, */
|
||||
/* would be appreciated, but is not required. */
|
||||
/* 2. Alterred source versions must be marked plainly as such, */
|
||||
/* and must not be misrepresented as being the original software. */
|
||||
/* 3. This notice may not be removed or alterred */
|
||||
/* from any source distribution. */
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -89,8 +89,8 @@ struct __sv_dma {
|
||||
|
||||
#define SV_BANK (*(unsigned char*)0x2026)
|
||||
#define SV_BANK_COMBINE(nmi,irq_timer,irq_dma,lcd_on, timer_prescale, bank) \
|
||||
((nmi)?1:0)|((irq_timer)?2:0)|((irq_dma)?4:0)|((lcd_on)?8:0) \
|
||||
|((timer_prescale)?0x10:0)|((bank)<<5)
|
||||
((nmi)?1:0)|((irq_timer)?2:0)|((irq_dma)?4:0)|((lcd_on)?8:0) \
|
||||
|((timer_prescale)?0x10:0)|((bank)<<5)
|
||||
|
||||
#define SV_VIDEO ((unsigned char*)0x4000)
|
||||
#define SV_TIMER_COUNT (*(unsigned char*)0x2023)
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ typedef long int off_t;
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ struct utsname {
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ typedef struct tgi_vectorfont tgi_vectorfont;
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Functions */
|
||||
/* Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#define TGI_ERR_INV_DRIVER 3 /* Invalid driver */
|
||||
#define TGI_ERR_INV_MODE 4 /* Mode not supported by driver */
|
||||
#define TGI_ERR_INV_ARG 5 /* Invalid function argument */
|
||||
#define TGI_ERR_INV_FUNC 6 /* Function not supported */
|
||||
#define TGI_ERR_INV_FUNC 6 /* Function not supported */
|
||||
#define TGI_ERR_INV_FONT 7 /* Font file is invalid */
|
||||
#define TGI_ERR_NO_RES 8 /* Out of resources */
|
||||
#define TGI_ERR_INSTALLED 9 /* A driver is already installed */
|
||||
|
||||
@@ -39,13 +39,13 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* TGI kernel variables */
|
||||
extern void* tgi_drv; /* Pointer to driver */
|
||||
extern void* tgi_drv; /* Pointer to driver */
|
||||
extern unsigned char tgi_error; /* Last error code */
|
||||
extern unsigned char tgi_gmode; /* Flag: Graphics mode active */
|
||||
extern int tgi_curx; /* Current drawing cursor X */
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ struct tgi_vectorfont {
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* time.h */
|
||||
/* time.h */
|
||||
/* */
|
||||
/* Date and time */
|
||||
/* Date and time */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
/* NULL pointer */
|
||||
#ifndef _HAVE_NULL
|
||||
#define NULL 0
|
||||
#define NULL 0
|
||||
#define _HAVE_NULL
|
||||
#endif
|
||||
|
||||
@@ -55,7 +55,7 @@ typedef unsigned long clock_t;
|
||||
|
||||
/* Structure for broken down time */
|
||||
struct tm {
|
||||
int tm_sec;
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
@@ -79,32 +79,32 @@ extern struct _timezone {
|
||||
#if defined(__ATARI__)
|
||||
/* The clock depends on the video standard, so read it at runtime */
|
||||
unsigned _clocks_per_sec (void);
|
||||
# define CLK_TCK _clocks_per_sec()
|
||||
# define CLOCKS_PER_SEC _clocks_per_sec()
|
||||
# define CLK_TCK _clocks_per_sec()
|
||||
# define CLOCKS_PER_SEC _clocks_per_sec()
|
||||
#elif defined(__ATMOS__)
|
||||
# define CLK_TCK 100 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 100 /* ANSI */
|
||||
# define CLK_TCK 100 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 100 /* ANSI */
|
||||
#elif defined(__CBM__)
|
||||
# if defined(__CBM510__) || defined(__CBM610__)
|
||||
/* The 510/610 gets its clock from the AC current */
|
||||
# define CLK_TCK 50 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 50 /* ANSI */
|
||||
# define CLK_TCK 50 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 50 /* ANSI */
|
||||
# else
|
||||
# define CLK_TCK 60 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 60 /* ANSI */
|
||||
# define CLK_TCK 60 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 60 /* ANSI */
|
||||
# endif
|
||||
#elif defined(__NES__)
|
||||
# define CLK_TCK 50 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 50 /* ANSI */
|
||||
# define CLK_TCK 50 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 50 /* ANSI */
|
||||
#elif defined(__GEOS__)
|
||||
# define CLK_TCK 1 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 1 /* ANSI */
|
||||
# define CLK_TCK 1 /* POSIX */
|
||||
# define CLOCKS_PER_SEC 1 /* ANSI */
|
||||
#elif defined(__LYNX__)
|
||||
/* The clock-rate depends on the video scan-rate;
|
||||
** so, read it at run-time. */
|
||||
extern clock_t _clk_tck (void);
|
||||
# define CLK_TCK _clk_tck()
|
||||
# define CLOCKS_PER_SEC _clk_tck()
|
||||
# define CLK_TCK _clk_tck()
|
||||
# define CLOCKS_PER_SEC _clk_tck()
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -39,15 +39,15 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* Predefined file handles */
|
||||
#define STDIN_FILENO 0
|
||||
#define STDOUT_FILENO 1
|
||||
#define STDERR_FILENO 2
|
||||
#define STDIN_FILENO 0
|
||||
#define STDOUT_FILENO 1
|
||||
#define STDERR_FILENO 2
|
||||
|
||||
/* WE need size_t */
|
||||
#ifndef _HAVE_size_t
|
||||
@@ -68,7 +68,7 @@ extern int optind, opterr, optopt;
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -77,12 +77,12 @@ extern int optind, opterr, optopt;
|
||||
int __fastcall__ write (int fd, const void* buf, unsigned count);
|
||||
int __fastcall__ read (int fd, void* buf, unsigned count);
|
||||
off_t __fastcall__ lseek (int fd, off_t offset, int whence);
|
||||
int __fastcall__ unlink (const char* name); /* Same as remove() */
|
||||
int __fastcall__ unlink (const char* name); /* Same as remove() */
|
||||
|
||||
/* Directories */
|
||||
int __fastcall__ chdir (const char* name);
|
||||
char* __fastcall__ getcwd (char* buf, size_t size);
|
||||
int mkdir (const char* name, ...); /* May take a mode argument */
|
||||
int mkdir (const char* name, ...); /* May take a mode argument */
|
||||
int __fastcall__ rmdir (const char* name);
|
||||
|
||||
/* Others */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* vic20.h */
|
||||
/* vic20.h */
|
||||
/* */
|
||||
/* vic20 system specific definitions */
|
||||
/* vic20 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
@@ -46,55 +46,55 @@
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
#define CH_F3 134
|
||||
#define CH_F4 138
|
||||
#define CH_F5 135
|
||||
#define CH_F6 139
|
||||
#define CH_F7 136
|
||||
#define CH_F8 140
|
||||
|
||||
|
||||
|
||||
/* Color defines */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
|
||||
|
||||
|
||||
/* Define hardware */
|
||||
#include <_vic.h>
|
||||
#define VIC (*(struct __vic*)0x9000)
|
||||
#define VIC (*(struct __vic*)0x9000)
|
||||
|
||||
#include <_6522.h>
|
||||
#define VIA1 (*(struct __6522*)0x9110)
|
||||
#define VIA2 (*(struct __6522*)0x9120)
|
||||
#define VIA1 (*(struct __6522*)0x9110)
|
||||
#define VIA2 (*(struct __6522*)0x9120)
|
||||
|
||||
|
||||
|
||||
/* Define special memory areas */
|
||||
#define COLOR_RAM ((unsigned char*)0x9600)
|
||||
#define COLOR_RAM ((unsigned char*)0x9600)
|
||||
|
||||
|
||||
|
||||
/* The addresses of the static drivers */
|
||||
extern void vic20_ptvjoy_joy[];
|
||||
extern void vic20_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
extern void vic20_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user