Re: A86: Checking sign of _OP1


[Prev][Next][Index][Thread]

Re: A86: Checking sign of _OP1



In a message dated 97-10-30 19:57:06 EST, you write:

> 
>  Once I have _OP1 loaded with user input how do I check the sign. Is this
>  correct:
>  
>  ld hl,_OP1
>  bit 0,hl
    ^^^^^^^^   There's a problem there.  It should be (hl)

>  jr nz,Neg	;is it nz or z?
    ^^^^^^^^^  That's right
>  
>  Pos:
>  
>  ;code
>  
>  Neg:
>  
>  ;code
>  
>  TIA,
>  Andres Garcia
>  
>  

That works, as long as you change that one line I marked.