Comments (4)
Interesting. It's not doing it on my machine. What version of the C256 are you using? I doubt the issue is PEEK itself, but it may have to do with how the CPU accesses video memory, which has to go through Vicky. I may have to modify how PEEK works when the address is in video memory.
from basic816.
That makes sense, I have a Foenix U
Kernel Date March 13th, 2021 v.0.3.0-alpha+1371
I'm sharing a video so you can see what happens when I execute the code
Err.34.mp4
from basic816.
Update:
I tried poking & peeking on a different memory address (&h100000) and can confirm that peek does not modify memory (you get 1s printed).
If you change the address to &hb00000 in the two loops you get all zeroes
Code:
5 CLS
10 FOR c%=0 to 100:POKE &h100000+c%,1:NEXT
20 FOR c%=0 to 100:a%=PEEK(&h100000+c%):PRINT a%;:NEXT
from basic816.
Thanks. I've not been able to see that on the U+, but I am probably using a slightly different version of the FPGA. I do see that only zeros comes back. I have looked into how to use the Vicky FIFO to read data, and I think I have a fix. I'll need to apply it to all the PEEK variants.
from basic816.
Related Issues (20)
- Feature request: "resave" command HOT 1
- Doc bug in PDF: some text intended for LINE under MONITOR HOT 1
- BITMAP address parameter undocumented HOT 1
- Feature request: Ctrl-C in GET and INPUT
- Doc bug: "tile set or tile map" HOT 1
- <> Operator HOT 1
- Division HOT 1
- "If x%<0" comparison fails when x% is a negative number HOT 2
- On an input statement either for a float or integer (x,x%) providing a negative number result in a value of cero HOT 2
- String comparison on If statement HOT 2
- Sprite commands always reference sprite 1 HOT 3
- Using Dim on any variable type results in Type Mismatch error HOT 4
- Data statement produces a syntax error HOT 3
- Executing line number #5120 in BASIC ends the program execution HOT 2
- Trying to save a BASIC program >16Kb results in lockup HOT 3
- Populating an arrays of string causes program to crash HOT 1
- MID$() starts indexing at zero.
- Powers don't work
- Negative steps are odd
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 basic816.