Ross Andrews on Nostr: How's this for an elegant way of handling timers in my imaginary machine: a device ...
How's this for an elegant way of handling timers in my imaginary machine: a device mapped to one word of memory, initialized to zero on reset. Write any nonzero value in there and the emulator will delay for that many milliseconds. Interrupts can still cause you to wake up again.
Published at
2024-04-27 17:43:54Event JSON
{
"id": "e8d93063cf63df55a68ab6b8b7abc93ba0a0f28e51ce0868ef3828227eee7b68",
"pubkey": "16701a0423fc288f3968ffb97eee6321efb5822357136273d5beac3e979f02a7",
"created_at": 1714239834,
"kind": 1,
"tags": [
[
"proxy",
"https://somewhy.net/users/randrews/statuses/112344421786348335",
"activitypub"
]
],
"content": "How's this for an elegant way of handling timers in my imaginary machine: a device mapped to one word of memory, initialized to zero on reset. Write any nonzero value in there and the emulator will delay for that many milliseconds. Interrupts can still cause you to wake up again.",
"sig": "c8791eb68ed5e93cbf36f10084d678a490f3890041d5f3538105250c2194c8217f2a054771f1a2b4522b603a551422387f29c7f6d724c4689555f39ccc454827"
}