|
-----Original Message-----
From: John Cooper [mailto:robots@jpsc.co.uk]
Sent: Thursday, May 06, 1999 5:07 AM
To: Ralph Hempel
Subject: Re: New pbFORTH
MARKER seems to work, but I haven't tested it much as my debug runs more
often end up in a lockup, and I don't think I can use it at all with
multitasking words.
My old code has stopped working as SENSOR_READ is now only returning 1
You've (temporarily?) removed the SOUND.. words
I think I'm having a few problems with GET_timer and PAUSE, my idea is to
have my low level delay routine relinquish control whilst waiting. My
current efforts seem to go off to nevernever land:
: delay ( 10ms timer -- )
SWAP OVER timer_SET
BEGIN
PAUSE \ let someone else have a go
DUP timer_GET 0=
UNTIL
DROP
;
: msWait ( ms -- )
10 / \ convert to 10ms units
0 delay \ use timer 0
;
--
John Cooper, Wallington, UK
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|