Working
git-svn-id: svn://svn.cc65.org/cc65/trunk@338 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -39,7 +39,20 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
extern unsigned char CodeBuf [0x10000]; /* Code buffer */
|
||||
extern unsigned long CodeStart; /* Start address */
|
||||
extern unsigned long CodeEnd; /* End address */
|
||||
extern unsigned long PC; /* Current PC */
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -47,17 +60,11 @@
|
||||
void LoadCode (const char* Name, unsigned long StartAddress);
|
||||
/* Load the code from the given file */
|
||||
|
||||
unsigned GetPC (void);
|
||||
/* Get the current program counter */
|
||||
unsigned char GetCodeByte (unsigned Addr);
|
||||
/* Get a byte from the given address */
|
||||
|
||||
unsigned char PeekCodeByte (void);
|
||||
/* Peek at the byte at the current PC */
|
||||
|
||||
unsigned char GetCodeByte (void);
|
||||
/* Get a byte from the PC and increment it */
|
||||
|
||||
unsigned GetCodeWord (void);
|
||||
/* Get a word from the current PC and increment it */
|
||||
unsigned GetCodeWord (unsigned Addr);
|
||||
/* Get a word from the given address */
|
||||
|
||||
unsigned GetRemainingBytes (void);
|
||||
/* Return the number of remaining code bytes */
|
||||
|
||||
Reference in New Issue
Block a user