I also found this post that may solve your problems: https://sourceforge.net/p/gcbasic/discussion/579125/thread/41bb58f4/ Cheers Chris
Now that I have a better understanding of your intent, I can see that you are on totally the wrong track. All you are doing is assigning a value to a variable called portpin. What you are attempting to do is assign a value, that is the address of a port, to a variable called portpin and then use that variable to indirectly address a bit within that port. In short It can't be done in GCBasic in the way that you thought, however, you can work around it in GCBasic by embedding assembler code into your...
This is probably the fastest loop: Do neopin=!Neopin Wait 500 ms Loop
what about: IF Value = 1 THEN PortPin = 0 ELSE PortPin = 1 END IF
Sounds like a similar background but I skipped the VAX portion and started with 6800 chips and even developed and taught a post grad course based on them. but my favorite Chip was the 6809 and to this day I can still write in Hex Code for that device. I never had an Apple PC so skipped the 6502 entirely, but did get an Apple Lisa (pre Mac) and had to learn 68000 assembler. The 68000 code was a great asset later in life when the PC department I ran got merged into the Mainframe department. Determined...
Sounds like a similar background but I skipped the VAX portion and started with 6800 chips and even developed and taught a post grad course based on them. but my favorite Chip was the 6809 and to this day I can still write in Hex Code for that device. I never had an Apple PC so skipped the 6502 entirely, but did get a Lise and had to learn 68000 assembler. The later was a great asset later in life when the PC department I ran got merged into the Mainframe department. Determined to show this PC rookie...
Stop thinking in terms of GCB Synwrite IDE, it no longer exists. You are now using Microsoft Visual Studio Code renamed to GCStudio Code, and I am not sure how that affects the ELU on the Open Source agreement, but it completely changes the GCB user experience. Unfortunately installing GC Studio Code is the only way to update the compiler, that I know of, so I am sitting with a load of source code and an obsolete compiler because I refuse to use the renamed Microsoft code. It was fun whilst it lasted,...
But GCStudio is still the Open source Microsoft code. It may be able to open synwrite as an external editor but it is still running in the background and is still the link provider for any compiler, or other, downloads. We need a stand alone compiler that works with any editor and not a forced IDE that is based in the social media generation and thrives on personal data acquisition. I am sure that is not what Hugh had in mind and certainly not what the early adopters wanted. GCBasic was not designed...