I cheated. I'm blitting chars from a bitmap I made using some PRINTs and a screenshotAndy Rea wrote:BTW how did you get those ZX chars in your memory viewer ? i'm still struggling trying to get real time viewer updates working at an acceptable speed.
I'm considering code to dynamically read the font from the ROM, as long as this is possible for each of the EO supported systems.
I'm not bothering with partial updates, the display is only refreshed when STOP, or STEP is clicked. Windows GDI isn't the easiest of systems to grok, if you want some words of encouragement just PM me.
See if this makes sense to you, when in p file mode if no name is specified i.e LOAD "" then a dialog pops up for you to select a file, which then loads, If you cancel the dialog ZX81 acts like you pressed BREAK, now if a file name is specified and it does exsist in the working folder (which is now user selectable) it will just load it, if it doesn't exsist ZX81 throws a BADFILE NAME error, just like if you try and save without a filename. you can fast load i.e file straight into memory, or Slow load running the rom code (bit of a bugger getting that to work but that another story).
As for saving i'm still working on that, obviously you can't save without a filename, so if file does not exsist then just create a new file and save it, now i was thinking that i could have a check box to allow automatic overwrite (to be used with caution) so if file already exsist it will just overwrite (as long as it's not a read only file in which case i want a dialog to allow the user to supply a new file name) as would be the case if my allow overwrite checkbox isn't checked.
it's usually around now that i start to loose interest in my great idea's but knowing others are interested too helps keep me going
Now that i think about it there are a couple of things i would like a poke in the right direction :-
1. throttling ? there is a high resolution timer available on most pc's right? can i used this to work out how many FPS my emu is going and then sleep for a few Ms to try and keep the speed at or near 50FPS.
2. Sound? I can;t find very much that is simple to understand on the net, but then again i'm not really sure what i should be looking for. i don;t want anything fancy just like to make tha loading/saving noises (if the user wants them).
One idea might be a pixel-per-byte kind of mini-map of RAM. 256x256 pixels would be enough to show up changing areas and the update would be lightning fast... You could navigate the main window by clicking around the mini-map. It could start all white and pixels could go to black when the 1st change occurs then toggle black->red, to show up constantly changing values.