From 4f6338422f16614ff81b47dbf09c6e9d22a5cea7 Mon Sep 17 00:00:00 2001 From: Christopher Mosher Date: Fri, 13 Dec 2013 10:01:38 -0500 Subject: [PATCH] add main program; working OK --- Cpu6502.h | 7 ++++--- v6502.cpp | 5 ----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cpu6502.h b/Cpu6502.h index c7d6afa..05bf5c5 100644 --- a/Cpu6502.h +++ b/Cpu6502.h @@ -24,14 +24,15 @@ public: virtual ~Cpu6502() { } + void powerOn(); + void tick(); + void reset(); + private: Cpu6502(const Cpu6502&); Cpu6502& operator=(const Cpu6502&); - void powerOn(); void initPins(); - void reset(); - void tick(); void step(); void clock(bool phase); void rw(); diff --git a/v6502.cpp b/v6502.cpp index 36b2087..2998609 100644 --- a/v6502.cpp +++ b/v6502.cpp @@ -49,11 +49,6 @@ int main(int argc, char *argv[]) { AddressBus mem; Trace trace(tn.segs); Cpu6502 cpu(tn,mem,trace); -} - -int xxxmain(int argc, char *argv[]) { - AddressBus mem; - CPU cpu(mem);