0 Members and 2 Guests are viewing this topic.
For the record, this part of the code doesn't make sense:Code: [Select]ld a, (ModelID) cp 2 ; Models 2 and up have USB. jp c, ResumeInterrupt ; Leave if we don't have the hardware (also tested with NC)This code doesn't make sense in my brain. Say the ModelID is 4. cp 2 would set the carry flag, right? So jp c would jump back for all the models with USB and try and run on those without it.For that protocol interrupt, if it wants to send you some data over the control pipe, it might not like you ignoring it. For now, I think you might be able to just stall the ports and that will prevent it from connecting at all, but it should keep the driver working.
ld a, (ModelID) cp 2 ; Models 2 and up have USB. jp c, ResumeInterrupt ; Leave if we don't have the hardware (also tested with NC)
Quote from: graphmastur on January 12, 2011, 06:58:40 pmFor the record, this part of the code doesn't make sense:Code: [Select]ld a, (ModelID) cp 2 ; Models 2 and up have USB. jp c, ResumeInterrupt ; Leave if we don't have the hardware (also tested with NC)This code doesn't make sense in my brain. Say the ModelID is 4. cp 2 would set the carry flag, right? So jp c would jump back for all the models with USB and try and run on those without it.For that protocol interrupt, if it wants to send you some data over the control pipe, it might not like you ignoring it. For now, I think you might be able to just stall the ports and that will prevent it from connecting at all, but it should keep the driver working.No, 4 minus 2 does not carry. (Technically the highest model number is 3 though, I think)
I double checked this. C is set on greater than or equal to for a CP instruction. And the model IDs are set at boot time, and are as follows:0: TI-83+1: TI-83+ SE2: TI-84+3: TI-84+ SEThis doesn't really matter though, because I will eventually change the way the interrupt detects the model. It's way too unsecure when a program can simply change a single number and completely screw up a TI-83+ (SE) or disable USB access on a TI-84+ (SE).
KOS will never have the certificate page swapped in, ever.Also, I'll make it more secure by just running the same hardware test I use to set that byte at boot-time from in the interrupt.
Yay!Really glad you figured it out I think it was something like what you did that solved it last time.graphmastur, what do you mean WikiTI is down? It's been up for me.