Well i know what Blitting is, but how to do it, i don't know, i guess there must be plenty of examples on the net thought, since as my emu is only ever going to be an ZX81 emu i could just draw the chars if stopped or single stepped, the realtime update it still a bit slow but it's useful for finding area's of memory that is been constanly altered, which you can then look at in more detail whilst single stepping, i'm just rewritting the main display handling at the moment to speed it up, it *was* a 24bbp BMP now it monochrome, so now i only update 1 byte(for every 8 pixels)[but sometimes 2 when hires does not line up with 8 pixel boundary] compared to 24, it makes quite a speed difference. Still haven't started my TZX handler yet, but have made pretty good progress wiuth the P file side.
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).
Regards Andy