When using WinAPE Amstrad CPC emulator, if runned code is 0xED, 0xFF then it activates a Breakpoint and show the debugger.
I added the followiing in my z88dk project :
Code: Select all
#define crASSERT( expression ) \
if ( !( expression ) ) \
{ \
asm( "defb $ed, $ff" ); \
}
#define crBREAK( ) \
asm( "defb $ed, $ff" );