Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #4744

Re: Efficient print of binary value

From Jan Poulsen <jpo@tiggr.dk>
Newsgroups comp.sys.apple2.programmer
Subject Re: Efficient print of binary value
Date 2018-09-05 17:05 +0200
Organization A noiseless patient Spider
Message-ID <pmoras$q2u$1@dont-email.me> (permalink)
References <pmokev$c9j$1@dont-email.me> <045a4a1c-c5b5-4701-b4fb-e7cd8055cd31@googlegroups.com>

Show all headers | View raw


On 05/09/2018 16.23, Marco Verpelli wrote:
> ; Merlin
> COUT     EQU   $FDED
> 
>           ORG   $2000
> 
>           LDA   #%10000000
>           STA   MASK
> 
> LAB1     LDA   MASK
>           AND   VALUE
>           BEQ   LAB2
>           LDA   #"1
>           HEX   2C
> LAB2     LDA   #"0
>           JSR   COUT
>           LSR   MASK
>           BNE   LAB1
> 
>           RTS
> 
> VALUE    DS    1
> MASK     DS    1
> 
> waiting qkumba for a half-length version :)
> 
> Marco
> 

Perfect.  This is what I was aiming for, I just couldn't remember the 
BIT (HEX 2C) trick.  Thanks! :-)

-- 
--
Jan Poulsen

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Efficient print of binary value Jan Poulsen <jpo@tiggr.dk> - 2018-09-05 15:07 +0200
  Re: Efficient print of binary value Marco Verpelli <mverpelli@libero.it> - 2018-09-05 07:23 -0700
    Re: Efficient print of binary value Jan Poulsen <jpo@tiggr.dk> - 2018-09-05 17:05 +0200
      Re: Efficient print of binary value Michael J. Mahon <mjmahon@aol.com> - 2018-09-05 11:01 -0500
        Re: Efficient print of binary value qkumba <peter.ferrie@gmail.com> - 2018-09-05 11:13 -0700
          Re: Efficient print of binary value Michael J. Mahon <mjmahon@aol.com> - 2018-09-05 14:18 -0500
          Re: Efficient print of binary value Marco Verpelli <mverpelli@libero.it> - 2018-09-05 12:32 -0700
            Re: Efficient print of binary value Michael J. Mahon <mjmahon@aol.com> - 2018-09-05 22:21 -0500
          Re: Efficient print of binary value awanderin <awanderin@gmail.com> - 2018-09-05 23:53 -0600
            Re: Efficient print of binary value Jan Poulsen <jpo@tiggr.dk> - 2018-09-06 13:04 +0200
            Re: Efficient print of binary value Michael Barry <barrym95838@yahoo.com> - 2018-09-06 23:54 -0700
              Re: Efficient print of binary value awanderin <awanderin@gmail.com> - 2018-09-07 09:01 -0600

csiph-web