1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-06-01 10:41:28 +00:00
perfect6502/cbmbasic.c
2010-10-07 05:20:49 +00:00

26 lines
345 B
C

#include "perfect6502.h"
#include "runtime.h"
#include "runtime_init.h"
int
main()
{
int clk = 0;
initAndResetChip();
/* set up memory for user program */
init_monitor();
/* emulate the 6502! */
for (;;) {
step();
clk = !clk;
if (clk)
handle_monitor();
// chipStatus();
//if (!(cycle % 1000)) printf("%d\n", cycle);
};
}