Skip to content

Commit 44ee157

Browse files
committed
firmware: Correct segment names
1 parent f2f48e8 commit 44ee157

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ See [firmware/](./firmware/) for build & flash instructions.
6262

6363
- [AssemblerGames](https://web.archive.org/web/20250327165519/https://assemblergames.org/viewtopic.php?p=870129) - first mentioning of FACET2 PCB
6464
- [FACET on xosft wiki](https://xboxoneresearch.github.io/wiki/hardware/facet/) - Technical documentation of FACET port
65+
- [POST code on xosft wiki](https://xboxoneresearch.github.io/wiki/hardware/post/) - Original MAX6958A circuit and error codes
6566
- [libaspect2](https://github.com/xboxoneresearch/libaspect2) - Attempt at an open source library

firmware/Core/Src/display.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ void Display_Init(void)
1818

1919
const char *get_segment_name(uint8_t seg) {
2020
switch (seg & 0xF0) {
21-
case 0x70:
22-
return "OS";
23-
case 0x30:
24-
return "SP";
2521
case 0x10:
22+
return "CPU";
23+
case 0x30:
24+
return "PSP";
25+
case 0x70:
2626
return "SMC";
27+
case 0xF0:
28+
return "OS";
2729
default:
2830
return "???";
2931
}

0 commit comments

Comments
 (0)