Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Deep Toaster on July 11, 2014, 08:48:30 pm

Title: Getting calculator ID
Post by: Deep Toaster on July 11, 2014, 08:48:30 pm
Is there a quick way to get a calculator's ID?

What I'm trying to achieve is a levelpack system where a user's progress and scores while playing a levelpack are stored in an appvar along with the levelpack tilemap and the current calculator ID. If a user transfers a level pack to a different calculator, the game would notice that the calculator ID changed and wipe the progress/scores immediately, so it's a clean game for everyone.
Title: Re: Getting calculator ID
Post by: Runer112 on July 11, 2014, 09:00:18 pm
I swear I've answered this question in an old thread... but I can't find it, so I'll re-answer it. You want B_CALL(_GetCalcSerial) (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:807E), which puts the first five bytes of the calculator ID (should be unique enough) in OP4.
Title: Re: Getting calculator ID
Post by: Deep Toaster on July 11, 2014, 09:48:32 pm
Thanks!

Yeah, I couldn't find any posts about it either—was it on the previous forum iteration?