perfaware/part1: Fix loop increment to get listing_0038 working
This commit is contained in:
parent
954c982856
commit
fec3db7b3f
@ -259,7 +259,7 @@ int main(int argc, char **argv)
|
||||
S86_PrintLn(S86_STR8("bits 16"));
|
||||
S86_ASSERT(buffer.size % 2 == 0); // We expect 2 byte instructions
|
||||
|
||||
for (size_t buffer_index = 0; buffer_index < (buffer.size / 2); buffer_index++) {
|
||||
for (size_t buffer_index = 0; buffer_index < buffer.size; buffer_index += 2) {
|
||||
uint8_t byte0 = (uint8_t)buffer.data[buffer_index + 0];
|
||||
uint8_t byte1 = (uint8_t)buffer.data[buffer_index + 1];
|
||||
uint16_t byte01 = (uint16_t)byte0 << 8 | (uint16_t)byte1 << 0;
|
||||
|
BIN
project.rdbg
BIN
project.rdbg
Binary file not shown.
Loading…
Reference in New Issue
Block a user