0 Members and 2 Guests are viewing this topic.
:Asm(FDCB1696):ReturnThe first line tells the calculator to power off when the program exits, and the second line exits the program. (If you are in a subroutine when you run this, you should use Returnr instead of Return.)Spoiler For Spoiler: The first line actually tells the OS that the batteries are very low... Seems to work anyway
.org $8001 bit 4, (iy + 8) ret z ;this was a purposeful turn off ;do whatever you want, here's an example if you want to run an axe program ld hl, axeName rst 20h bcall(_executePrgm) ;when you are done, you have two options ret ;this will turn the calculator off bcall(_jForceCMDNoChar) ;this will turn the calculator onaxeName: .db protProgObj, "AXEPROG", 0
OFFSCRPT.8xv (appVar) gets copied to $8001 every time the calculator turns off. This catches both 2ND + ON as well as APD. So instead of going to APD, it can just display your screen saver.
QuoteOFFSCRPT.8xv (appVar) gets copied to $8001 every time the calculator turns off. This catches both 2ND + ON as well as APD. So instead of going to APD, it can just display your screen saver.My OFFSCRPT always crashs the calc. The code is copied to $8001 and executed. But every times it reaches bcall(_jForceCMDNoChar) the calculator simply doesn't react anymoreI leaved the bit 4, (iy + 8 )out because this way the bit is set always and my code is never executed