1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Moved code out of header.

This commit is contained in:
Thomas Harte 2016-10-30 20:16:22 -04:00
parent 3b52ab0d37
commit b04ba41951
2 changed files with 7 additions and 5 deletions

View File

@ -210,3 +210,9 @@ void VideoOutput::run_for_cycles(int number_of_cycles)
number_of_cycles -= cycles_run_for;
}
}
void VideoOutput::set_character_set_base_address()
{
if(_is_graphics_mode) _character_set_base_address = _use_alternative_character_set ? 0x9c00 : 0x9800;
else _character_set_base_address = _use_alternative_character_set ? 0xb800 : 0xb400;
}

View File

@ -34,11 +34,7 @@ class VideoOutput {
uint8_t _ink, _paper;
int _character_set_base_address;
inline void set_character_set_base_address()
{
if(_is_graphics_mode) _character_set_base_address = _use_alternative_character_set ? 0x9c00 : 0x9800;
else _character_set_base_address = _use_alternative_character_set ? 0xb800 : 0xb400;
}
inline void set_character_set_base_address();
bool _is_graphics_mode;
bool _next_frame_is_sixty_hertz;