mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-25 11:17:26 +00:00
Rename SizedCounter.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ClockReceiver/ClockReceiver.hpp"
|
||||
#include "Numeric/SizedCounter.hpp"
|
||||
#include "Numeric/SizedInt.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
@@ -23,12 +23,12 @@
|
||||
|
||||
namespace Motorola::CRTC {
|
||||
|
||||
using RefreshAddress = Numeric::SizedCounter<14>;
|
||||
using LineAddress = Numeric::SizedCounter<5>;
|
||||
using RefreshAddress = Numeric::SizedInt<14>;
|
||||
using LineAddress = Numeric::SizedInt<5>;
|
||||
|
||||
using SyncCounter = Numeric::SizedCounter<4>;
|
||||
using CharacterAddress = Numeric::SizedCounter<8>;
|
||||
using RowAddress = Numeric::SizedCounter<7>;
|
||||
using SyncCounter = Numeric::SizedInt<4>;
|
||||
using CharacterAddress = Numeric::SizedInt<8>;
|
||||
using RowAddress = Numeric::SizedInt<7>;
|
||||
|
||||
struct BusState {
|
||||
bool display_enable = false;
|
||||
@@ -40,7 +40,7 @@ struct BusState {
|
||||
|
||||
// Not strictly part of the bus state; provided because the partition between 6845 and bus handler
|
||||
// doesn't quite hold up in some emulated systems where the two are integrated and share more state.
|
||||
Numeric::SizedCounter<5> field_count = 0; // field_counter
|
||||
Numeric::SizedInt<5> field_count = 0; // field_counter
|
||||
};
|
||||
|
||||
class BusHandler {
|
||||
@@ -521,7 +521,7 @@ private:
|
||||
int selected_register_ = 0;
|
||||
|
||||
CharacterAddress character_counter_; // h_counter
|
||||
Numeric::SizedCounter<3> character_reset_history_; // sol
|
||||
Numeric::SizedInt<3> character_reset_history_; // sol
|
||||
RowAddress row_counter_; // row_counter
|
||||
RowAddress next_row_counter_; // row_counter_next
|
||||
LineAddress line_; // line_counter
|
||||
@@ -556,7 +556,7 @@ private:
|
||||
|
||||
bool reset_ = false;
|
||||
|
||||
Numeric::SizedCounter<3> cursor_history_; // cursor0, cursor1, cursor2 [TODO]
|
||||
Numeric::SizedInt<3> cursor_history_; // cursor0, cursor1, cursor2 [TODO]
|
||||
bool line_is_interlaced_ = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ void SAA5050Serialiser::set_reveal(const bool reveal) {
|
||||
reveal_ = reveal;
|
||||
}
|
||||
|
||||
void SAA5050Serialiser::add(const Numeric::SizedCounter<7> c) {
|
||||
void SAA5050Serialiser::add(const Numeric::SizedInt<7> c) {
|
||||
has_output_ = true;
|
||||
if(c.get() < 32) {
|
||||
output_.pixels = hold_graphics_ ? pixels(last_graphic_) : 0;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "Numeric/SizedCounter.hpp"
|
||||
#include "Numeric/SizedInt.hpp"
|
||||
|
||||
namespace Mullard {
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
void begin_frame(bool is_odd);
|
||||
void begin_line();
|
||||
|
||||
void add(Numeric::SizedCounter<7>);
|
||||
void add(Numeric::SizedInt<7>);
|
||||
|
||||
struct Output {
|
||||
// The low twelve bits of this word provide 1bpp pixels.
|
||||
|
||||
Reference in New Issue
Block a user