environlib
These functions tell a program what kind of Amiga it runs on, so that it can open a screen that matches the Workbench or choose code for the processor. The values are read once, when the program starts; the functions only return them.
NPrint "Workbench: ",WBWidth,"x",WBHeight,", ",WBDepth," planes"
NPrint "exec.library version ",ExecVersionBased on the environlib guide by Acid Software.
Library number 193.
Commands
cr_vbr
The address of the processor’s exception vectors (the vector base register) on a 68010 or higher, 0 on a 68000.
Function, result .l. No help text.
No arguments.
ExecVersion
The version of the system’s exec.library, which tells the version of AmigaOS.
Function, result .w. No help text.
No arguments.
Processor
The processor of the Amiga, 0 for a 68000, 1 for a 68010, 2 for a 68020, 3 for a 68030 and 4 for a 68040.
Function, result .w. No help text.
No arguments.
WBDepth
The number of bitplanes of the Workbench screen when the program started.
Function, result .w. No help text.
No arguments.
WBExtViewMode
The word that follows the view mode of the Workbench screen in the system’s data, its sprite priority and extended modes.
Function, result .w. No help text.
No arguments.
WBHeight
The height in pixels of the Workbench screen when the program started.
Function, result .l. No help text.
No arguments.
WBViewMode
The display mode of the Workbench screen when the program started, as the system’s view mode bits (for example $8000 for high resolution, 4 for interlace).
Function, result .w. No help text.
No arguments.
WBWidth
The width in pixels of the Workbench screen when the program started.
Function, result .l. No help text.
No arguments.