1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-03 11:30:02 +00:00

Reverses order of instruction instantiation, reducing total bus step heft by about 11%.

... since that means inserting more complicated instructions before simpler ones in general, making subset finds more likely.
This commit is contained in:
Thomas Harte 2019-04-29 22:20:18 -04:00
parent 1b8fada6aa
commit 6b4c656849

View File

@ -758,7 +758,7 @@ struct ProcessorStorageConstructor {
#define l2(x, y) (0x10000 | ((x) << 8) | (y))
// Perform a linear search of the mappings above for this instruction.
for(size_t instruction = 0; instruction < 65536; ++instruction) {
for(ssize_t instruction = 65535; instruction >= 0; --instruction) {
#ifndef NDEBUG
int hits = 0;
#endif