Changeset 50676d6 in Readingame
- Timestamp:
- Apr 30, 2024, 8:22:23 PM (7 weeks ago)
- Branches:
- main
- Children:
- c52dd7b
- Parents:
- 7778ea6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.cpp
r7778ea6 r50676d6 47 47 break; 48 48 case 0x01: 49 buffer.SetToFormat("Is Zero(%02x): ", script[pc + 1]);49 buffer.SetToFormat("IsSet(%02x): ", script[pc + 1]); 50 50 output += buffer; 51 51 pc += 2; … … 104 104 break; 105 105 case 0x82: 106 buffer.SetToFormat(" Increment(BYTES[%02x]) ", script[pc + 1]);106 buffer.SetToFormat("Clear(BYTES[%02x]) ", script[pc + 1]); 107 107 output += buffer; 108 108 pc += 2; … … 945 945 { 946 946 uint8_t varAddress = script[pc++]; 947 if (conditionIsInverted ^ (gVar8[varAddress] != 0)) {947 if (conditionIsInverted ^ (gVar8[varAddress] == 0)) { 948 948 done = true; 949 949 runNextLine = true; … … 1019 1019 uint8_t varAddress = script[pc++]; 1020 1020 gVar8[varAddress] = !gVar8[varAddress]; 1021 break; 1022 } 1023 case 0x82: 1024 { 1025 uint8_t varAddress = script[pc++]; 1026 gVar8[varAddress] = 0; 1021 1027 break; 1022 1028 }
Note:
See TracChangeset
for help on using the changeset viewer.