VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
Comal80.h
1// -----------------------------------------------------------------------------
2// This file is part of VirtualC64
3//
4// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
5// This FILE is dual-licensed. You are free to choose between:
6//
7// - The GNU General Public License v3 (or any later version)
8// - The Mozilla Public License v2
9//
10// SPDX-License-Identifier: GPL-3.0-or-later OR MPL-2.0
11// -----------------------------------------------------------------------------
12
13#pragma once
14
15#include "Cartridge.h"
16
17namespace vc64 {
18
19class Comal80 final : public Cartridge {
20
21 CartridgeTraits traits = {
22
23 .type = CRT_COMAL80,
24 .title = "Comal 80",
25 };
26
27 virtual const CartridgeTraits &getCartridgeTraits() const override { return traits; }
28
29public:
30
31 using Cartridge::Cartridge;
32
33
34 void operator << (SerResetter &worker) override;
35
36 u8 peekIO1(u16 addr) override { return control; }
37 u8 spypeekIO1(u16 addr) const override { return control; }
38 u8 peekIO2(u16 addr) override { return 0; }
39 u8 spypeekIO2(u16 addr) const override { return 0; }
40 void pokeIO1(u16 addr, u8 value) override;
41};
42
43}
VirtualC64 project namespace.
Definition CmdQueue.cpp:16