[AmigaOS / ApolloOS Command Reference\UnSet] 
 

APOKE

Arguments : A=ADDRESS/A - Mandatory, Address to poke. Can be decimal or hexa number (using $ or 0x). S=SIZE/A - Mandatory, Number of bytes to poke. Valid values: 1=Byte, 2=Word, 4=Long. V=VALUE/A - Mandatory, Value to poke. Can be decimal or hexa number (using $ or 0x). Q=QUIET - Do not display result. Error messages are still displayed. Examples of usage : >APoke ? ; Help. >APoke $DFF1F4 2 $0000 ; Set SAGA Video Mode to OFF >APoke $DFF1F4 2 $0102 ; Set SAGA Video Mode to DblX + RGB16 >APoke $DFF1F4 2 $0202 ; Set SAGA Video Mode to DblY + RGB16 >APoke $DFF1F4 2 $0302 ; Set SAGA Video Mode to DblXY + RGB16 >APoke $DFF1F4 2 $0001 ; Set SAGA Video Mode to CLUT >APoke $DFF400 4 $00ff0000 ; Set SAGA CLUT Color #0 to RED >APoke $DFF404 4 $0000ff00 ; Set SAGA CLUT Color #1 to GREEN >APoke $DFF408 4 $000000ff ; Set SAGA CLUT Color #2 to BLUE >Version FULL APoke ; Get Version of APoke. Return Codes ($RC) : If all OK => 0 (OK) Invalid Value => 10 (ERROR) Invalid Size => 10 (ERROR) Invalid Address => 10 (ERROR) Invalid Arguments => 10 (ERROR) Fail to open DOS => 20 (FAIL)