| | Re: SENSOR_READ doesn't return 0 John Cooper
|
| | ..and now I have the answer, after extensive grepping around Kekoa's disassembly and the pbFORTH .ASM files. SENSOR_READ should return only the bottom byte, the call to 0x14C0 only returns a byte so the high byte contains garbage (actually it seems (...) (26 years ago, 13-Apr-99, to lugnet.robotics.rcx.pbforth)
|
| | |
| | | | RE: SENSOR_READ doesn't return 0 Ralph Hempel
|
| | | | (...) John, Thanks a lot for this catch. Sounds a lot like the email I exchanged with Kekoa regarding power down mode and external stacks, but that's another story... Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for LEGO Mindstorms at: (...) (26 years ago, 15-Apr-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |
| | | | | | Re: SENSOR_READ doesn't return 0 John Cooper
|
| | | | Actually, whils I am re-coding things, is there any reason why you didn't do DELAY like this? : DELAY ( 100msec timer -- ) 0 OVER TIMER_SET SWAP ( timer ticks ) BEGIN OVER TIMER_GET OVER > ( timer ticks time>ticks ) UNTIL 2DROP ; I have produced an (...) (26 years ago, 15-Apr-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |
| | | | | | RE: SENSOR_READ doesn't return 0 Ralph Hempel
|
| | | | (...) There are indeed many ways to skin a cat...in the end , the effect is the same, but I'm always curious to see how others do things. How many FORTH programmers does it take to screw in a light bulb? Just one, but he has to be the fellow that (...) (26 years ago, 16-Apr-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |