mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-12 15:31:09 +00:00
Makes order of operations explicit.
This commit is contained in:
parent
4cd65eab5c
commit
c365cca38a
@ -143,7 +143,7 @@ class ConcreteMachine:
|
|||||||
if(cartridge_.size() > 32768) {
|
if(cartridge_.size() > 32768) {
|
||||||
// Ensure the cartrige is a multiple of 16kb in size, as that won't
|
// Ensure the cartrige is a multiple of 16kb in size, as that won't
|
||||||
// be checked when paging.
|
// be checked when paging.
|
||||||
const size_t extension = (16384 - cartridge_.size() & 16383) % 16384;
|
const size_t extension = (16384 - (cartridge_.size() & 16383)) % 16384;
|
||||||
cartridge_.resize(cartridge_.size() + extension);
|
cartridge_.resize(cartridge_.size() + extension);
|
||||||
|
|
||||||
cartridge_pages_[0] = &cartridge_[cartridge_.size() - 16384];
|
cartridge_pages_[0] = &cartridge_[cartridge_.size() - 16384];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user