alexbrjo/MolassOS

View on GitHub
src/hardware/instructions/Load.js

Summary

Maintainability
F
4 days
Test Coverage

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_B_A] = function (reg) { reg.B = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 59..59
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_H_A] = function (reg) { reg.H = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 59..59
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_M_B] = function (reg) { reg.M = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_H_B] = function (reg) { reg.H = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_L_B] = function (reg) { reg.L = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_L_A] = function (reg) { reg.L = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_A_A] = function (reg) { reg.A = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 59..59

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_D_A] = function (reg) { reg.D = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 59..59
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_E_A] = function (reg) { reg.E = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 19..19
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 59..59
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_B_B] = function (reg) { reg.B = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_A_B] = function (reg) { reg.A = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_E_B] = function (reg) { reg.E = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_C_B] = function (reg) { reg.C = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 22..22
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

operation[operation.MOV_D_B] = function (reg) { reg.D = reg.B; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 7 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 2..2
src/hardware/instructions/Load.js on lines 12..12
src/hardware/instructions/Load.js on lines 32..32
src/hardware/instructions/Load.js on lines 42..42
src/hardware/instructions/Load.js on lines 52..52
src/hardware/instructions/Load.js on lines 62..62
src/hardware/instructions/Load.js on lines 72..72

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

operation[operation.MOV_C_A] = function (reg) { reg.C = reg.A; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 6 other locations - About 35 mins to fix
src/hardware/instructions/Load.js on lines 9..9
src/hardware/instructions/Load.js on lines 29..29
src/hardware/instructions/Load.js on lines 39..39
src/hardware/instructions/Load.js on lines 49..49
src/hardware/instructions/Load.js on lines 59..59
src/hardware/instructions/Load.js on lines 79..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_D] = function (reg) { reg.B = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_M] = function (reg) { reg.L = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_C] = function (reg) { reg.B = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_M] = function (reg) { reg.H = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_D] = function (reg) { reg.L = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_H] = function (reg) { reg.C = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_H] = function (reg) { reg.E = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_H] = function (reg) { reg.L = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_M_E] = function (reg) { reg.M = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_M_D] = function (reg) { reg.M = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_M] = function (reg) { reg.E = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_L] = function (reg) { reg.H = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_M_C] = function (reg) { reg.M = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_M_H] = function (reg) { reg.M = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_L] = function (reg) { reg.B = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_C] = function (reg) { reg.E = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_E] = function (reg) { reg.E = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_L] = function (reg) { reg.E = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_C] = function (reg) { reg.L = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_D] = function (reg) { reg.A = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_H] = function (reg) { reg.D = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_L] = function (reg) { reg.L = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_H] = function (reg) { reg.A = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_M] = function (reg) { reg.A = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_H] = function (reg) { reg.B = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_D] = function (reg) { reg.D = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_M] = function (reg) { reg.D = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_E_D] = function (reg) { reg.E = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_E] = function (reg) { reg.D = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_C] = function (reg) { reg.C = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_D] = function (reg) { reg.C = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_C] = function (reg) { reg.D = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_D_L] = function (reg) { reg.D = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_D] = function (reg) { reg.H = reg.D; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_E] = function (reg) { reg.H = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_E] = function (reg) { reg.B = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_B_M] = function (reg) { reg.B = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_E] = function (reg) { reg.C = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_C] = function (reg) { reg.A = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_E] = function (reg) { reg.A = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_A_L] = function (reg) { reg.A = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_L] = function (reg) { reg.C = reg.L; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_C_M] = function (reg) { reg.C = reg.M; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_C] = function (reg) { reg.H = reg.C; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_H_H] = function (reg) { reg.H = reg.H; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 55..55
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 46 locations. Consider refactoring.
Open

operation[operation.MOV_L_E] = function (reg) { reg.L = reg.E; reg.PC++;};
Severity: Major
Found in src/hardware/instructions/Load.js and 45 other locations - About 30 mins to fix
src/hardware/instructions/Load.js on lines 3..3
src/hardware/instructions/Load.js on lines 4..4
src/hardware/instructions/Load.js on lines 5..5
src/hardware/instructions/Load.js on lines 6..6
src/hardware/instructions/Load.js on lines 7..7
src/hardware/instructions/Load.js on lines 8..8
src/hardware/instructions/Load.js on lines 13..13
src/hardware/instructions/Load.js on lines 14..14
src/hardware/instructions/Load.js on lines 15..15
src/hardware/instructions/Load.js on lines 16..16
src/hardware/instructions/Load.js on lines 17..17
src/hardware/instructions/Load.js on lines 18..18
src/hardware/instructions/Load.js on lines 23..23
src/hardware/instructions/Load.js on lines 24..24
src/hardware/instructions/Load.js on lines 25..25
src/hardware/instructions/Load.js on lines 26..26
src/hardware/instructions/Load.js on lines 27..27
src/hardware/instructions/Load.js on lines 28..28
src/hardware/instructions/Load.js on lines 33..33
src/hardware/instructions/Load.js on lines 34..34
src/hardware/instructions/Load.js on lines 35..35
src/hardware/instructions/Load.js on lines 36..36
src/hardware/instructions/Load.js on lines 37..37
src/hardware/instructions/Load.js on lines 38..38
src/hardware/instructions/Load.js on lines 43..43
src/hardware/instructions/Load.js on lines 44..44
src/hardware/instructions/Load.js on lines 45..45
src/hardware/instructions/Load.js on lines 46..46
src/hardware/instructions/Load.js on lines 47..47
src/hardware/instructions/Load.js on lines 48..48
src/hardware/instructions/Load.js on lines 53..53
src/hardware/instructions/Load.js on lines 54..54
src/hardware/instructions/Load.js on lines 56..56
src/hardware/instructions/Load.js on lines 57..57
src/hardware/instructions/Load.js on lines 58..58
src/hardware/instructions/Load.js on lines 63..63
src/hardware/instructions/Load.js on lines 64..64
src/hardware/instructions/Load.js on lines 65..65
src/hardware/instructions/Load.js on lines 66..66
src/hardware/instructions/Load.js on lines 73..73
src/hardware/instructions/Load.js on lines 74..74
src/hardware/instructions/Load.js on lines 75..75
src/hardware/instructions/Load.js on lines 76..76
src/hardware/instructions/Load.js on lines 77..77
src/hardware/instructions/Load.js on lines 78..78

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 45.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status