Code Monkey home page Code Monkey logo

Comments (3)

iamgreaser avatar iamgreaser commented on August 28, 2024 1

Considering that the Sega Master System accesses VRAM via a couple of I/O ports, and that's a Z80-based system, I don't see how a command-based system would be out of place.

Let's get some examples up.

Put string onto screen at given position

LD a, GPU_MSG_PUTSTR
LD de, (ypos<<8)|xpos 
LD hl, str_hello
LD b, str_hello_end - str_hello
OUT (c), a
OUT (c), e
OUT (c), d
OUT (c), b
OTIR

Draw a rectangle

LD a, GPU_MSG_RECTFILL_C4
LD hl, (y<<8)|x
LD de, (h<<8)|w
LD b, color
OUT (c), a
OUT (c), l
OUT (c), h
OUT (c), e
OUT (c), d
OUT (c), b

Actually, just draw a damn thing

LD hl, a_damn_thing
LD b, a_damn_thing_end - a_damn_thing
OTIR

from circuity.

iamgreaser avatar iamgreaser commented on August 28, 2024

Will we use direct VRAM writes, or will we send commands to the GPU instead? I have ideas for both.

from circuity.

fnuecke avatar fnuecke commented on August 28, 2024

I can see advantages for both, the first being nice for low-level archs, the latter for high-level ones. The latter would presumably more compact networking (that's why that's what OC does anyway). Not sure if a "hybrid" would be a good idea? Would allow saving some cycles, but that in turn could increase bandwidth use for syncing quite a bit... I have no strong preference right now, tbh, tho I'm leaning towards VRAM writes.

@asiekierka offered to work on this a while ago, tho I'm not sure what his schedule looks like currently, given fabric is a thing now?

from circuity.

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.