簡易判別。
.include doscall.mac
.cpu 68000
clr.l -(sp)
DOS _SUPER
lea ($e8e00d),a0
ori #$0700,sr
move.b #'W',(a0)
move.b (a0),d0
andi #.not.$0700,sr
lea (not_emu_mes,pc),a0
cmpi.b #$ff,d0
beq not_emu
lea (emu_mes,pc),a0
move.b d0,(a0)
not_emu:
pea (a0)
DOS _PRINT
DOS _EXIT
emu_mes:
.dc.b '?',13,10,0
not_emu_mes:
.dc.b 'not emu',13,10,0
.even
.end