aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/taipan.c b/taipan.c
index 9380d1d..3c58c47 100644
--- a/taipan.c
+++ b/taipan.c
@@ -1,3 +1,5 @@
+// TODO: replace conio with coffio
+
#include <conio.h>
#include <time.h>
#include <stdlib.h>
@@ -250,6 +252,9 @@ void cprint_taipan_prompt(void);
void cprint_elder_brother_wu(void);
void cprint_li_yuen(void);
+/* local replacement for strtoul, see strtonum.c */
+unsigned long __fastcall__ strtonum(const char* nptr);
+
unsigned char firmpos;
/* use page 6 for these buffers, for .xex build. Otherwise they'e BSS. */
@@ -1362,7 +1367,8 @@ unsigned long get_num(void) {
}
// cursor(0);
num_buf[count] = '\0';
- return strtoul(num_buf, (char **)NULL, 10);
+ // return strtoul(num_buf, (char **)NULL, 10);
+ return strtonum(num_buf);
}
/* TODO: rewrite in asm */