+9640News Posted May 3, 2019 Share Posted May 3, 2019 OK, need to figure out how to pass a status bit back to a piece of calling code from another BLWP instruction using an XOP on the Geneve. Basically, code is as follows: START LWPI >F000 ST1 BLWP @KSCAN JNE NEWCODE JMP ST1 NEWCODE Etc............. KSCAN, >F020,KSCAN0 KSCAN0 CLR @KSTAT CLR R0 XOP @KEY,0 JEQ KS2 MOVB @H04,@KSTAT MOV @KSTAT,R15 KS2 RTWP KEY DATA 5 H04 BYTE >04 EVEN My code does not seem to recognize the status bit (bit 3) is set. Is there something I am overlooking? Beery Quote Link to comment Share on other sites More sharing options...
+InsaneMultitasker Posted May 3, 2019 Share Posted May 3, 2019 If memory serves correctly, I think you want to reset/set the EQ bit, not the status bit. Something like this. HB20 BYTE >20 SZCB @HB20,R15 - clear the bit when you enter the routine SOCB @HB20,R15 - set the bit before exiting, based on condition 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.