2021-07-18 14:21:11 <eli_oat > potentially dumb question -- is Nga more of a stack machine or a register machine?

2021-07-18 14:21:55 <eli_oat > the documentation notes that no registers are exposed via the instruction set, but I'm wondering if that means they aren't accessible in some other way?

2021-07-18 18:04:12 In the C implementation, Nga has SP, RP, and IP registers that it uses internally.

2021-07-18 18:06:23 You can roughly read (and for IP, modify) them using the query addresses via fetch (sp = -1, rp = -2), or with clever use of push/pop and calls.

2021-07-18 18:07:26 note that this is purely an internal detail. Fetch -1 returns the number of items on the data stack, which I track using SP; this isn't required though

2021-07-18 18:14:47 they disappeared ;)

2021-07-18 19:14:32 the logs will record it though :)

2021-07-18 20:40:21 eli_oat: I replied to your question; check the logs for it

2021-07-18 20:40:31 <eli_oat > thanks! will do crc

2021-07-18 20:42:33 <eli_oat > awesome sauce! Thanks so much for this answer -- sorry I had to bail shortly after asking it! Kid 2 woke up from nap a wee bit earlier than anticipate which put the squash onto my writing any retro :P

Proxy Information
Original URL
gemini://retroforth.org/irclogs/2021-07-18
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
413.092104 milliseconds
Gemini-to-HTML Time
0.32436 milliseconds

This content has been proxied by September (ba2dc).