Hi,
I am a GCBASIC beginner and need to use "Single" Variables for my project.
I did test the example code but get already an error "Invalid variable type: SINGLE" with these few lines of code:
#Chip mega328p, 16
Dim mySingle as Single
mySingle= 1.1
Result: Invalid variable type: SINGLE
So what am I doing wrong?
Really sorry. AVR is now yet support in terms of the lowlevel ASM. I need someone to help with the AVR ASM.
I will update the compiler to issue a better message - "Advanced Variables for AVR not supportted. If you want to help add this capability please contact the GCBASIC developers on the GBCASIC Support Forum. We need a developer to assist with AVR assembly." .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am a GCBASIC beginner and need to use "Single" Variables for my project.
I did test the example code but get already an error "Invalid variable type: SINGLE" with these few lines of code:
Result: Invalid variable type: SINGLE
So what am I doing wrong?
Last edit: Andye 2024-08-31
Andye,
Really sorry. AVR is now yet support in terms of the lowlevel ASM. I need someone to help with the AVR ASM.
I will update the compiler to issue a better message - "Advanced Variables for AVR not supportted. If you want to help add this capability please contact the GCBASIC developers on the GBCASIC Support Forum. We need a developer to assist with AVR assembly." .
Thank you for the answer.
So I have to use integer variables as a workaround.