1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Eliminates all instances of µ.

This commit is contained in:
Thomas Harte 2018-05-13 15:46:14 -04:00
parent ad9b0cd4e3
commit 7226d8d4f7
6 changed files with 15 additions and 14 deletions

View File

@ -182,8 +182,8 @@ class CRTCBusHandler {
bus state and determines what output to produce based on the current palette and mode.
*/
forceinline void perform_bus_cycle_phase1(const Motorola::CRTC::BusState &state) {
// The gate array waits 2µs to react to the CRTC's vsync signal, and then
// caps output at 4µs. Since the clock rate is 1Mhz, that's 2 and 4 cycles,
// The gate array waits 2us to react to the CRTC's vsync signal, and then
// caps output at 4us. Since the clock rate is 1Mhz, that's 2 and 4 cycles,
// respectively.
if(state.hsync) {
cycles_into_hsync_++;

View File

@ -24,8 +24,9 @@ void CRT::set_new_timing(unsigned int cycles_per_line, unsigned int height_of_di
// To quote:
//
// "retrace interval; The interval of time for the return of the blanked scanning beam of
// a TV picture tube or camera tube to the starting point of a line or field. It is about 7 µs
// for horizontal retrace and 500 to 750 µs for vertical retrace in NTSC and PAL TV."
// a TV picture tube or camera tube to the starting point of a line or field. It is about
// 7 microseconds for horizontal retrace and 500 to 750 microseconds for vertical retrace
// in NTSC and PAL TV."
time_multiplier_ = IntermediateBufferWidth / cycles_per_line;
phase_denominator_ = cycles_per_line * colour_cycle_denominator * time_multiplier_;

View File

@ -72,14 +72,14 @@ Tape::Pulse ZX80O81P::virtual_get_next_pulse() {
}
if(!wave_pointer_) {
// post-waves silence (here actually a pre-waves silence) is 1300µs
// post-waves silence (here actually a pre-waves silence) is 1300 microseconds
pulse.length.length = 13;
pulse.length.clock_rate = 10000;
pulse.type = Pulse::Type::Low;
wave_pointer_ ++;
} else {
// pulses are of length 150µs
// pulses are of length 150 microseconds
pulse.length.length = 3;
pulse.length.clock_rate = 20000;

View File

@ -264,9 +264,9 @@ uint16_t Parser::get_next_short(const std::shared_ptr<Storage::Tape::Tape> &tape
void Parser::process_pulse(const Storage::Tape::Tape::Pulse &pulse)
{
// The Complete Commodore Inner Space Anthology, P 97, gives half-cycle lengths of:
// short: 182µs => 0.000364s cycle
// medium: 262µs => 0.000524s cycle
// long: 342µs => 0.000684s cycle
// short: 182us => 0.000364s cycle
// medium: 262us => 0.000524s cycle
// long: 342us => 0.000684s cycle
bool is_high = pulse.type == Storage::Tape::Tape::Pulse::High;
if(!is_high && previous_was_high_)
{

View File

@ -18,8 +18,8 @@ std::unique_ptr<Parser::FileSpeed> Parser::find_header(Storage::Tape::BinaryTape
}
/*
"When 1,111 cycles have been found with less than 35 µs variation in
their lengths a header has been located."
"When 1,111 cycles have been found with less than 35 microseconds
variation in their lengths a header has been located."
*/
bool last_level = tape_player.get_input();
float low = std::numeric_limits<float>::max();

View File

@ -16,9 +16,9 @@ namespace Tape {
namespace Oric {
enum class WaveType {
Short, // i.e. 416µs
Medium, // i.e. 624µs
Long, // i.e. 832µs
Short, // i.e. 416 microseconds
Medium, // i.e. 624 microseconds
Long, // i.e. 832 microseconds
Unrecognised
};