Skip to content

Commit

Permalink
ui_dbg.h, ui_z80.h: fix X and Y flags being swapped in UI doh
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 26, 2023
1 parent ead0c3a commit a91ae0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/ui_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1449,9 +1449,9 @@ void _ui_dbg_draw_regs(ui_dbg_t* win) {
char f_str[9] = {
(c->f & Z80_SF) ? 'S':'-',
(c->f & Z80_ZF) ? 'Z':'-',
(c->f & Z80_YF) ? 'X':'-',
(c->f & Z80_YF) ? 'Y':'-',
(c->f & Z80_HF) ? 'H':'-',
(c->f & Z80_XF) ? 'Y':'-',
(c->f & Z80_XF) ? 'X':'-',
(c->f & Z80_VF) ? 'V':'-',
(c->f & Z80_NF) ? 'N':'-',
(c->f & Z80_CF) ? 'C':'-',
Expand Down
10 changes: 5 additions & 5 deletions ui/ui_z80.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
~~~C
#define CHIPS_UI_IMPL
~~~
before you include this file in *one* C++ file to create the
before you include this file in *one* C++ file to create the
implementation.
Optionally provide the following macros with your own implementation
~~~C
CHIPS_ASSERT(c)
~~~
Expand Down Expand Up @@ -47,7 +47,7 @@
2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
distribution.
#*/
#include <stdint.h>
#include <stdbool.h>
Expand Down Expand Up @@ -134,9 +134,9 @@ static void _ui_z80_regs(ui_z80_t* win) {
char f_str[9] = {
(f & Z80_SF) ? 'S':'-',
(f & Z80_ZF) ? 'Z':'-',
(f & Z80_YF) ? 'X':'-',
(f & Z80_YF) ? 'Y':'-',
(f & Z80_HF) ? 'H':'-',
(f & Z80_XF) ? 'Y':'-',
(f & Z80_XF) ? 'X':'-',
(f & Z80_VF) ? 'V':'-',
(f & Z80_NF) ? 'N':'-',
(f & Z80_CF) ? 'C':'-',
Expand Down

0 comments on commit a91ae0f

Please sign in to comment.