Possible ? Each asm code block produces errors in the IDE.
Cheers
Wrap this in a conditional define:
{$IFDEF PAS2JS} asm end; {$ENDIF}