aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgfeun2020-03-18 18:16:43 +0000
committergfeun2020-03-18 18:16:43 +0000
commit10cf0b1e6060f6268660e7517ee2f27ecc462519 (patch)
treed8f112a11395ac53c0f4558f42d2608a20d87823 /src
parentOptimize opcode check (diff)
downloadavr8js-10cf0b1e6060f6268660e7517ee2f27ecc462519.tar.gz
avr8js-10cf0b1e6060f6268660e7517ee2f27ecc462519.tar.bz2
avr8js-10cf0b1e6060f6268660e7517ee2f27ecc462519.zip
Move first comment inside function
Diffstat (limited to 'src')
-rw-r--r--src/instruction.ts2
1 files changed, 1 insertions, 1 deletions
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);