git-svn-id: svn://svn.cc65.org/cc65/trunk@1212 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-04-01 17:42:24 +00:00
parent 7b89ebcecb
commit d17936488c
5 changed files with 164 additions and 8 deletions

View File

@@ -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] ();