diff --git a/kernel/stdio.asm b/kernel/stdio.asm index c8d55fb..1ae2d6d 100644 --- a/kernel/stdio.asm +++ b/kernel/stdio.asm @@ -27,7 +27,7 @@ ; *** Consts *** ; Size of the readline buffer. If a typed line reaches this size, the line is ; flushed immediately (same as pressing return). -.equ STDIO_BUFSIZE 0x20 +.equ STDIO_BUFSIZE 0x40 ; *** Variables *** ; Line buffer. We read types chars into this buffer until return is pressed diff --git a/recipes/rc2014/eeprom/glue.asm b/recipes/rc2014/eeprom/glue.asm index a7a1554..3c35733 100644 --- a/recipes/rc2014/eeprom/glue.asm +++ b/recipes/rc2014/eeprom/glue.asm @@ -40,7 +40,7 @@ jp aciaInt ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD AT28W_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/rc2014/glue.asm b/recipes/rc2014/glue.asm index edf417b..0d33b4c 100644 --- a/recipes/rc2014/glue.asm +++ b/recipes/rc2014/glue.asm @@ -25,7 +25,7 @@ jp aciaInt ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD STDIO_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/rc2014/ps2/glue.asm b/recipes/rc2014/ps2/glue.asm index 76126de..55b1c04 100644 --- a/recipes/rc2014/ps2/glue.asm +++ b/recipes/rc2014/ps2/glue.asm @@ -24,7 +24,7 @@ jp init ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD STDIO_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/rc2014/sdcard/glue.asm b/recipes/rc2014/sdcard/glue.asm index 10f5c86..19f23ea 100644 --- a/recipes/rc2014/sdcard/glue.asm +++ b/recipes/rc2014/sdcard/glue.asm @@ -48,7 +48,7 @@ jp aciaInt ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD FS_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/rc2014/zasm/glue.asm b/recipes/rc2014/zasm/glue.asm index c5b022f..1c85db7 100644 --- a/recipes/rc2014/zasm/glue.asm +++ b/recipes/rc2014/zasm/glue.asm @@ -1,10 +1,10 @@ ; classic RC2014 setup (8K ROM + 32K RAM) and a stock Serial I/O module ; The RAM module is selected on A15, so it has the range 0x8000-0xffff .equ RAMSTART 0x8000 -; Kernel RAMEND last check: 0x98f3 +; Kernel RAMEND last check: 0x9933 ; We allocate at least 0x100 bytes for the stack, which is why we have this ; threshold. -.equ RAMEND 0x9a00 +.equ RAMEND 0x9b00 .equ USER_CODE RAMEND ; in sync with user.h .equ ACIA_CTL 0x80 ; Control and status. RS off. .equ ACIA_IO 0x81 ; Transmit. RS on. @@ -67,7 +67,7 @@ jp aciaInt ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD FS_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/rc2014/zasm/user.h b/recipes/rc2014/zasm/user.h index 6f81ca8..ad53ba9 100644 --- a/recipes/rc2014/zasm/user.h +++ b/recipes/rc2014/zasm/user.h @@ -1,4 +1,4 @@ -.org 0x9a00 +.org 0x9b00 ; *** JUMP TABLE *** .equ strncmp 0x03 diff --git a/recipes/sms/glue.asm b/recipes/sms/glue.asm index 308d6b6..5bca608 100644 --- a/recipes/sms/glue.asm +++ b/recipes/sms/glue.asm @@ -27,7 +27,7 @@ ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD STDIO_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/sms/kbd/glue.asm b/recipes/sms/kbd/glue.asm index a67e4be..d6b5176 100644 --- a/recipes/sms/kbd/glue.asm +++ b/recipes/sms/kbd/glue.asm @@ -29,7 +29,7 @@ ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD STDIO_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/sms/romasm/glue.asm b/recipes/sms/romasm/glue.asm index d0a95ea..b583e48 100644 --- a/recipes/sms/romasm/glue.asm +++ b/recipes/sms/romasm/glue.asm @@ -77,7 +77,7 @@ ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD FS_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/recipes/ti84/glue.asm b/recipes/ti84/glue.asm index e636473..f3343d5 100644 --- a/recipes/ti84/glue.asm +++ b/recipes/ti84/glue.asm @@ -40,7 +40,7 @@ ; *** BASIC *** ; RAM space used in different routines for short term processing. -.equ SCRATCHPAD_SIZE 0x20 +.equ SCRATCHPAD_SIZE STDIO_BUFSIZE .equ SCRATCHPAD STDIO_RAMEND .inc "lib/util.asm" .inc "lib/ari.asm" diff --git a/tools/blkdump.c b/tools/blkdump.c index d0c8803..dfdbac2 100644 --- a/tools/blkdump.c +++ b/tools/blkdump.c @@ -21,17 +21,18 @@ int main(int argc, char **argv) } int fd = open(argv[1], O_RDWR|O_NOCTTY); - char s[3]; + char s[0x30]; + sendcmdp(fd, "i=0"); + sprintf(s, "while i<0x%04x getb:puth a:i=i+1", bytecount); + sendcmd(fd, s); + for (int i=0; i