Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Do-more Programming Examples => Topic started by: franji1 on June 01, 2016, 04:47:22 PM

Title: How to move a range of unaligned bits from MHR into C bits
Post by: franji1 on June 01, 2016, 04:47:22 PM
I got asked this question, and knew it could be done, just not sure how, but figured it out...

MOVER can move a range of unaligned bits (not on byte boundary and/or not a multiple of 8 bits).  So say you want to just move the lower 10 bits of MHR42 (MHR42:0 thru MHR42:9) and move those into a range of C bits starting at C99 (C99 thru C108).  Easy (see attached screen shot).