Skip to content

Commit

Permalink
jam more todos into the source code
Browse files Browse the repository at this point in the history
  • Loading branch information
christo committed Dec 19, 2024
1 parent 2bee821 commit 3058d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/machine/asm/Disassembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ class Disassembler {
* @throws if instruction cannot be decoded at offset
*/
disassemble1<T extends Endian>(mem: Memory<T>, offset: number): FullInstruction {
// TODO should we fall back to byte declaration directive?
// TODO write unit test for this stateless single instruction disassembler
// TODO should we fall back to byte declaration directive rather than throw?
const opcode = mem.read8(offset);
const instLen = Mos6502.ISA.numBytes(opcode) || 1
const bytesRemaining = mem.getLength() - offset;
Expand Down

0 comments on commit 3058d5e

Please sign in to comment.