-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Wakestate detect v1.0 by Troed/SYNC | ||
|
||
As promised during my overscan and sync scroll talk at STNICCC 2015: | ||
https://www.youtube.com/watch?v=F4WJYyoF1Lk | ||
|
||
Here's a piece of code to detect which wakestate the machine is | ||
currently in. It's done using a specially crafted scanline which due | ||
to the combination and position of GLUE frequency and resolution | ||
register changes creates a scanline of different length in ST | ||
wakestate 1,2,3,4 as well as on STE. | ||
|
||
Feel free to include _detect_ws in your own code. | ||
|
||
More information on how this works here: | ||
http://www.atari-wiki.com/?title=ST_STE_Scanlines |