Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 3

GetView

Function number: 55

Returns the size of the current screen viewport.

Register entry values

AX = EE37

Register exit values

BX = Minimum X
CX = Minimum Y
SI = Maximum X
DI = Maximum Y

Example

MOV     AX,0EE37H       ;Get screen viewport function
INT 10H ;Call GRAFIX
MOV [MinX],BX ;Store minimum X
MOV [MinY],CX ;Store minimum Y
MOV [MaxX],SI ;Store maximum X
MOV [MaxY],DI ;Store maximum Y

Comments

See the 'SetView' function in chapter 2 for more information.