Skip to content

Commit

Permalink
fix INCP and DECP
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Nov 7, 2023
1 parent e99be8b commit 37dfea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/computer.d
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ class Computer {
uint ReadRegPair(ubyte reg) {
switch (reg) {
case RegPair.AB: {
return cast(ubyte) ((cast(uint) (a) << 16) | b);
return (cast(uint) (a) << 16) | b;
}
case RegPair.CD: {
return cast(ubyte) ((cast(uint) (c) << 16) | d);
return (cast(uint) (c) << 16) | d;
}
case RegPair.EF: {
return cast(ubyte) ((cast(uint) (e) << 16) | f);
return (cast(uint) (e) << 16) | f;
}
case RegPair.DS: return ds;
case RegPair.SR: return sr;
Expand Down

0 comments on commit 37dfea8

Please sign in to comment.