Giter VIP home page Giter VIP logo

Comments (4)

pweingar avatar pweingar commented on August 11, 2024

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.

econtrerasd avatar econtrerasd commented on August 11, 2024

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.

econtrerasd avatar econtrerasd commented on August 11, 2024

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.

pweingar avatar pweingar commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.