| | Re: How to user MONITOR command for watching TIMER in Spybotics
|
|
This program below shows how a timer event can be used. Dave Baum ---- #define MY_EVENT 0 task main() { ClearTimer(0); SetEvent(MY_EVENT, Timer(0), EVENT_TYPE_HIGH); SetUpperLimit(MY_EVENT, 1000); monitor(EVENT_MASK(MY_EVENT)) { while(true) { (...) (21 years ago, 12-Jul-03, to lugnet.robotics.rcx.nqc)
|
|
| | How to user MONITOR command for watching TIMER in Spybotics
|
|
Dear Members, I managed to use NQC MONITOR command to watch TIMERs in my SCOUT using the predefined SCOUT events (EVENT_TIMER_0). However, I failed with my Spybotics and RCX 2.0. My question is how can I use the MONITOR command to watch TIMERs (or (...) (21 years ago, 10-Jul-03, to lugnet.robotics.rcx.nqc)
|
|
| | Re: How to call SCOUT ROM subroutine from NQC
|
|
Dear Dave Baum, Thank you for your reply. First of all, I enyoy your wonderful creation NQC very much. I also learn much from your EXTREME MINDSTORM book although it is dedicated to RCX rather than to RDS SCOUT. I successfully call almost all SCOUT (...) (21 years ago, 27-May-03, to lugnet.robotics.rcx.nqc)
|
|
| | Re: How to call SCOUT ROM subroutine from NQC
|
|
(...) There isn't any built-in support for calling the ROM routines, but you can probably hack together what you need. You'll need to use "#pragma reserve" to prevent NQC from assigning variables to the registers used for parameter passing to the (...) (21 years ago, 24-May-03, to lugnet.robotics.rcx.nqc)
|
|
| | How to call SCOUT ROM subroutine from NQC
|
|
Dear members, I would like to know how to call RDS SCOUT ROM subroutines from NQC. The SCOUT ROM Subroutines are useful and may save much memory for SCOUT. Thankyou in advance. Liem PH (21 years ago, 23-May-03, to lugnet.robotics.rcx.nqc)
|