Subject:
|
SetClock defined
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Tue, 16 Mar 1999 08:05:51 GMT
|
Viewed:
|
2351 times
|
| |
| |
I noticed that the byte code command to implement the
SetClock(hrs,min) wasn't implemented in the nqc.h file. Here it is,
rather simple really but I find it useful as a way for the RCX to
communicate debugging info while running.
Example, when a Task1 is running, it can display 01:01 and change the
minutes based on what state it is currently in or what it is
doing. Another task can display 02:xx message as it desires when it
is executing. Handy for me when debugging a program with many
states, less obnoxious than making noises.
The rcx.h definition is: #define SetClock(h, m) asm { 0x22,(h), (m) }
If you use RcxCC 2.2, you can set a Template for this with the following
Template definition: SetClock("hours","minutes");\=
BTW, Great job on version 1.2 Dave!! Thanks for all your hard work.
Hope you all find this useful,
Regards,
Dave Chen.
|
|
Message has 1 Reply: | | Re: SetClock defined
|
| Mark Overmars already forwarded your SetClock definition to me, so it will be added to 1.3, although I'm considering naming it SetWatch() for consistiency with the nqc -watch option and the spirit.ocx call. Dave (...) (26 years ago, 17-Mar-99, to lugnet.robotics.rcx.nqc)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|