BBC BASIC for Windows
« Variable value transfer/increment »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:57pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Variable value transfer/increment  (Read 361 times)
michael
Senior Member
ImageImageImageImage


member is offline

Avatar




PM


Posts: 335
xx Variable value transfer/increment
« Thread started on: May 10th, 2016, 05:39am »

Actually this should go faster if I can send the increased information to the start variable value.
what if I wanted to make the assembler wait until it reached 2 million?
.label -would be the label it would cycle to if less than
cmp register,register
jne label
?
Am I getting close?
Code:
      PRINT "Please wait for increment to 2 million"
      PROCassemble

      bin%=0
      REPEAT
        CALL bin2bcd
      UNTIL bin%=2000000
      PRINT "DONE"
      END
      DEF PROCassemble

      LOCAL P%, L%
      DIM P% 12, L% -1
      [OPT 10
      .bin2bcd
      mov eax,[^bin%]
      inc eax
      mov [^bin%],eax
      ret
      ]
      ENDPROC
 
« Last Edit: May 10th, 2016, 09:38am by michael » User IP Logged

I like making program generators and like reinventing the wheel
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls