mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-25 15:28:58 +00:00
Replaces manual retread of memcpy
with standard memcpy
.
This commit is contained in:
parent
6eedc99286
commit
d4a53e82bb
@ -111,9 +111,7 @@ void TMS9918::run_for(const HalfCycles cycles) {
|
|||||||
|
|
||||||
// Pattern names are collected every third window starting from window 30.
|
// Pattern names are collected every third window starting from window 30.
|
||||||
const int pattern_names_end = (end - 30) / 3;
|
const int pattern_names_end = (end - 30) / 3;
|
||||||
for(int column = start_column; column < pattern_names_end; ++column) {
|
std::memcpy(&pattern_names_[start_column], &ram_[row_base + start_column], static_cast<size_t>(pattern_names_end - start_column));
|
||||||
pattern_names_[column] = ram_[row_base + column];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patterns are collected every third window starting from window 32.
|
// Patterns are collected every third window starting from window 32.
|
||||||
const int pattern_buffer_end = (end - 32) / 3;
|
const int pattern_buffer_end = (end - 32) / 3;
|
||||||
|
Loading…
Reference in New Issue
Block a user