28 lines
593 B
C
28 lines
593 B
C
|
/*
|
||
|
* =====================================================================================
|
||
|
*
|
||
|
* Filename: cpu.c
|
||
|
*
|
||
|
* Description: 6502 CPU emulator
|
||
|
*
|
||
|
* Version: 1.0
|
||
|
* Created: 2023-09-21 10:10:26 PM
|
||
|
* Revision: none
|
||
|
* Compiler: gcc
|
||
|
*
|
||
|
* Author: William Nolin,
|
||
|
* Organization:
|
||
|
*
|
||
|
* =====================================================================================
|
||
|
*/
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
long cpu_clock = 0;
|
||
|
|
||
|
void cpu_step_to(long cycle) {
|
||
|
cpu_clock = cycle;
|
||
|
printf("Clock: %ld", cpu_clock);
|
||
|
}
|
||
|
|