Short: Tiny screenmode get/set Author: megacz@usa.com Uploader: megacz usa com Type: util/wb Version: 0.1 Requires: 68020+/os2.04+ Architecture: m68k-amigaos parsesmprefs-0.1 ------------------ --- This is basic 'screenmode.prefs' parser, it is able to show mode id and depth values(it can also set them). --- NOTES: Requires 68020(no FPU)+, OS 2.04+, 4096+ bytes of memory --- HELP: *** template: parsesmprefs [depth/s] [newmodeid] [newdepth] - 'screenmode.prefs' file. [depth/s] - show depth rather tht mode id [newmodeid] - new mode id to be set, value(hex) must be aligned to 8 - this option will cause proggy to save to file [newdepth] - new depth to be set, value(hex) must be aligned to 4 - this option is helper only therefore no save will take place! Hexadecimals must be passed without prefixes($ or 0x)! --- EXAMPLES: ; get mode id parsesmprefs env:sys/screenmode.prefs ; get depth parsesmprefs env:sys/screenmode.prefs depth ; change mode id to DblNTSC Hires No Flicker and depth to 128 colors parsesmprefs env:sys/screenmode.prefs 00099004 0007 ; change mode id only parsesmprefs env:sys/screenmode.prefs 00099004 ; change depth only to 256 colors SET previoussm `parsesmprefs env:sys/screenmode.prefs` parsesmprefs env:sys/screenmode.prefs $previoussm 0008 --- megacz@usa.com