ErrorRegister()

语法

Result = ErrorRegister(Register)
概要
Returns the content of the specified CPU register at the time of the error. This command only returns a meaningful value if there was an error handled by OnErrorCall() or OnErrorGoto().

参数

Register The available register constants depend on the CPU type for which the program is compiled. The following values are available:

x86:
  #PB_OnError_EAX
  #PB_OnError_EBX
  #PB_OnError_ECX
  #PB_OnError_EDX
  #PB_OnError_EBP
  #PB_OnError_ESI
  #PB_OnError_EDI
  #PB_OnError_ESP
  #PB_OnError_Flags
x64:
  #PB_OnError_RAX
  #PB_OnError_RCX
  #PB_OnError_RDX
  #PB_OnError_RBX
  #PB_OnError_RSP
  #PB_OnError_RBP
  #PB_OnError_RSI
  #PB_OnError_RDI
  #PB_OnError_R8
  #PB_OnError_R9
  ...
  #PB_OnError_R15
  #PB_OnError_Flags
PowerPC:
  #PB_OnError_r0
  #PB_OnError_r1
  #PB_OnError_r2 
  ...
  #PB_OnError_r31
  #PB_OnError_cr
  #PB_OnError_xer
  #PB_OnError_lr
  #PB_OnError_ctx

返回值

The content of the specified CPU register at the time of the error.

已支持操作系统

所有

<- ErrorMessage() - OnError Index - ErrorTargetAddress() ->