Skip to content

Commit

Permalink
Work on public API
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jun 5, 2024
1 parent 303f9b1 commit 21f72bf
Show file tree
Hide file tree
Showing 10 changed files with 372 additions and 166 deletions.
2 changes: 2 additions & 0 deletions Emulator/Components/CPU/Peddle/PeddleDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace vc64::peddle {

/*
// Base structure for a single breakpoint or watchpoint
struct Guard {
Expand All @@ -35,6 +36,7 @@ struct Guard {
// Replaces the address by another
void moveTo(u32 newAddr);
};
*/

// Base class for a collection of guards
class Guards {
Expand Down
38 changes: 38 additions & 0 deletions Emulator/Components/CPU/Peddle/PeddleDebuggerTypes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// -----------------------------------------------------------------------------
// This file is part of Peddle - A MOS 65xx CPU emulator
//
// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
// Published under the terms of the MIT License
// -----------------------------------------------------------------------------

#pragma once

#include "Types.h"

namespace vc64::peddle {

// Base structure for a single breakpoint or watchpoint
struct Guard {

// The observed address
u32 addr;

// Disabled guards never trigger
bool enabled;

// Counts the number of hits
long hits;

// Ignore counter
long ignore;

public:

// Returns true if the guard hits
bool eval(u32 addr);

// Replaces the address by another
void moveTo(u32 newAddr);
};

}
1 change: 1 addition & 0 deletions Emulator/Components/CPU/Peddle/PeddleTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#pragma once

#include "Types.h"
#include "PeddleDebuggerTypes.h"

namespace vc64::peddle {

Expand Down
1 change: 1 addition & 0 deletions Emulator/Media/Media.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "CRTFile.h"
#include "D64File.h"
#include "Folder.h"
#include "G64File.h"
#include "P00File.h"
#include "PRGFile.h"
#include "RomFile.h"
Expand Down
1 change: 1 addition & 0 deletions Emulator/Media/PETName.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#pragma once

#include "CoreObject.h"
#include <assert.h>

namespace vc64 {

Expand Down
4 changes: 2 additions & 2 deletions Emulator/Misc/RetroShell/RetroShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "config.h"
#include "RetroShell.h"
#include "VirtualC64.h"
#include "Emulator.h"
#include "Parser.h"
#include <sstream>

Expand Down Expand Up @@ -200,7 +200,7 @@ RetroShell::welcome()
if (interpreter.inCommandShell()) {

*this << "VirtualC64 " << name << " ";
*this << VirtualC64::build() << '\n';
*this << C64::build() << '\n';
*this << '\n';
*this << "Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de" << '\n';
*this << "https://github.com/dirkwhoffmann/virtualc64" << '\n';
Expand Down
Loading

0 comments on commit 21f72bf

Please sign in to comment.