Issue with Bit names on the ZX-44s?

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
KindaNerdy
Posts: 9
Joined: 27 April 2010, 16:41 PM

Issue with Bit names on the ZX-44s?

Post by KindaNerdy »

I think there may be an issue here thought I would mention it. I was trying to GetPin(B.5) and it would not get a pin value. I changed to GetPin(3) it now gets the pin value on on PORTB.5 or Pin 3 of the 44s but I now get a warning message on Compile.

Warning(3): parameter 1 of GetPin, pin 3 (&H03) is not a valid I/O pin for target processor "ZX44s"


but it is working just fine.

thanks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Issue with Bit names on the ZX-44s?

Post by dkinzer »

KindaNerdy wrote:I changed to GetPin(3) it now gets the pin value on on PORTB.5 or Pin 3 of the 44s but I now get a warning message on Compile.
What version of the compiler (not the IDE version) are you using? If you are using the IDE, both the IDE version number and the compiler version number are displayed in the "about box" invoked using the Help|About ZBasic IDE menu item.
- Don Kinzer
KindaNerdy
Posts: 9
Joined: 27 April 2010, 16:41 PM

Post by KindaNerdy »

The IDE version I am using is 1.5.4 and the Compiler version is 3.1.6.
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

KindaNerdy wrote:The [...] Compiler version is 3.1.6.
That is a fairly old version, released in October 2010. The current version is v4.0.3 (which doesn't exhibit the symptom you described) - available on the Downloads Page
- Don Kinzer
KindaNerdy
Posts: 9
Joined: 27 April 2010, 16:41 PM

Post by KindaNerdy »

Cool the latest version fixed the problem. Thanks
Post Reply