From 806f89cadff28fd1c4134af95970d799ff67899c Mon Sep 17 00:00:00 2001 From: andwati Date: Sun, 21 Dec 2025 17:37:56 +0300 Subject: [PATCH] implement main function to initialize CPU and memory, and print CPU state --- src/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main.c b/src/main.c index e69de29..dce4d27 100644 --- a/src/main.c +++ b/src/main.c @@ -0,0 +1,15 @@ +#include +#include "cpu.h" +#include "memory.h" +int main() +{ + CPU6502 cpu; + Memory mem; + + mem_reset(&mem); + cpu_reset(&cpu); + + cpu_print_state(&cpu); + + return 0; +} \ No newline at end of file