Acorn Arcade forums: Programming: RiscPC Serial port programming
|
RiscPC Serial port programming |
|
Stoppers (10:12 16/1/2012) krisa (16:07 16/1/2012) Stoppers (17:53 16/1/2012)
|
|
Simon Willcocks |
Message #119499, posted by Stoppers at 10:12, 16/1/2012 |
Member
Posts: 302
|
This is giving me a headache!
I've got a simple BASIC program that should communicate with the 's serial port, but it only works if Connector is running at the same time (and then they share the received bytes).
Does anyone have some working code that uses OS_SpriteOp that I can have a look at? (Any language is fine.)
Thanks, Simon |
|
[ Log in to reply ] |
|
Kris Adcock |
Message #119502, posted by krisa at 16:07, 16/1/2012, in reply to message #119499 |
Member
Posts: 62
|
This is giving me a headache!
I've got a simple BASIC program that should communicate with the 's serial port, but it only works if Connector is running at the same time (and then they share the received bytes).
Does anyone have some working code that uses OS_SpriteOp that I can have a look at? (Any language is fine.)
Thanks, Simon I'm guessing you mean OS_SerialOp.
It's probably not Connector that's the vital point, but the serial block driver stuff. And I seem to recall that there's a BASIC example inside there somewhere ... enough to get me started in it, anyway. Have a look here:
http://www.xat.nl/en/riscos/sw/bd/index.htm |
|
[ Log in to reply ] |
|
Simon Willcocks |
Message #119503, posted by Stoppers at 17:53, 16/1/2012, in reply to message #119502 |
Member
Posts: 302
|
I'm guessing you mean OS_SerialOp.
That's a very good guess!
It's probably not Connector that's the vital point, but the serial block driver stuff. And I seem to recall that there's a BASIC example inside there somewhere ... enough to get me started in it, anyway.
I did have a look at that, but didn't manage to get it working, either.
Now, I've just had another look, changed one line ("CALL driver TO A%" to "=USR driver", it was a syntax error), and it seems to work fine.
It's amazing how embarrassing yourself in front of the whole world solves problems.
I'd still like to know what the driver does that I wasn't, but it's not that important.
Thanks, Simon |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: RiscPC Serial port programming |