GETREGS

Format

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

Description

This statement will retrieve the values of the CPU registers to ASIC variables with the same names. For example, the CPU register AX is stored in an ASIC variable named AX. If some of the registers are not needed, you can specify NA instead of the register name, in which case ASIC will generate slightly less code.

Example

GETREGS (AX,BX,CX,DX,NA,NA,NA,NA,NA)
The above example will retrieve the registers AX,BX,CX, and DX. Registers DI, SI, BP, DS, and ES are not required, so NA is specified for them.

See Also

  • SETREGS
  • INT86
  • CODE
  • PEEK
  • POKE