diff options
| author | Uri Shaked | 2020-03-18 21:59:52 +0200 |
|---|---|---|
| committer | Uri Shaked | 2020-03-18 21:59:52 +0200 |
| commit | 3b7a122e9ca5252ea20376ce436809ef85602120 (patch) | |
| tree | 05b200be61634242c8a9030927bbe6b31cb296fc | |
| parent | chore: release 0.6.1 (diff) | |
| download | avr8js-3b7a122e9ca5252ea20376ce436809ef85602120.tar.gz avr8js-3b7a122e9ca5252ea20376ce436809ef85602120.tar.bz2 avr8js-3b7a122e9ca5252ea20376ce436809ef85602120.zip | |
style(cpu): relocate some stray comments
| -rw-r--r-- | src/instruction.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/instruction.ts b/src/instruction.ts index f265145..9ee52de 100644 --- a/src/instruction.ts +++ b/src/instruction.ts @@ -334,10 +334,10 @@ export function avrInstruction(cpu: ICPU) { cpu.data[(opcode & 0x1f0) >> 4] = cpu.readData(y); cpu.cycles += 2; } else if ( - /* LDDY, 10q0 qq0d dddd 1qqq */ (opcode & 0xd208) === 0x8008 && (opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8) ) { + /* LDDY, 10q0 qq0d dddd 1qqq */ cpu.data[(opcode & 0x1f0) >> 4] = cpu.readData( cpu.dataView.getUint16(28, true) + ((opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8)) @@ -359,10 +359,10 @@ export function avrInstruction(cpu: ICPU) { cpu.data[(opcode & 0x1f0) >> 4] = cpu.readData(z); cpu.cycles += 2; } else if ( - /* LDDZ, 10q0 qq0d dddd 0qqq */ (opcode & 0xd208) === 0x8000 && (opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8) ) { + /* LDDZ, 10q0 qq0d dddd 0qqq */ cpu.data[(opcode & 0x1f0) >> 4] = cpu.readData( cpu.dataView.getUint16(30, true) + ((opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8)) @@ -639,10 +639,10 @@ export function avrInstruction(cpu: ICPU) { cpu.writeData(y, i); cpu.cycles++; } else if ( - /* STDY, 10q0 qq1r rrrr 1qqq */ (opcode & 0xd208) === 0x8208 && (opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8) ) { + /* STDY, 10q0 qq1r rrrr 1qqq */ cpu.writeData( cpu.dataView.getUint16(28, true) + ((opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8)), @@ -665,10 +665,10 @@ export function avrInstruction(cpu: ICPU) { cpu.writeData(z, i); cpu.cycles++; } else if ( - /* STDZ, 10q0 qq1r rrrr 0qqq */ (opcode & 0xd208) === 0x8200 && (opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8) ) { + /* STDZ, 10q0 qq1r rrrr 0qqq */ cpu.writeData( cpu.dataView.getUint16(30, true) + ((opcode & 7) | ((opcode & 0xc00) >> 7) | ((opcode & 0x2000) >> 8)), |
