Added waitvsync() for the Enhanced Apple //e.

The implementation is a bit tricky as it requires to take different code paths for the //e, the //c and the IIgs. Additionally the //c only provides a VBL IRQ flag supposed to be used by an IRQ handler to determine what triggered the IRQ. However, masking IRQs on the CPU, activating the VBL IRQ, clearing any pending VBL IRQs and then polling for the IRQ flag does the trick.
This commit is contained in:
Oliver Schmidt
2020-06-18 21:44:42 +02:00
parent baa5d051e4
commit 37107174c6
5 changed files with 88 additions and 20 deletions

View File

@@ -332,10 +332,9 @@ usage.
<item>get_ostype
<item>rebootafterexit
<item>ser_apple2_slot
<item>textframe
<item>textframexy
<item>tgi_apple2_mix
<item>videomode
<item>waitvsync
</itemize>