Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions source/3.08/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
// structs for shared interface go here
// minimal declares to keep interface clean - called by distest1 and core.
// THIS is latest common version 28/07/14


#ifndef _XSHARX_H

#define _XSHARX_H 1


#ifndef _XSHARX_H

#define _XSHARX_H 1

#include <stdio.h>

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned int uint;
typedef unsigned long ulong;

// real banks may be anywhere 0-15, 16 used for RAM data, sized at 0x2000 bytes
Expand All @@ -19,9 +21,9 @@ typedef unsigned long ulong;

#define SADVERSION "3.08"
#define SADDATE "20/08/18"

// file order is (xx.bin, xx_lst.txt, xx_msg.txt, xx.dir, xx.cmt, SAD.ini)


typedef struct
{
Expand Down Expand Up @@ -49,22 +51,22 @@ typedef struct
// this may be overridden by user commands....

typedef struct // indexed by REAL bank id (0-16)
{
{
uchar *fbuf; // bin file data pointer for bank
uint *opbt; // bit array pointer.

int filstrt; // start FILE OFFSET. ( = real offset - PCORG)
int filend; // end FILE OFFSET.
int filend; // end FILE OFFSET.
int minpc; // min PC (normally PCORG)
int maxpc; // end PC (= max PC allowed (where fill starts)
int maxpc; // end PC (= max PC allowed (where fill starts)
int maxbk; // where bank really ends
uint bok : 1 ; // this bank is valid to use
uint cmd : 1 ; // set by command
uint dbnk : 4 ; // destination bank (setup only...also temp 8065 marker)
// uint dupl : 1 ; // possible duplicate code bank
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
} BANK;


// define letters as bitmask of a 'int' (32 bit)

Expand Down
28 changes: 15 additions & 13 deletions source/4.0.3/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
* source code uses the define "__linux__" to be present for linux build
* and "__MINGW32__" for Windows build (for CodeBlocks mingw)
* and "__MINGW64__" for 64 Windows builds -- NOT IMPLEMENTED YET
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1

#include <stdio.h>

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned int uint;
typedef unsigned long ulong;


Expand All @@ -38,9 +40,9 @@ typedef unsigned long ulong;

// #define XDBGX


// file order is (xx.bin, xx_lst.txt, xx_msg.txt, xx.dir, xx.cmt, SAD.ini, xx_dbg.txt)


typedef struct
{
Expand Down Expand Up @@ -68,21 +70,21 @@ typedef struct
// this may be overridden by user commands....

typedef struct // indexed by REAL bank id (0-16)
{
{
uchar *fbuf; // bin file data pointer for bank
uint *opbt; // bit array pointer.

int filstrt; // start FILE OFFSET. ( = real offset - PCORG can be -ve)
int filend; // end FILE OFFSET.
int filend; // end FILE OFFSET.
uint minpc; // min PC (normally PCORG)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxbk; // where bank really ends
uint bok : 1 ; // this bank is valid to use
uint cmd : 1 ; // set by command, only used in set_bnk
int dbnk : 5 ; // destination bank (setup only...also temp 8065 marker)
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
} BANK;


// define letters as bitmask of a 'int' (32 bit)

Expand Down
28 changes: 15 additions & 13 deletions source/4.0.4/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
* source code uses the define "__linux__" to be present for linux build
* and "__MINGW32__" for Windows build (for CodeBlocks mingw)
* and "__MINGW64__" for 64 Windows builds -- NOT IMPLEMENTED YET
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1

#include <stdio.h>

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned int uint;
typedef unsigned long ulong;


Expand All @@ -38,9 +40,9 @@ typedef unsigned long ulong;

// #define XDBGX


// file order is (xx.bin, xx_lst.txt, xx_msg.txt, xx.dir, xx.cmt, SAD.ini, xx_dbg.txt)


typedef struct
{
Expand Down Expand Up @@ -68,21 +70,21 @@ typedef struct
// this may be overridden by user commands....

typedef struct // indexed by REAL bank id (0-16)
{
{
uchar *fbuf; // bin file data pointer for bank
uint *opbt; // bit array pointer.

int filstrt; // start FILE OFFSET. ( = real offset - PCORG can be -ve)
int filend; // end FILE OFFSET.
int filend; // end FILE OFFSET.
uint minpc; // min PC (normally PCORG)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxbk; // where bank really ends
uint bok : 1 ; // this bank is valid to use
uint cmd : 1 ; // set by command, only used in set_bnk
int dbnk : 5 ; // destination bank (setup only...also temp 8065 marker)
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
} BANK;


// define letters as bitmask of a 'int' (32 bit)

Expand Down
28 changes: 15 additions & 13 deletions source/4.0.5/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
* source code uses the define "__linux__" to be present for linux build
* and "__MINGW32__" for Windows build (for CodeBlocks mingw)
* and "__MINGW64__" for 64 Windows builds -- NOT IMPLEMENTED YET
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1
**************************************************************************/

#ifndef _XSHARX_H

#define _XSHARX_H 1

#include <stdio.h>

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned int uint;
typedef unsigned long ulong;


Expand All @@ -38,10 +40,10 @@ typedef unsigned long ulong;

#define XDBGX


// file order is (xx.bin, xx_lst.txt, xx_msg.txt, xx.dir, xx.cmt, SAD.ini, xx_dbg.txt)



typedef struct
{
Expand Down Expand Up @@ -69,21 +71,21 @@ typedef struct
// this may be overridden by user commands....

typedef struct // indexed by REAL bank id (0-16)
{
{
uchar *fbuf; // bin file data pointer for bank
uint *opbt; // bit array pointer.

int filstrt; // start FILE OFFSET. ( = real offset - PCORG can be -ve)
int filend; // end FILE OFFSET.
int filend; // end FILE OFFSET.
uint minpc; // min PC (normally PCORG)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxpc; // end PC (= max PC allowed (where fill starts)
uint maxbk; // where bank really ends
uint bok : 1 ; // this bank is valid to use
uint cmd : 1 ; // set by command, only used in set_bnk
int dbnk : 5 ; // destination bank (setup only...also temp 8065 marker)
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
uint btype : 3 ; // bank type (code start or not) only ever 1 or 2
} BANK;


#endif