PDA

View Full Version : Input Buffer Overflow?


dirkjorens
08-22-06, 01:44 PM
Hi, I'm just getting started with Forth on the NMIX-0026-PS and having an input problem. No matter what I enter, after about 10 lines like below, the system quits and needs a complete shutdown to recover. Please help and thank you.

DirkJorens

Max-FORTH V1.3
COLD
Max-FORTH V1.3
: TEST1 1 2 + . ; OK
: TEST2 1 2 + . ; OK
: TEST3 1 2 + . ; OK
: TEST4 1 2 + . ; OK
: TEST5 1 2 + . ; OK
: TEST6 1 2 + . ; OK
: TEST7 1 2 + . ; OK
: TEST8 1 2 + . ; OK
: TEST9 1 2 + . ;
'ú57¿8õ'ú77œõúú5ú!5û5û5û7µ77ú7µ 7ú ?

nmitech
08-22-06, 02:55 PM
Look like the internal ram is filled up. You can redefine the DP on the external ram start from 4000 hex.

HEX
4000 DP !
: TEST1 1 2 + . ;
: TEST2 1 2 + . ;
: TEST3 1 2 + . ;
( and more )

RMDumse
08-22-06, 02:59 PM
That problem looks familiar. The chip comes up using only internal resources, and the amount of RAM inside the chip is very small. As you define new tests, you eventually fill up that RAM with definitions, and it (literally) runs out of RAM into ROM and comes back with the weird lines you see there.

Refer to the NMIX/X-0026 manual. It tells on page 3 that you need to move out to external RAM. HEX 4000 DP ! will move the dictionary pointer to the beginning of the big RAM outside the chip.

dirkjorens
08-22-06, 04:31 PM
That did the trick ! I should have re-read the user guide. Thank you for your assistance here and on the phone. Dirk