News from Swissmicros!
|
09-20-2015, 08:12 PM
(This post was last modified: 09-20-2015 08:14 PM by matthiaspaul.)
Post: #34
|
|||
|
|||
RE: News from Swissmicros!
(09-20-2015 06:13 PM)Chasfield Wrote: Seeing more of the stack, via a two line display, would be cool, as Matthias suggests. I guess the original 15C ROM code would have to be broken into and quite heavily re-engineeered to achieve this - a bigger job than just getting the original version to run, as is, on an emulation layer.While I have no direct insight into their implementation, I don't think it would be very difficult. After all, the Y register of the emulated machine must be stored somewhere in the microcontrollers RAM. I assume that it is quite easy to find out where it resides, even if the emulated code isn't fully understood. Once this location is known, it could be read out periodically (or at certain events) from outside the emulator's domain (that is by the operating system or driver layer underneath the emulator). The numeric contents could then be decoded and translated into whatever representation is necessary to display it on the pixel display. Just reading out the Y register at random times in a concurrent process might cause some temporary garbage to be displayed if the multi-byte register is read out at the same time as it is being updated by the emulated machine, but I'm quite sure that the emulator provides enough state-information to let the read out happen in a mutex and only when appropriate. In fact, it is possible, that a similar technique is used already in order to retrieve and translate the X register value. Greetings, Matthias -- "Programs are poems for computers." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)