Skip to content

Commit

Permalink
Homogeneity.
Browse files Browse the repository at this point in the history
  • Loading branch information
redcode committed Feb 15, 2024
1 parent 4431b57 commit 961fd70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/Z80.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static zusize const s_table[4] = {
Z_MEMBER_OFFSET(Z80, bc.uint16_value),
Z_MEMBER_OFFSET(Z80, de.uint16_value),
Z_MEMBER_OFFSET(Z80, hl.uint16_value),
Z_MEMBER_OFFSET(Z80, sp)};
Z_MEMBER_OFFSET(Z80, sp.uint16_value)};

static zusize const t_table[4] = {
Z_MEMBER_OFFSET(Z80, bc.uint16_value),
Expand All @@ -362,7 +362,7 @@ static zusize const w_table[4] = {
Z_MEMBER_OFFSET(Z80, bc.uint16_value),
Z_MEMBER_OFFSET(Z80, de.uint16_value),
Z_MEMBER_OFFSET(Z80, xy.uint16_value),
Z_MEMBER_OFFSET(Z80, sp)};
Z_MEMBER_OFFSET(Z80, sp.uint16_value)};

#define REGISTER_16(table, offset) \
*(zuint16 *)(void *)((zchar *)self + table[(DATA[offset] >> 4) & 3])
Expand Down

0 comments on commit 961fd70

Please sign in to comment.