From 10cf0b1e6060f6268660e7517ee2f27ecc462519 Mon Sep 17 00:00:00 2001 From: gfeun Date: Wed, 18 Mar 2020 18:16:43 +0000 Subject: Move first comment inside function --- src/instruction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/instruction.ts') diff --git a/src/instruction.ts b/src/instruction.ts index 5ab7ba0..f265145 100644 --- a/src/instruction.ts +++ b/src/instruction.ts @@ -25,8 +25,8 @@ function isTwoWordInstruction(opcode: u16) { export function avrInstruction(cpu: ICPU) { const opcode = cpu.progMem[cpu.pc]; - /* ADC, 0001 11rd dddd rrrr */ if ((opcode & 0xfc00) === 0x1c00) { + /* ADC, 0001 11rd dddd rrrr */ const d = cpu.data[(opcode & 0x1f0) >> 4]; const r = cpu.data[(opcode & 0xf) | ((opcode & 0x200) >> 5)]; const sum = d + r + (cpu.data[95] & 1); -- cgit v1.2.3