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


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

Re: Efficient print of binary value

Newsgroups comp.sys.apple2.programmer
Date 2018-09-05 07:23 -0700
References <pmokev$c9j$1@dont-email.me>
Message-ID <045a4a1c-c5b5-4701-b4fb-e7cd8055cd31@googlegroups.com> (permalink)
Subject Re: Efficient print of binary value
From Marco Verpelli <mverpelli@libero.it>

Show all headers | View raw


; 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

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