Browse Source

Fix score in pong

Alex 6 years ago
parent
commit
faa0ed13a3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      main.c

+ 2
- 1
main.c View File

386
 						break;
386
 						break;
387
 
387
 
388
 					case 0x65:
388
 					case 0x65:
389
-						for (int i = 0; i <= reg + 1; ++i)
389
+						for (int i = 0; i <= reg; ++i)
390
 							state.registers[i] = state.memory[state.address_I + i];
390
 							state.registers[i] = state.memory[state.address_I + i];
391
 						break;
391
 						break;
392
 
392
 
394
 						break;
394
 						break;
395
 				}
395
 				}
396
 				break;
396
 				break;
397
+
397
 			default: 
398
 			default: 
398
 				if (DEBUG) printf("%x", opcode);
399
 				if (DEBUG) printf("%x", opcode);
399
 				break;
400
 				break;