Comments (3)
Hi!
Sorry for not replying earlier.
You can add the command: CONST?
What is the command CONST
? What does it do?
from fastbasic.
Constants can be used to store values that don't change during the execution of your program.
CONTS NAME="ATARI"
CONST SCREEN_ADR=88
PRINT "I LOVE ",NAME
scrptr=DPEEK(SCREEN_ADR)
from fastbasic.
Hi!
Constants can be used to store values that don't change during the execution of your program.
CONTS NAME="ATARI"
CONST SCREEN_ADR=88PRINT "I LOVE ",NAME
scrptr=DPEEK(SCREEN_ADR)
This is already possible for assembly defines, but only in the PC compiler, not in the Atari IDE:
sprt = DPEEK(@@SAVMSC)
The @
symbol marks a "word" constant, the @@
symbol is a "byte" constant.
Adding this to the Atari IDE would use a fair amount of space, as the values should be stored somewhere to be patched when used, but could be implemented the same way as DATA are currently used.
I will tough about this, and keep the bug open.
Thanks!
from fastbasic.
Related Issues (20)
- Strange for loop HOT 3
- Subroutines with local variables
- Source File Inclusion (enhancement) HOT 1
- Cross compiler overwrites files with different case on Windows. HOT 4
- Improvements to DLI ... INTO -- Read from address, simple math operations
- cc65 as submodule HOT 2
- output minified listings HOT 2
- ADR() on string array doesn't seem to work HOT 7
- libstdc++.6 removed in ventura. recompile using libstdc++ HOT 9
- Running cross compiler from PATH HOT 3
- Support for other DOS , problem with blank ATR HOT 2
- Proposed enhancement FUNCTION or DEF FN HOT 1
- Enhancement Request - add Image Get and Put HOT 2
- Enhancement request: support floating point variables in FOR HOT 2
- partial reserved word matching in variables HOT 2
- test fails HOT 2
- clang warnings HOT 2
- Interoperability with Fujinet N: device HOT 6
- Atari BASIC Call "STATUS" for RS232 HOT 5
- Implement NOTE and POINT statements. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastbasic.