Shop OBEX P1 Docs P2 Docs Learn Events
late prop2 RDBYTE idea — Parallax Forums

late prop2 RDBYTE idea

Bill HenningBill Henning Posts: 6,445
edited 2009-06-23 22:13 in Propeller 1
It would be useful sometimes for RDBYTE to not zero extend - then it would be possible for RDBYTE to write directly into the source field of move instructions...

I know, should have thought of it earlier.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
my 6.250MHz custom Crystals now available - run your Propeller at 100MHz!
Las - Large model assembler for the Propeller (alpha version released)
Largos - a feature full nano operating system for the Propeller
www.mikronauts.com - a new blog about microcontrollers

Comments

  • heaterheater Posts: 3,370
    edited 2009-06-23 20:26
    Sometimes yes. But that zero extend saves a lot of masking sometimes when dealing with bytes. On the other hand I was wishing for a sign extended RDBYTE in my emulator codes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    For me, the past is not over yet.
  • SapiehaSapieha Posts: 2,964
    edited 2009-06-23 20:42
    Hi Bill Henning.

    My proposo to Chip was to have 1 instructions that can combine 4 bytes from one register to one Long in another.
    Else 2 Word to one Long. Without destroing other Bytes/Words in that Long
    And one instruction that can take one of 4 bytes from register Long and place in another register.
    Eles 1 Long to one of 2 words

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-06-23 22:00
    Yes, those would be very handy... I proposed something similar to Chip too.
    Sapieha said...
    Hi Bill Henning.

    My proposo to Chip was to have 1 instructions that can combine 4 bytes from one register to one Long in another.
    Else 2 Word to one Long. Without destroing other Bytes/Words in that Long
    And one instruction that can take one of 4 bytes from register Long and place in another register.
    Eles 1 Long to one of 2 words
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    my 6.250MHz custom Crystals now available - run your Propeller at 100MHz!
    Las - Large model assembler for the Propeller (alpha version released)
    Largos - a feature full nano operating system for the Propeller
    www.mikronauts.com - a new blog about microcontrollers
  • SapiehaSapieha Posts: 2,964
    edited 2009-06-23 22:04
    Hi Bill Henning.

    But I have one more idea to that instructions.

    And it is posiblity in them to reverse Bit order on that combined Bytes/Words at same time.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-06-23 22:13
    Nice!
    Sapieha said...
    Hi Bill Henning.

    But I have one more idea to that instructions.

    And it is posiblity in them to reverse Bit order on that combined Bytes/Words at same time.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    my 6.250MHz custom Crystals now available - run your Propeller at 100MHz!
    Las - Large model assembler for the Propeller (alpha version released)
    Largos - a feature full nano operating system for the Propeller
    www.mikronauts.com - a new blog about microcontrollers
Sign In or Register to comment.