SETREGS

Format

SETREGS (AX,BX,CX,DX,DI,SI,BP,DS,ES)

Description

This statement will set the values of CPU registers based on the values of ASIC variables with the same name. If you don't want to set a particular register, specify NA instead of the register name.

Example

AX=1
CX=&hex0F
SETREGS (AX,NA,CX,NA,NA,NA,NA,NA,NA)
The above example will set the CPU register AX to 1, and set the CX register to 15 (hex 0F). None of the other CPU registers are modified.

Comments

WARNING: This statement is intended for advanced programmers only. It is possible to crash your program using this statement.

This statement is intended for use with the CODE statement. In general, you can safely change the values of AX, BX, CX, DX, DI, and SI. However, if you change the value of BP, DS, or ES, be sure to restore them to their original values before executing another ASIC statement other than CODE.

See Also

  • GETREGS
  • INT86
  • CODE
  • PEEK
  • POKE