start:
IF (startup=2)
IF !DEFINED_noprotectmsdos
; This protection takes little less than 50 bytes
defb $eb,$04 ;MS DOS protection... JMPS to MS-DOS message if Intel
ex de,hl
jp begin ;First decent instruction for Z80, if survived up to here !
defb $b4,$09 ;DOS protection... MOV AH,9 (Err msg for MS-DOS)
defb $ba
defw dosmessage ;DOS protection... MOV DX,OFFSET dosmessage
defb $cd,$21 ;DOS protection... INT 21h.
defb $cd,$20 ;DOS protection... INT 20h.
dosmessage:
defm "This program is for the Enterprise computer."
defb 13,10,'$'
begin:
ENDIF
ENDIF