Immediate Characters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Immediate Characters

Ben Coman
 
Quick question...
What is the internal representation of immediate characters is?
Reply | Threaded
Open this post in threaded view
|

Re: Immediate Characters

Eliot Miranda-2
 
Hi Ben,


> On Jan 18, 2019, at 4:21 PM, Ben Coman <[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: Immediate Characters

Bert Freudenberg
 
On Fri, Jan 18, 2019 at 8:30 PM Eliot Miranda <[hidden email]> wrote:
 
Hi Ben,


> On Jan 18, 2019, at 4:21 PM, Ben Coman <[hidden email]> 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:

- Bert -