We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc6f8d commit 10cf0b1Copy full SHA for 10cf0b1
src/instruction.ts
@@ -25,8 +25,8 @@ function isTwoWordInstruction(opcode: u16) {
25
export function avrInstruction(cpu: ICPU) {
26
const opcode = cpu.progMem[cpu.pc];
27
28
- /* ADC, 0001 11rd dddd rrrr */
29
if ((opcode & 0xfc00) === 0x1c00) {
+ /* ADC, 0001 11rd dddd rrrr */
30
const d = cpu.data[(opcode & 0x1f0) >> 4];
31
const r = cpu.data[(opcode & 0xf) | ((opcode & 0x200) >> 5)];
32
const sum = d + r + (cpu.data[95] & 1);
0 commit comments