Jump to content
Sign in to follow this  
BeeryMiller

Programming Instruction Issue

Recommended Posts

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

 

 

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...