Git Product home page Git Product logo

Comments (8)

konimaru avatar konimaru commented on July 24, 2024

It's a shame really. Those things have been figured out a long time ago ...

Check out this link, it's a generic loop transferring a long per hub cycle in either direction. There is also a counter based version pre-dating this one which - while OK for me - wasn't generally accepted (and sometimes you really don't have a spare counter). Anyway, use (one of) them if you want speed ...

from jcap.

konimaru avatar konimaru commented on July 24, 2024

I apologize for the mess Parallax made during forum transition(s) which is the reason I stopped participating.

from jcap.

cspang1 avatar cspang1 commented on July 24, 2024

@konimaru Thanks, looks like just the thing I need. Hadn't even gotten around to Googling for a solution yet so thanks for saving me a step! Seems like a solution to this takes up just as much real estate as explicitly setting variables, no matter how you do it.

from jcap.

konimaru avatar konimaru commented on July 24, 2024

Your call. I - obviously - use this in most of my drivers (where applicable). And the setup is only required once. In the end it's really down to timing: it fits or it doesn't :)

from jcap.

cspang1 avatar cspang1 commented on July 24, 2024

@konimaru True story! I'm definitely riding the assembly-timing learning curve into outer space. I'm actually going to have to do a refactor of my VGA driver to populate a line buffer during the visible porch/sync regions, instead of racing to grab a new tile every time I need it. As-is the driver works fine up to 15 horizontal 16x16 tiles, or 16 horizontal 8x8 tiles. Past that, de-sync.

from jcap.

cspang1 avatar cspang1 commented on July 24, 2024

Satisfied by commit a2ff0f2

from jcap.

konimaru avatar konimaru commented on July 24, 2024

For the record, I just realised you only wanted a one-off load not something repeating (where speed might be important).

from jcap.

cspang1 avatar cspang1 commented on July 24, 2024

@konimaru no problem! There's an entirely realistic chance the driver will change in the future to make that necessary, and being aware of the execution-time conscious approach is useful.

from jcap.

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.