Don't pass arguments to functions that don't use them
This commit is contained in:
parent
e4cf2bb221
commit
0cd770e4c9
|
|
@ -155,7 +155,7 @@ const Instructions = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const opcodes2mnemonics = {
|
const opcodes2mnemonics = {
|
||||||
0: (arg) => Instructions.end(arg),
|
0: (arg) => Instructions.end(),
|
||||||
1: (arg) => Instructions.store_lit(arg),
|
1: (arg) => Instructions.store_lit(arg),
|
||||||
2: (arg) => Instructions.store_addr(arg),
|
2: (arg) => Instructions.store_addr(arg),
|
||||||
3: (arg) => Instructions.load_lit(arg),
|
3: (arg) => Instructions.load_lit(arg),
|
||||||
|
|
@ -168,9 +168,9 @@ const opcodes2mnemonics = {
|
||||||
10: (arg) => Instructions.hop_addr(arg),
|
10: (arg) => Instructions.hop_addr(arg),
|
||||||
11: (arg) => Instructions.jump_lit(arg),
|
11: (arg) => Instructions.jump_lit(arg),
|
||||||
12: (arg) => Instructions.jump_addr(arg),
|
12: (arg) => Instructions.jump_addr(arg),
|
||||||
13: (arg) => Instructions.carry_clear(arg),
|
13: (arg) => Instructions.carry_clear(),
|
||||||
14: (arg) => Instructions.carry_hop(arg),
|
14: (arg) => Instructions.carry_hop(),
|
||||||
15: (arg) => Instructions.no_op(arg),
|
15: (arg) => Instructions.no_op(),
|
||||||
};
|
};
|
||||||
|
|
||||||
function startCPU(code) {
|
function startCPU(code) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue