Skip to content

Commit

Permalink
ui_kc85sys.h: fix inverted KC85/4 IO84 status bits
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 7, 2023
1 parent 29a79f4 commit 7732ed4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/ui_kc85sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ void ui_kc85sys_draw(ui_kc85sys_t* win) {
#if defined(CHIPS_KC85_TYPE_4)
if (ImGui::CollapsingHeader("Port 84h", ImGuiTreeNodeFlags_DefaultOpen)) {
const uint8_t v = win->kc85->io84;
ImGui::Text("0: Show image %d", (v & KC85_IO84_SEL_VIEW_IMG) ? 0:1);
ImGui::Text("1: Access %s", (v & KC85_IO84_SEL_CPU_COLOR) ? "PIXELS":"COLORS");
ImGui::Text("2: Access image %d", (v & KC85_IO84_SEL_CPU_IMG) ? 0:1);
ImGui::Text("0: Show image %d", (v & KC85_IO84_SEL_VIEW_IMG) ? 1:0);
ImGui::Text("1: Access %s", (v & KC85_IO84_SEL_CPU_COLOR) ? "COLORS":"PIXELS");
ImGui::Text("2: Access image %d", (v & KC85_IO84_SEL_CPU_IMG) ? 1:0);
ImGui::Text("3: Hicolor mode %s", (v & KC85_IO84_HICOLOR) ? "OFF":"ON");
ImGui::Text("4: RAM8 block %d", (v & KC85_IO84_SEL_RAM8) ? 0:1);
ImGui::Text("5: RAM8 ??? %d", (v & KC85_IO84_BLOCKSEL_RAM8) ? 0:1);
ImGui::Text("4: RAM8 block %d", (v & KC85_IO84_SEL_RAM8) ? 1:0);
ImGui::Text("5: RAM8 ??? %d", (v & KC85_IO84_BLOCKSEL_RAM8) ? 1:0);
ImGui::Text("6..7: unused");
}
if (ImGui::CollapsingHeader("Port 86h", ImGuiTreeNodeFlags_DefaultOpen)) {
Expand Down

0 comments on commit 7732ed4

Please sign in to comment.