At my school, we like to play games on calculators, but sometimes kids play them during class. I am trying to create an access control system so we know who has the games, and they have to get them from one central location as opposed to transferring them amongst each other. For this purpose I am modifying Cesium by MateoConLechuga.
My problem is that I am trying to get some unique information from the calculator that does not change and is unchangeable, so when the items are transferred the information is unique to the old calculator and not the new one unless setup is run again. I was thinking of using the calculator's unique ID, but I don't know how to get it using ASM on a TI 84 + CE. If anyone knows how, please comment with an example code.
After some digging into the OS, I found that the _GetSerial jump table entry exists at 000340h. I've added this to the include file on WikiTI for future reference.

In case anyone's interested, here's the code I used to test it, which converts the first 5 bytes of the serial into a hexadecimal string in Ans:

Code:
.nolist
#include "ti84pce.inc"
_GetSerial = 000340h
.list


.org userMem-2
.db tExtTok,tAsm84CeCmp
.assume ADL=1


   ld hl,10
   call _CreateTStrng
   push de
   call _OP4ToOP1
   call _GetSerial
   pop de
   inc de
   inc de
   ld hl,OP4
Loop:
   call ByteToHex
   inc hl
   djnz Loop
   jp _StoAns


ByteToHex:
   call NibbleToHex
NibbleToHex:
   xor a
   rld
   daa
   add a,$F0
   adc a,$40
   ld (de),a
   inc de
   ret
Thanks for finding that equate when I didn't have the time to dig through the disassembly Mateo so kindly provided. Smile I also like your technique for converting hex nibbles to ASCII without the need for conditional jumping on value.
KingInfinity: I'm frankly a bit skeptical that you're going to be able to enact some form of DRM scheme. Do you have details on the techniques you plan to use to restrict calculators from exchanging games?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement