Code: Select all
Global deb
; ... my ASM code ...
!MOV dword [v_deb],ebx
Debug deb

Is it possible to have a direct something like
Code: Select all
Debug eax
Code: Select all
Global deb
; ... my ASM code ...
!MOV dword [v_deb],ebx
Debug deb
Code: Select all
Debug eax
Code: Select all
!MOV eax,123
Debug GetErrorRegister( #PB_OnError_EAX )
Code: Select all
!MOV eax,123
a=GetErrorRegister( #PB_OnError_EAX )
Debug a
exactly, if an error is catched, a register-snapshot is taken.mdp wrote: The problem is that alsoreturns 0Code: Select all
!MOV eax,123 a=GetErrorRegister( #PB_OnError_EAX ) Debug a
![]()
Maybe the command works only in case of error? Sorry, I'm not used to the OnError commands.
Can we have this too please?Fred wrote:About 'Debug' preserving all the registers, it's a good idea, we will add it.
Code: Select all
!mov eax, 5
!call deax
!call deax
!add eax, eax
!call deax
End
!deax:
!push eax
!mov [v_asmdebug_32b], eax
Debug asmdebug_32b
!pop eax
!ret
Code: Select all
Macro Deb_EBX
MOV dword [v_debvar],ebx
PUSH eax : PUSH ebx : PUSH ecx : PUSH edx : PUSH ebp
Debug debvar
POP ebp : POP edx : POP ecx : POP ebx : POP eax
EndMacro
;e.g.
MOV ebx,345
Deb_EBX
INC ebx
Deb_EBX
Did you forget it or just not high enough prioritized amongst all the other features?About 'Debug' preserving all the registers, it's a good idea, we will add it.
Code: Select all
Global _regout
Macro regout(reg)
!push eax
!push ecx
!push edx
!mov edx, reg
!mov [v__regout], edx
Debug _regout
!pop edx
!pop ecx
!pop eax
EndMacro
!mov eax, 464
regout(eax)
regout(eax)
!add eax, eax
!mov ebx, eax
regout(ebx)
regout(ebx)