mirror of
https://github.com/andwati/mos-6502.git
synced 2026-10-18 03:02:51 +00:00
implement main function to initialize CPU and memory, and print CPU state
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include "cpu.h"
|
||||
#include "memory.h"
|
||||
int main()
|
||||
{
|
||||
CPU6502 cpu;
|
||||
Memory mem;
|
||||
|
||||
mem_reset(&mem);
|
||||
cpu_reset(&cpu);
|
||||
|
||||
cpu_print_state(&cpu);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user