Post Reply 
Emu48 detection
11-29-2023, 04:08 PM
Post: #3
RE: Emu48 detection
(11-29-2023 03:15 PM)Eric Rechlin Wrote:  1. On the 49/50 you can check the serial number. If it's bogus (something like "COYWWXXXXX") it's probably running in an emulator. You can use #10001dh LIBEVAL to get the serial information.

I previously used this method for a similar purpose (setting TOFF, but also my preferred contrast setting). Unfortunately, it stopped working when iHP48 was introduced. Trying to get the serial number using these means with that app on my iPhone causes the program to crash or lock up when I try it. Yes, I reported it to the developer many months ago, but it's never been fixed.

(11-29-2023 03:15 PM)Eric Rechlin Wrote:  2. You could check how long a test command takes to run (with TEVAL on the 49/50 or by manually calculating the time elapsed on a 48). If it's fast, it must be on an emulator. If it's slow, it's either on a real calculator or an emulator running at "real speed".

I remember trying to time the "SLOW" command (SysRPL) along these lines, but found the results varied quite a bit under different conditions. Enough so that it didn't seem feasible to use that command. There's almost certainly better commands to use, though, but I never got back to that particular experiment to come up with a solution. I'm sure there's a reliable way to do this.

Another possibility might be to use a known Saturn opcode that behaves differently on Emu48 than on real hardware -- that would potentially be much faster and also more reliable. Anyone know of a Saturn opcode that behaves differently in the Emu48 environment than on real hardware? This would be similar to how the 50g ROM determines which hardware platform it's running on.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Emu48 detection - Marco Polo - 11-29-2023, 02:16 PM
RE: Emu48 detection - Eric Rechlin - 11-29-2023, 03:15 PM
RE: Emu48 detection - DavidM - 11-29-2023 04:08 PM
RE: Emu48 detection - DavidM - 11-29-2023, 05:00 PM
RE: Emu48 detection - DavidM - 11-30-2023, 07:02 PM
RE: Emu48 detection - Marco Polo - 12-01-2023, 06:17 AM



User(s) browsing this thread: 1 Guest(s)