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

Put

Function number: 22

Transfers an image that was previously stored using the Get function using 1 of 5 actions.

Register entry values

AX = EE16
SI = Starting X position
DI = Starting Y position
BX = Action
  1 = PRESET
  2 = PSET
  3 = AND
  4 = OR
  5 = XOR
DS = Segment address of integer array
DX = Offset address of integer array

Register exit values

None

Example

MOV     AX,0EE16H       ;Transfer graphics image function
MOV SI,10 ;Starting X position
MOV DI,30 ;Starting Y position
MOV BX,5 ;Use XOR action
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 'ExtPut' function in chapter 2 for more information.