mirror of
https://github.com/trudnai/Steve2.git
synced 2025-04-14 20:37:33 +00:00
Step one instruction (Step In)
This commit is contained in:
parent
b70fb8c85d
commit
2531ce62b4
@ -54,36 +54,27 @@ class DebuggerToolBarController: NSWindowController, NSWindowDelegate {
|
||||
|
||||
|
||||
@IBAction func Step_Over(_ sender: Any) {
|
||||
switch cpuState {
|
||||
case cpuState_halted:
|
||||
ViewController.current?.Pause(sender)
|
||||
|
||||
case cpuState_running:
|
||||
ViewController.current?.Pause(sender)
|
||||
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@IBAction func Step_In(_ sender: Any) {
|
||||
ViewController.current?.Reset(sender)
|
||||
m6502_Step()
|
||||
// TODO: This should be in Debugger!
|
||||
if let debugger = DebuggerViewController.shared {
|
||||
debugger.Update()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@IBAction func Step_Out(_ sender: Any) {
|
||||
ViewController.current?.textDisplay.setSelectedRange(NSRange())
|
||||
}
|
||||
|
||||
|
||||
@IBAction func SetBreakPoint(_ sender: Any) {
|
||||
ViewController.current?.Copy()
|
||||
}
|
||||
|
||||
|
||||
@IBAction func DisableBreakPoint(_ sender: Any) {
|
||||
ViewController.current?.Paste()
|
||||
}
|
||||
|
||||
|
||||
|
@ -220,6 +220,7 @@ extern void rom_loadFile( const char * bundlePath, const char * filename );
|
||||
extern void tst6502(void);
|
||||
extern void m6502_ColdReset( const char * bundlePath, const char * romFilePath );
|
||||
extern void m6502_Run(void);
|
||||
INLINE int m6502_Step(void);
|
||||
|
||||
extern void interrupt_IRQ(void);
|
||||
extern void interrupt_NMI(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user