[Oberon] Bit manipulation in Oberon-07
skulski at pas.rochester.edu
Sat Oct 27 05:51:47 CEST 2018
> We have implemented two SYSTEM functions in the Astrobe for ARM Cortex-M
> compilers which use the ARM bitfield instructions BFI (Bitfield insert) and
> UBFX (Unsigned bitfield extract). These are very convenient to use when
> accessing arbitrary groups of bits that represent a positive integer buried
> in the middle of a 32-bit word. Here are some examples:
This is wonderful. I hope that Oberon System compiler implementers are listening!
Thank you for the example functions (snipped in this response). The students will appreciate your efficient way of coding.
More information about the Oberon