--- M6502/M6502.xs 2007/08/01 15:34:43 80 +++ M6502/M6502.xs 2007/08/01 21:40:17 82 @@ -4,15 +4,30 @@ #include "ppport.h" +#include "M6502.h" +#include "config.h" + +M6502 *R; + void run (void) { - printf("M6502::run\n"); + debugf(("M6502::run")); run_forever(); } +void +reset (void) { + debugf(("M6502::reset called")); + Reset6502(R); + dump_R; +} + MODULE = M6502 PACKAGE = M6502 PROTOTYPES: DISABLE void run() + +void +reset()