Hi. I was just discussing it on the chat, but its to complicated to im making a topic.
Basically what i wanted to be done is a program that:
1. When started once i loads an ISR and a program to saferam.
2. In ISR there is a key checkign function that when triggered turns on a program. Since the program requires user interaction it cannot be inside an interrupt because this would lead to an infinite loop. Thats why i thought i could just simply PUSH PC, then LDIR the program to 9D95 and JP there.
It came out that there is a better way to check for a key- A hook. From what i understand its running every time a key is pressed( But what i dont know is where and how to put it ( Im guessing i have to BCALL 4F66 and then put my key routine at 9B84).
It also came out that there is a better and a cleaner way to start a program. I couldn't find any info on the BCALL but its called _RunProg and accepts input in OP1. But to do this i would have to first declare my program in VAT.
Can anybody check if everything im saying is correct, and correct me if im wrong? Ow, and if you can, please don't give me allready written code, i want to do this myself
Basically what i wanted to be done is a program that:
1. When started once i loads an ISR and a program to saferam.
2. In ISR there is a key checkign function that when triggered turns on a program. Since the program requires user interaction it cannot be inside an interrupt because this would lead to an infinite loop. Thats why i thought i could just simply PUSH PC, then LDIR the program to 9D95 and JP there.
It came out that there is a better way to check for a key- A hook. From what i understand its running every time a key is pressed( But what i dont know is where and how to put it ( Im guessing i have to BCALL 4F66 and then put my key routine at 9B84).
It also came out that there is a better and a cleaner way to start a program. I couldn't find any info on the BCALL but its called _RunProg and accepts input in OP1. But to do this i would have to first declare my program in VAT.
Can anybody check if everything im saying is correct, and correct me if im wrong? Ow, and if you can, please don't give me allready written code, i want to do this myself