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

Get

Function number: 21

Stores a graphics image starting at the upper left X, Y position to the lower right X, Y position into an integer array.

Register entry values

AX = EE15
BX = Upper left X position
CX = Upper left Y position
SI = Lower right X position
DI = Lower right Y position
DS = Segment address of integer array
DX = Offset address of integer array

Register exit values

None

Example

MOV     AX,0EE15H       ;Store graphics image function
MOV BX,0 ;X1 position
MOV CX,0 ;Y1 position
MOV SI,50 ;X2 position
MOV DI,75 ;Y2 position
MOV DX,SEG Array ;Segment address of array
MOV DS,DX ; ..
MOV DX,OFFSET Array ;Offset address of array
INT 10H ;Call GRAFIX

Comments

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