diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |