Welcome, Guest. Please login or register.

Author Topic: How to detect if an emulator is being used ?  (Read 6659 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How to detect if an emulator is being used ?
« on: March 03, 2011, 10:16:09 AM »
Quote from: itix;619173
There are certain (never used) special cases of 68k opcodes which are not working right in UAE.
Last I checked
Code: [Select]
move.l a7,-(a7)...works like on 68000 regardless on the CPU selection. So if you appeear to have a 68010+ CPU and the opcode stores the a7 value like on 68000 you can be sure that you're running under UAE.

I was reading the 68k manuals and noticed that 68000 and other CPUs varied on whether the original or predecremented a7 was stored in this case. I wasn't that surprised to learn that UAE always works like 68000 here... ;)
« Last Edit: March 03, 2011, 10:19:51 AM by Piru »