tschak909 Posted November 5, 2020 Share Posted November 5, 2020 I'm currently digging into how to properly handle strings in Fig-Forth, so that e.g.: DSPEC "N:TCP://foo.com:6502/" will place a devicespec in the buffer so I can to it via a DCB for SIOV. Am wondering if this is a case for a <BUILDS DOES> construct? -Thom Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 10, 2020 Author Share Posted November 10, 2020 ok, then... -Thom Quote Link to comment Share on other sites More sharing options...
ivop Posted November 10, 2020 Share Posted November 10, 2020 Not many Forth lovers I suppose? Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 10, 2020 Author Share Posted November 10, 2020 guess not. Am just trying to make bindings for FujiNet. -Thom Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 11, 2020 Share Posted November 11, 2020 (edited) Of course I tried this language on A8 some time ago but (as someone said) I had the feeling that FORTH was trying to make a living compiler from me Edited November 11, 2020 by zbyti living compiler 1 Quote Link to comment Share on other sites More sharing options...
funkheld Posted November 11, 2020 Share Posted November 11, 2020 I program my vic20 with this forth. There are also specialists there who can help you, not just for the vic20 greeting http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?f=2&t=7557 Quote Link to comment Share on other sites More sharing options...
+slx Posted November 13, 2020 Share Posted November 13, 2020 I read the book (the one with the nice drawings) and tried it out but while I love RPN in calculators, I couldn't warm to it on the Atari... 1 Quote Link to comment Share on other sites More sharing options...
Atari_Ace Posted November 14, 2020 Share Posted November 14, 2020 My Forth is pretty rusty, but I think you want to do something like: : DSPEC " N:TCP://foo.com:6502" ; : SETDSPEC DSPEC 776 ! 772 ! ; Here DSPEC will return the length/address of the string and SETDSPEC will set DBYTLO/HI and DBUFLO/HI. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.