[Vm-dev] Immediate Characters

Bert Freudenberg bert at freudenbergs.de
Tue Jan 22 01:16:37 UTC 2019


On Fri, Jan 18, 2019 at 8:30 PM Eliot Miranda <eliot.miranda at gmail.com>
wrote:

>
> Hi Ben,
>
>
> > On Jan 18, 2019, at 4:21 PM, Ben Coman <btc at openinworld.com> wrote:
> >
> > Quick question...
> > What is the internal representation of immediate characters is?
>
> In 32-bit Spur they’re 30 bit unsigned values shifted right by 2 bits with
> a tag of 2r10.  In 64-bit Spur they’re 30 bit unsigned values shifted right
> by 3 bits with a tag of 2r010.


... and by "shifted right" Eliot means "shifted left", that is, towards
higher-order bits.

See also Clement's excellent overview:
https://clementbera.wordpress.com/2014/01/16/spurs-new-object-format/

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190121/951b96eb/attachment.html>


More information about the Vm-dev mailing list