Shop OBEX P1 Docs P2 Docs Learn Events
Using dirb and outb registers in PropBasic — Parallax Forums

Using dirb and outb registers in PropBasic

jnoguesjnogues Posts: 25
edited 2010-04-11 06:44 in Propeller 1
Hi All,

I use dirb and outb in spin like 1bit memory for do
boolean relations, for example:

"outb(1):=dirb(0) & dirb(1)"

Could I do the same in PropBasic? How?

Regards,

Jaume Nogues
Barcelona
Spain

Post Edited (jnogues) : 4/10/2010 7:32:51 PM GMT

Comments

  • BeanBean Posts: 8,129
    edited 2010-04-11 03:08
    Nope sorry that is not possible with PropBasic.

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Use BASIC on the Propeller with the speed of assembly language.
    PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

    March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There are two rules in life:
    · 1) Never divulge all information
  • Mike GreenMike Green Posts: 23,101
    edited 2010-04-11 03:32
    Since you can include single PASM instructions in PropBasic code, you could use those special locations, but there's no easy way to use individual bits easily. It's not impossible to do something like what you're asking for, but it's not easy and it takes a lot of instructions to do it ... not practical.
  • jnoguesjnogues Posts: 25
    edited 2010-04-11 06:44
    OK! Thanks for your help!

    Jaume
Sign In or Register to comment.