Searching \ for 'BNZ instruction' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/index.htm?key=bnz+instruction
Search entire site for: 'BNZ instruction'.

Truncated match.
PICList Thread
'BNZ instruction'
1998\06\15@152023 by MattA

flavicon
face
Does anyone know of this instruction?

1998\06\15@160930 by Michael S. Hagberg

flavicon
face
sounds like parallax branch not zero instruction. it would expand into
microchip two instructions

btfss    status,z
goto    label

michael

-----Original Message-----
From: Matthew J. Ancona <spam_OUTMattATakeThisOuTspamEDL.com>
To: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU <PICLISTspamKILLspamMITVMA.MIT.EDU>
Date: Monday, June 15, 1998 2:26 PM
Subject: BNZ instruction


>Does anyone know of this instruction?
>

1998\06\15@222553 by Bob Blick

face
flavicon
face
Hi Matthew,

It is an MPASM instruction(directive?)
       BNZ     k       Branch on No Zero
that translates to:
       BTFSS   3,2
       GOTO    k

-Bob

On Mon, 15 Jun 1998, Matthew J. Ancona wrote:

> Does anyone know of this instruction?
>

1998\06\15@234005 by Harold Hallikainen

picon face
On Mon, 15 Jun 1998 14:42:13 -0500 "Michael S. Hagberg" <.....mhagbergKILLspamspam.....I1.NET>
writes:
>sounds like parallax branch not zero instruction. it would expand into
>microchip two instructions
>
>btfss    status,z
>goto    label
>


       I believe it's also available on MPLAB.  There are a bunch of
similar instructions so you don't have to deal with convoluted skips or
remember which bit of which register does what.  Someone earlier posted a
list of these codes and I have them stuck to the wall above my computer
at work.  I use them a lot.  Makes the code more readable, in my opinion.


Harold


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

1998\06\15@234443 by Jorge Ferreira

flavicon
face
At 12:32 98.06.15 -0400, you wrote:
>Does anyone know of this instruction?
>

Yes, I've seen it at the MPASM manual.
Its a pseudo instruction that (like a macro) expands like this:

bnz     k       =>              btfss   3,2
                               goto    k

[] Jorge
===============================================================
cumprimentos / best regards
     Jorge Ferreira          //EraseMEjorgegfspam_OUTspamTakeThisOuTmail.telepac.pt
------ Make sure brain is in gear before engaging mouth -------
===============================================================

1998\06\16@073120 by Jim robertson

flavicon
face
At 14:42 15/06/98 -0500, you wrote:
>sounds like parallax branch not zero instruction. it would expand into
>microchip two instructions
>
>btfss    status,z
>goto    label
>
>michael

In the early days microchip included a range of "pseudo instructions" in
their assembler.  I beleive this was one of them and worked as described
above.

Jim

{Quote hidden}

1998\06\16@073134 by Caisson

flavicon
face
> Van: Harold Hallikainen <RemoveMEharoldhallikainenTakeThisOuTspamJUNO.COM>
> Aan: spamBeGonePICLISTspamBeGonespamMITVMA.MIT.EDU
> Onderwerp: Re: BNZ instruction
> Datum: dinsdag 16 juni 1998 1:53
>
> On Mon, 15 Jun 1998 14:42:13 -0500 "Michael S. Hagberg" <TakeThisOuTmhagbergEraseMEspamspam_OUTI1.NET>
> writes:
> >sounds like parallax branch not zero instruction. it would expand into
> >microchip two instructions
> >
> >btfss    status,z
> >goto    label
>
>         I believe it's also available on MPLAB.  There are a bunch of
> similar instructions so you don't have to deal with convoluted skips or
> remember which bit of which register does what.  Someone earlier posted a
> list of these codes and I have them stuck to the wall above my computer
> at work.  I use them a lot.  Makes the code more readable, in my opinion.

Hey Harrold, Try this one :

 BTFSS {anything}
 BNZ {Anything}

Happy debugging ! ;-)


You could write
 BNZ {anywhere}
as
 BTFSC STATUS,Z
 GOTO {anywhere}

O.k. I'm not happy about the fact that the Z can be used _anywhere_ (not
coupled as a Bit-variable at a specific File-register I mean), but it's
very readable/debuggable ....


Greetz,
 Rudy Wieser

1998\06\17@110732 by Harold Hallikainen

picon face
On Tue, 16 Jun 1998 09:05:35 +0200 Caisson <RemoveMEcaissonspamTakeThisOuTTELEBYTE.NL> writes:

>Hey Harrold, Try this one :
>
>  BTFSS {anything}
>  BNZ {Anything}
>
>Happy debugging ! ;-)



       Yeah... I know that's asking for trouble!  In single stepping, we
have to watch how many times we hit the F7 key.  It'll set on the BNZ for
two steps, giving us a hint of the problem.


Harold



_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

1998\06\19@093910 by Dr. Imre Bartfai

flavicon
face
Yes.
It is an extended so-called built-in macro instruction used by both
Microchip and Parallax assembler. I like it. Compiles following manner:

BTFSS   STATUS,Z
GOTO    label

There is a lot of another stuff here (BZ, BC, BNC). Of course, it is
FATAL to prepend a BTFSS, BTFSC, DECFSZ, INCFSZ, because then it effects
only the first half of the showed statement.

I hope I helped.

Imre


On Mon, 15 Jun 1998, Matthew J. Ancona wrote:

> Does anyone know of this instruction?
>
>

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...