mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 07:30:21 +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.
|
||||
const int pattern_names_end = (end - 30) / 3;
|
||||
for(int column = start_column; column < pattern_names_end; ++column) {
|
||||
pattern_names_[column] = ram_[row_base + column];
|
||||
}
|
||||
std::memcpy(&pattern_names_[start_column], &ram_[row_base + start_column], static_cast<size_t>(pattern_names_end - start_column));
|
||||
|
||||
// Patterns are collected every third window starting from window 32.
|
||||
const int pattern_buffer_end = (end - 32) / 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user