<feed xmlns='http://www.w3.org/2005/Atom'>
<title>picow/src/env.h, branch main</title>
<subtitle>Launcher for the PICO-8 Wasm Runtime</subtitle>
<id>http://src.lordello.net/picow/atom/src/env.h?h=main</id>
<link rel='self' href='http://src.lordello.net/picow/atom/src/env.h?h=main'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/'/>
<updated>2026-10-29T10:59:24Z</updated>
<entry>
<title>Minor Fixes</title>
<updated>2026-10-29T10:59:24Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-29T10:52:30Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=e51027a576a07ffb41b6e7d2bfc3aade6ae091d7'/>
<id>urn:sha1:e51027a576a07ffb41b6e7d2bfc3aade6ae091d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement Cart Shutdown</title>
<updated>2026-10-29T10:31:08Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-29T10:31:08Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=f9950fce6f7b7a3743920f0d787fb1857aa05769'/>
<id>urn:sha1:f9950fce6f7b7a3743920f0d787fb1857aa05769</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add Clipboard Support</title>
<updated>2026-10-29T10:30:06Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-29T10:30:06Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=668594a0bedec468e976a38bbf9eac871e1353de'/>
<id>urn:sha1:668594a0bedec468e976a38bbf9eac871e1353de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support the Shutdown Option</title>
<updated>2026-10-28T23:45:24Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-28T23:45:24Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=ec6ed6404cdc29fc204eb93fdeb5025deb42f49d'/>
<id>urn:sha1:ec6ed6404cdc29fc204eb93fdeb5025deb42f49d</id>
<content type='text'>
It looks like the `SHUTDOWN` menu option shows up when the `-run`
CLI argument is passed, so pass it. There is a catch though, in
that PICO-8 does not properly report shutdown requests in those
cases, so read Wasm memory directly to detect the shutdown request.
</content>
</entry>
<entry>
<title>Multicart Loading with BBS</title>
<updated>2026-10-27T14:26:20Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-27T14:26:20Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=8dda4698251ac7c724005a158d9c11e90a44c7e9'/>
<id>urn:sha1:8dda4698251ac7c724005a158d9c11e90a44c7e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement Audio Device and Remaining ASM Consts</title>
<updated>2026-10-26T07:42:53Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-26T07:32:08Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=4957ca8373273721017fc8106b52d5bc6b2a0180'/>
<id>urn:sha1:4957ca8373273721017fc8106b52d5bc6b2a0180</id>
<content type='text'>
We abstract over SDL's audio subsystem and implement an audio
device that fits into PICO-8's model. We fixed the implementation
for the PICO-8 window focus and key buffer and can now actually
boot into PICO-8 games with working sounds and controls!

There are a few issues that remain:

1. There is no "exit" option in the pause menu, I think it thinks
   that we are on the BBS, and maybe there is someway to fix this?
2. The clipboard textarea is not implemented at all; we should
   keep a text buffer in `pw_input` and interact with SDL's
   clipboard system
3. Multicart's don't always work; in particular Undune II tries
   to download from the BBS, I would like to shim this somehow
   to support both `LOAD("FOO.P8")` and `LOAD("#FOO")` forms
   transparently.
</content>
</entry>
<entry>
<title>Implement the `invoke_vii` Primitive</title>
<updated>2026-10-23T15:39:00Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-23T15:39:00Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=7c789a974625bcee34a22757344cf4fbe268e0b5'/>
<id>urn:sha1:7c789a974625bcee34a22757344cf4fbe268e0b5</id>
<content type='text'>
We use a linked list of frames and unwind to the latest. The
code turned out to be very simple, just following what the
Emscripten export does.
</content>
</entry>
<entry>
<title>Implement IO Syscalls</title>
<updated>2026-10-23T15:00:13Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-23T15:00:13Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=99fa88f971f23a3422f370d6f05b277c102ee9c3'/>
<id>urn:sha1:99fa88f971f23a3422f370d6f05b277c102ee9c3</id>
<content type='text'>
Now that we implemented our file-system, we can implement IO-related
syscalls and ASM constants and get further into the boot.

For now, we just use an in-memory userdat storage, but eventually,
I want to persist this to disk.

We can now boot to the point where we try to `invoke_vii`, which,
AFAIU, is the whole setjmp/longjmp machinery that I have to figure
out.
</content>
</entry>
<entry>
<title>Started Implementing ASM Constants</title>
<updated>2026-10-19T20:47:49Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-19T20:47:49Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=312c3c345b5b72a69ba6ee1bf50697eed18c2775'/>
<id>urn:sha1:312c3c345b5b72a69ba6ee1bf50697eed18c2775</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactor Multicart Loading</title>
<updated>2026-10-19T18:55:01Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-10-19T18:55:01Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/picow/commit/?id=381e246e73f271be2821dd9208edd2aa09bfc583'/>
<id>urn:sha1:381e246e73f271be2821dd9208edd2aa09bfc583</id>
<content type='text'>
When starting to implement the ASM constants, I noticed that the
multicart support would be _WAYYYYY_ easier if all the multicarts
are just passed in as embedded cart data.

Here, we modify the cart module to introduce a new "cartdat" type
that represents a cart export (either a single cart, for the regular
case, or multiple carts for the multicart case). This simplifies
lots of code, and allows us to use the ASM constants for passing in
cart data without additional glue logic.

It mimics how the PICO-8 export works for multi-cart code as well.

Lastly, cart names now include the `.p8` extension in the name,
to match how they work with the multicart export. I'm not sure how
this will interact with splore multi-cart loading (i.e.
`LOAD("#SOMECART")`).
</content>
</entry>
</feed>
