Mercurial > hg > Members > kono > nitros9-code
changeset 929:c04528763543
stack/parameter size increased to prevent collisions with memory
author | boisy |
---|---|
date | Mon, 20 Jan 2003 21:15:00 +0000 |
parents | 82f525c3a789 |
children | 1409b917eb52 |
files | level1/cmds/copy.asm level1/cmds/ngu.asm level1/cmds/touch.asm |
diffstat | 3 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/level1/cmds/copy.asm Mon Jan 20 04:02:57 2003 +0000 +++ b/level1/cmds/copy.asm Mon Jan 20 21:15:00 2003 +0000 @@ -26,7 +26,8 @@ mod eom,name,tylg,atrv,start,size -STCKSIZE equ 64 our stack size +STACKSZ equ 128 estimated stack size +PARMSZ equ 256 estimated parameter size DDIRBSIZ equ 64 destination directory buffer size org 0 @@ -62,7 +63,7 @@ ELSE copybuff rmb 512 512 byte default buffer for Level 1 ENDC -stack rmb STCKSIZE + rmb STACKSZ+PARMSZ size equ . name fcs /Copy/ @@ -139,7 +140,7 @@ tfr s,d place top of stack in D pshs y save Y on stack subd ,s++ get size of space between copybuf and X - subd #STCKSIZE subtract out our stack + subd #STACKSZ+PARMSZ subtract out our stack std <bufsiz size of our buffer lbsr SkipSpcs move past any spaces on command line cmpa #C$CR CR?
--- a/level1/cmds/ngu.asm Mon Jan 20 04:02:57 2003 +0000 +++ b/level1/cmds/ngu.asm Mon Jan 20 21:15:00 2003 +0000 @@ -55,7 +55,8 @@ * Here are some tweakable options DOHELP set 1 1 = include help info -STCKSIZE set 64 our stack size in bytes +STACKSZ set 128 estimated stack size in bytes +PARMSZ set 256 estimated parameter size in bytes COPTSIZ set 64 max size of C option's parameter * Module header definitions @@ -89,7 +90,7 @@ bigbuff rmb 512 512 byte default buffer for Level 1 ENDC * Finally the stack for any PSHS/PULS/BSR/LBSRs that we might do -stack rmb STCKSIZE + rmb STACKSZ+PARMSZ size equ . * The utility name and edition goes here @@ -158,7 +159,7 @@ pshs y save Y on stack subd ,s++ get size of space between copybuf and X ENDC - subd #STCKSIZE subtract out our stack + subd #STACKSZ+PARMSZ subtract out our stack/param size std <bufsiz size of our buffer * At this point we have determined our buffer space and saved pointers
--- a/level1/cmds/touch.asm Mon Jan 20 04:02:57 2003 +0000 +++ b/level1/cmds/touch.asm Mon Jan 20 21:15:00 2003 +0000 @@ -19,7 +19,8 @@ * Here are some tweakable options DOHELP set 0 1 = include help info -STCKSIZE set 64 our stack size in bytes +STACKSZ set 128 estimated stack size +PARMSZ set 256 estimated parameter size ZOPTSIZ set 64 max size of -z option's parameter * Module header definitions @@ -54,7 +55,7 @@ bigbuff rmb 512 512 byte default buffer for Level 1 ENDC * Finally the stack for any PSHS/PULS/BSR/LBSRs that we might do -stack rmb STCKSIZE + rmb STACKSZ+PARMSZ size equ . * The utility name and edition goes here @@ -131,7 +132,7 @@ pshs y save Y on stack subd ,s++ get size of space between copybuf and X ENDC - subd #STCKSIZE subtract out our stack + subd #STACKSZ+PARMSZ subtract out our stack std <bufsiz size of our buffer * At this point we have determined our buffer space and saved pointers