Working
git-svn-id: svn://svn.cc65.org/cc65/trunk@1212 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -2470,13 +2470,42 @@ static OPCFunc OPCTable[256] = {
|
||||
|
||||
|
||||
|
||||
void RunCPU (void)
|
||||
void CPUInit (void)
|
||||
/* Initialize the CPU */
|
||||
{
|
||||
PC = MemReadWord (0xFFFC);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Reset (void)
|
||||
/* Reset the CPU */
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
void IRQ (void)
|
||||
/* Generate an IRQ */
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
void NMI (void)
|
||||
/* Generate an NMI */
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CPURun (void)
|
||||
/* Run the CPU */
|
||||
{
|
||||
while (!CPUHalted) {
|
||||
|
||||
/* Get the next opcode */
|
||||
unsigned char B = 0x00;
|
||||
unsigned char B = MemReadByte (PC);
|
||||
|
||||
/* Execute it */
|
||||
OPCTable[B] ();
|
||||
|
||||
Reference in New Issue
Block a user