Mercurial > hg > Members > kono > nitros9-code
comparison level1/cmds/ngu.asm @ 929:c04528763543
stack/parameter size increased to prevent collisions with memory
author | boisy |
---|---|
date | Mon, 20 Jan 2003 21:15:00 +0000 |
parents | bffd011cbef3 |
children | 84ea83668304 |
comparison
equal
deleted
inserted
replaced
928:82f525c3a789 | 929:c04528763543 |
---|---|
53 use rbfdefs | 53 use rbfdefs |
54 endc | 54 endc |
55 | 55 |
56 * Here are some tweakable options | 56 * Here are some tweakable options |
57 DOHELP set 1 1 = include help info | 57 DOHELP set 1 1 = include help info |
58 STCKSIZE set 64 our stack size in bytes | 58 STACKSZ set 128 estimated stack size in bytes |
59 PARMSZ set 256 estimated parameter size in bytes | |
59 COPTSIZ set 64 max size of C option's parameter | 60 COPTSIZ set 64 max size of C option's parameter |
60 | 61 |
61 * Module header definitions | 62 * Module header definitions |
62 tylg set Prgrm+Objct | 63 tylg set Prgrm+Objct |
63 atrv set ReEnt+rev | 64 atrv set ReEnt+rev |
87 bigbuff rmb 8*1024 8K default buffer for Level 2 | 88 bigbuff rmb 8*1024 8K default buffer for Level 2 |
88 ELSE | 89 ELSE |
89 bigbuff rmb 512 512 byte default buffer for Level 1 | 90 bigbuff rmb 512 512 byte default buffer for Level 1 |
90 ENDC | 91 ENDC |
91 * Finally the stack for any PSHS/PULS/BSR/LBSRs that we might do | 92 * Finally the stack for any PSHS/PULS/BSR/LBSRs that we might do |
92 stack rmb STCKSIZE | 93 rmb STACKSZ+PARMSZ |
93 size equ . | 94 size equ . |
94 | 95 |
95 * The utility name and edition goes here | 96 * The utility name and edition goes here |
96 name fcs /NGU/ | 97 name fcs /NGU/ |
97 fcb edition | 98 fcb edition |
156 subr y,d | 157 subr y,d |
157 ELSE | 158 ELSE |
158 pshs y save Y on stack | 159 pshs y save Y on stack |
159 subd ,s++ get size of space between copybuf and X | 160 subd ,s++ get size of space between copybuf and X |
160 ENDC | 161 ENDC |
161 subd #STCKSIZE subtract out our stack | 162 subd #STACKSZ+PARMSZ subtract out our stack/param size |
162 std <bufsiz size of our buffer | 163 std <bufsiz size of our buffer |
163 | 164 |
164 * At this point we have determined our buffer space and saved pointers | 165 * At this point we have determined our buffer space and saved pointers |
165 * for later use. Now we will parse the command line for options that | 166 * for later use. Now we will parse the command line for options that |
166 * begin with a dash. | 167 * begin with a dash. |