Oh, wow, that's very interesting! A 68K emulator on the C64, heh - I guess
that can work for a text adventure :)


On Sat, Jun 20, 2015 at 11:27 AM, Stefan Meier <[email protected]>
wrote:

> Hi Alon,
>
> yes, it is The Pawn from Magnetic Scrolls :)
>
> I meant the asyncify feature! So far I stayed with emscripten 1.25 which
> didn't have the emterprete-async yet, I think. I had to lean a lot new html
> stuff and learn to use the emscripten api so I wasn't brave enough to
> update the emscripten chain once I got it running and prospering :-)
>
> The asyncify option was incredibly helpful! I only need three calls to
> emscripten_sleep, but they are essential. I need it when waiting for the
> user input - for the normal game commands and when the text output must be
> paginated and the user has to "press a key to continue". This is mainly
> owed to the game engine. The Magnetic Scrolls people were quite ahead of
> their time. The basis of all the Magnetic Scrolls game is actually a 68k
> emulator with reduced instruction set (that's indeed how the game were
> implemented originally! The Pawn for the C64 was a reduced 68k emulator
> complemented with I/O routines). The main loop is an indefinitely running
> loop which executes 68k instructions. This emulation was never meant to be
> paused or stopped - instead is does 'nop's and I had quite a hard time when
> trying to pause the engine while waiting for the user input buffer to be
> filled (which might of course be just a lack in my Javascript skills and I
> missed something obvious!).
>
> I think the elegant solution would have been to run the engine in a
> webworker, but that would perhaps have caused me new trouble when
> communicating with the interface... so Asyncify was the perfect solution
> for me :)
>
> Stefan
>
> Am Samstag, 20. Juni 2015 19:55:39 UTC+2 schrieb Alon Zakai:
>>
>> Oh wow, is this "The Pawn" from 1985? Very cool! I heard it was a
>> classic, I guess I'll play it now :)
>>
>> About async, do you mean emterpreter-async, or asyncify? Also I'm curious
>> how specifically it helped you here. Feedback on this stuff is very useful.
>>
>> - Alon
>>
>>
>> On Sat, Jun 20, 2015 at 4:10 AM, Stefan Meier <[email protected]>
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> just wanted to send a big Thank you! to the emscripten dev team for this
>>> really cool tool chain.
>>>
>>> I was finally able to finish and publish my first larger emscripten
>>> project (http://msmemorial.if-legends.org/msa2/). It is just another
>>> small game engine, but none of this would have happened without your great
>>> work!
>>>
>>> (And don't remove the ASYNC-Feature, please :-)
>>>
>>> A zillion THANKS and keep on going!
>>>
>>> Stefan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "emscripten-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to