TIC-80 WebAssembly: pointers to fixed addresses

Pierce Ng pierce at samadhiweb.com
Sun Apr 17 09:28:01 UTC 2022


On Saturday, 16 April 2022 at 20:36:12 UTC, Adam Ruppe wrote:
> __gshared ubyte[] framebuffer = (cast(ubyte*) 0) [0 .. 16320];
> 
> ubyte[] framebuffer() { return (cast(ubyte*) 0) [0 .. 16320]; }

Thank you, Adam.

I'll go with both, as existing examples in other languages use 
pointer arithmetic.

Now re-implementing a few Lua examples shown on TIC-80's wiki. 
Will be checking out the [Wasm-compatible D 
RTL](https://github.com/skoppe/druntime), which I found browsing 
these forums.

Pierce


More information about the Digitalmars-d-learn mailing list