summaryrefslogtreecommitdiff
path: root/src/spec.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-14 01:50:20 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-14 01:50:20 +0000
commitc48dc3b86a81c827eedf3e61c1e6d9b29bb7b269 (patch)
tree2b7ea94d3b056eb659d49c0593f2ce794bb22678 /src/spec.c
parent44ffbe36a8e7eaab7d7851bb79f229c4383c6545 (diff)
Devel snapshot
Diffstat (limited to 'src/spec.c')
-rw-r--r--src/spec.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/spec.c b/src/spec.c
index 3be7753..1cfa2ba 100644
--- a/src/spec.c
+++ b/src/spec.c
@@ -622,15 +622,9 @@ Z80Byte SPECReadForDisassem(Z80 *z80, Z80Word addr)
}
-/* TODO: Implement this as a binary search
-*/
-const char *SPECGetLabel(Z80 *z80, Z80Word addr)
+const Z80Label *SPECGetLabel(void)
{
- static const struct
- {
- Z80Word addr;
- const char *txt;
- } label[]=
+ static const Z80Label label[]=
{
{0x5c00, "KSTATE"},
{0x5c01, "KSTATE+1"},
@@ -811,16 +805,12 @@ const char *SPECGetLabel(Z80 *z80, Z80Word addr)
{0x5cb3, "RAMTOP+1"},
{0x5cb4, "P_RAMT"},
{0x5cb5, "P_RAMT+1"},
+
+ {0x0c0a, "PRINT_STRING"},
{0, NULL}
};
- int f;
-
- for(f=0;label[f].txt;f++)
- if (addr==label[f].addr)
- return label[f].txt;
-
- return NULL;
+ return label;
}