🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

21 total messages Started by John Savard Thu, 12 Nov 2026 21:54
Concertina IV Again?
#666
Author: John Savard
Date: Thu, 12 Nov 2026 21:54
29 lines
2596 bytes
Concertina II, in its present form, finally had me satisfied with it.
But it was based on block structure, which many people here, whose
opinions I respect, say is a bad thing.
Since to finally be satisfied even _with_ block structure, I had
needed to improve my skills at squeezing things into the instruction
set, I was willing to hope that I could manage without block
structure.
I arrived at Concertina III. Since I had only 1/4 of the opcode space
left, after the 32-bit instructions, I felt that 16-bit short
instructions, all of which must begin with 11, would be useless, so I
would have to go with paired short instructions instead. Those I had
used before with success.
However, I wanted to avoid the version of the register specification
where the destination register could be any of the 32 registers, but
the source register could only be one of the eight registers in the
same group of eight as the destination registers.
This had made sense for me for code that assisted efficient pipelining
by interweaving four independent threads. But it had been strongly
criticized.
Having 15 bits free per instruction instead of l7 bits - and needing
opcode space for instructions longer than 32 bits - I had to really
squeeze the short instructions.

The technique I chose could be taken further, though. Maybe it was
possible to get useful short instructions even with only 14 bits
available.
In this case, only the start of the instruction would have a length
prefix, it would be a conventional variable-length instruction set
like that of the System/360 or the 680x0 and so on.
Re: Concertina IV Again?
#671
Author: MitchAlsup
Date: Fri, 13 Nov 2026 01:22
41 lines
2686 bytes
quadibloc@invalid.com (John Savard) posted:

> Concertina II, in its present form, finally had me satisfied with it.
> But it was based on block structure, which many people here, whose
> opinions I respect, say is a bad thing.

We argue that it is "at best" different and urge caution.
We further argue that similar ISA from the past had "problems".

> Since to finally be satisfied even _with_ block structure, I had
> needed to improve my skills at squeezing things into the instruction
> set, I was willing to hope that I could manage without block
> structure.

> I arrived at Concertina III. Since I had only 1/4 of the opcode space
> left, after the 32-bit instructions, I felt that 16-bit short
> instructions, all of which must begin with 11, would be useless, so I
> would have to go with paired short instructions instead. Those I had
> used before with success.
> However, I wanted to avoid the version of the register specification
> where the destination register could be any of the 32 registers, but
> the source register could only be one of the eight registers in the
> same group of eight as the destination registers.
> This had made sense for me for code that assisted efficient pipelining
> by interweaving four independent threads. But it had been strongly
> criticized.

Compilers hat that sort of thing.

> Having 15 bits free per instruction instead of l7 bits - and needing
> opcode space for instructions longer than 32 bits - I had to really
> squeeze the short instructions.

s/squeeze/eliminate/
 
> The technique I chose could be taken further, though. Maybe it was
> possible to get useful short instructions even with only 14 bits
> available.
> In this case, only the start of the instruction would have a length
> prefix, it would be a conventional variable-length instruction set
> like that of the System/360 or the 680x0 and so on.
Re: Concertina IV Again?
#678
Author: John Savard
Date: Fri, 13 Nov 2026 04:45
51 lines
2955 bytes
I stopped partway through in the initial post of this thread; I am
finishing what I intended to write now.

What I thought of for allowing 16-bit instructions was this:

110
(op code) 3 bits
(destination register) 5 bits
(source register) 5 bits

111
(op code) 7 bits
(destination register) 3 bits
(source register) 3 bits

The first format would serve only the double-precision floating-point
type. Thus, it shaves off one bit, compared to the Concertina III,
which also allowed the Medium floating-point type to use all the
registers.

The second format serves all types. In the case of the repeated
occurrence of the double-precision floating-point type, the source
register would be one of the first eight registers in the 128-register
extended register bank.

11111 would not be used, and would begin all instructions longer than
32 bits.

For Concertina III, I thought of also including the more useful 17-bit
short instructions by embedding four of them in an 80-bit instruction.
Branches to the four bytes of the first 32 bits of the instruction
would be the way to allow branches to any of the four embedded
instructions, because in this way, the first 32 bits would be fetched
and decoded.

This would not work for Concertina IV. The basic unit at which the
decoding of an instruction may begin is only 16 bits. But a 48-bit
instruction, in which two 17-bit short instructions are placed, would
still use only 24 bits for each instruction, yielding a savings of
space.

Branching to the second byte of the first two bytes of an instruction
of this type would indicate that execution is to continue with the
second embedded instruction.

This, now, is my vision of an ISA which offers what RISC
architectures, like the PowerPC, offered while at the same time
offering much of what older architectures, like 680x0 and System/360
offered.

John Savard
Re: Concertina IV Again?
#783
Author: John Savard
Date: Tue, 17 Nov 2026 03:10
110 lines
5776 bytes
On Fri, 13 Nov 2026 04:45:35 GMT, quadibloc@invalid.com (John Savard)
wrote:

>What I thought of for allowing 16-bit instructions was this:
>
>110
>(op code) 3 bits
>(destination register) 5 bits
>(source register) 5 bits
>
>111
>(op code) 7 bits
>(destination register) 3 bits
>(source register) 3 bits

At this point, it seems like I've finally achieved the Concertina II
dream - an ISA that combines the best of typical RISC architectures
with the best of typical CISC architectures like the 680x0.

CISC architectures, of course, had memory-to-register operate
instructions. This doesn't; having banks of 32 registers, instead of
eight or sixteen, they wouldn't fit. But it did fit in base-index
addressing for the load-store instructions.

Accepting plain variable-length instructions like CISC constrained
opcode space. But finally I managed to include 16-bit instructions
that are "sort of" useful.

There's the first reason for my hesitancy. If they're not _really_
useful, then there's no reason for allocating 1/4 of the possible
opcode space to them.

Of course, though, the 680x0 had register banks of eight registers. So
the 16-bit instructions, with all the basic operations on all the
major types, for only eight of the 32 registers in a bank are...
equivalent. And for the most important data type, double precision
floating point, all 32 registers are available. So is there really a
cause for complaint?

The 32-bit instructions access all 32 registers. The register banks
have 32 registers in them so as to permit the code sequence to do
several things at once, with intervening instructions between
instructions that are dependent on each other. This lets a pipeline
work faster even in the absence of high-overhead measures such as
out-of-order execution.

So the 16-bit instructions have to work with that. That's why, for a
long time, my short instructions worked with two registers chosen
under the constraint that one register could be any of the 32 possible
registers, but the other had to be in the same group of eight
registers. That fit with the model of what the processor was _for_.

Think of it as a register window that can change for each instruction
without extra overhead.

That works for paired instructions in a 32-bit word, but independent
16-bit instructions have one less bit available, if 1/4 of the opcode
space is what is available for them.

Other alternatives are possible.

11
(op code) 7 bits
(destination register) 2 bits
(source register) 5 bits

One could use only registers 0 through 3 as destination registers, but
all 32 registers as the source register. This is reminiscent of early
computer architectures with only an accumulator, or an A and B
accumulator, and a small memory.

Multiple accumulators allow several independent calculations to
proceed at once, but having just an accumulator means extra
instructions to store stuff from the accumulator - and when there's an
extra 16-bit instruction, it's faster to just use one 32-bit
instruction instead of two 16-bit instructions.

If the viability of the architecture depends on this one design
decision, and there's no single obvious best choice... then what
immediately suggests itself is making the choice in effect depend on
settable mode bits.

If the instruction set is alterable, however, that is known to be a
serious security hole. (At least the alterable part of the instruction
set, the short instructions, doesn't include any branch instructions!)

Faced with this conundrum, I've come up with a solution, but the
solution is so silly and weird that it makes me seriously reconsider
the value of continuing with Concertina IV. Basically, since I can't
seem to do without Concertina II's block headers to expand the opcode
space...

Use a technique to fix the security hole. Branches, including
subroutine jumps, can only be made to a marker NOP.

In a CISC instruction set with variable-length instructions, this
isn't perfect, since an address displacement or an immediate value
could match the bit pattern of the marker NOP.

Except instead of having a true NOP, include within it a few bits that
set the instruction format. Therefore, it's never possible to jump to
code without setting the correct instruction format that is embedded
in the code itself (except for the imperfection noted above).

While this is a way to meet _my_ objectives, it is clearly so strange
and unusual as to eliminate any chance of general acceptance of the
ISA. Thus, I need to head back to the proverbial drawing board, it
seems, to find another solution.

John Savard
Re: Concertina IV Again?
#784
Author: John Savard
Date: Tue, 17 Nov 2026 04:01
58 lines
3548 bytes
On Fri, 13 Nov 2026 01:22:50 GMT, MitchAlsup
<user5857@newsgrouper.org.invalid> wrote:
>quadibloc@invalid.com (John Savard) posted:

>> However, I wanted to avoid the version of the register specification
>> where the destination register could be any of the 32 registers, but
>> the source register could only be one of the eight registers in the
>> same group of eight as the destination registers.
>> This had made sense for me for code that assisted efficient pipelining
>> by interweaving four independent threads. But it had been strongly
>> criticized.

>Compilers hat that sort of thing.

That may be.

I suppose one could think of it as the use of an established technique
- register windows - but where the window is moved without additional
overhead in each instruction that uses it.

Why did I like this technique so much?

One alternative would be to use a complete register specification, but
only for a limited set of types or operations.

This makes an _assumption_ about what the user's code is doing that
could be wrong.

Another alternative would be for the source register to be any of the
32 registers, but use a limited set of destination registers.

This means extra instructions to store values from the destination
registers, like in old accumulator-based architectures.

But the technique of specifying one of four sets of eight registers,
and making both the source and destination registers belong to the
same set of eight registers... only assumes something we already know
to be true.

Given that the architecture is RISC-like in having register banks with
32 registers in them... why do they have so many registers? It would
be easy to specify a conventional CISC ISA with eight or perhaps
sixteen registers. What is the benefit of having 32 registers?

Everyone (well, everyone in this newsgroup) knows that! It's so that
there are enough registers so that more than one calculation can be
taking place concurrently, so that instructions don't have to
immediately follow the preceding instructions that they depend upon!

This is to reduce the impact of pipeline stalls, assuming a pipelined
architecture that may not provide out-of-order execution.

So unlike the other alternatives, this crazy scheme of mine doesn't
impose any additional assumptions. It fits right in to what we already
know the ISA is going to be used for, because of its basic
characteristics.

John Savard
Re: Concertina IV Again?
#786
Author: Thomas Koenig
Date: Tue, 17 Nov 2026 07:31
29 lines
2343 bytes
John Savard <quadibloc@invalid.com> schrieb:
> On Fri, 13 Nov 2026 01:22:50 GMT, MitchAlsup
><user5857@newsgrouper.org.invalid> wrote:
>>quadibloc@invalid.com (John Savard) posted:
>
>>> However, I wanted to avoid the version of the register specification
>>> where the destination register could be any of the 32 registers, but
>>> the source register could only be one of the eight registers in the
>>> same group of eight as the destination registers.
>>> This had made sense for me for code that assisted efficient pipelining
>>> by interweaving four independent threads. But it had been strongly
>>> criticized.
>
>>Compilers hat that sort of thing.
>
> That may be.

Well, it's possible.  In gcc, for example, you can declare register
classes which are available for certain operations.  This is how
things like the 68000's address and data registers are handled.

But it is rarely a good idea because it increases pressure on the
register allocator, and can lead to a lot of shuffling of values
back and forth.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Concertina IV Again?
#790
Author: John Savard
Date: Tue, 17 Nov 2026 15:56
103 lines
5658 bytes
On Tue, 17 Nov 2026 07:31:02 -0000 (UTC), Thomas Koenig
<tkoenig@netcologne.de> wrote:

>Well, it's possible.  In gcc, for example, you can declare register
>classes which are available for certain operations.  This is how
>things like the 68000's address and data registers are handled.

Of course, I do that _too_. Although there are 32 integer registers
and 32 floating registers, only registers 1 to 7 may be index
registers, and only registers 25 to 31 may be the primary (associated
with 16-bit displacements) base registers.

>But it is rarely a good idea because it increases pressure on the
>register allocator, and can lead to a lot of shuffling of values
>back and forth.

But making the short instructions work in the way I've described - a
two-bit register window selector, followed by two three-bit register
specifications - doesn't really threaten to have that consequence. If
there's a danger of needing to add an extra instruction to the code...
use 32-bit operate instructions instead of the short ones.

In the case of dividing the 32 integer registers into four groups of
eight, and assigning one to base registers for 16-bit displacements,
another for base registers for 12-bit displacements, and another one
yet to base registers for 20-bit displacements... I also see no
problem. Normal programs only use a few general registers as base
registers, so specifying they have to take up space in these registers
rather than those should cause no problems.

But this line of thinking has led me to see a potentially fatal
problem with the Concertina II paradigm after all!

Possibly having only 7 potential index registers, instead of, say, 15,
does make the Concertina II architecture inferior! Maybe one has to
have the versatility of juggling many arrays at once!

So if FORTRAN for the 7090 only allowed three-dimensional arrays,
FORTRAN for the 7094 allowed seven-dimensional arrays, and only with
FORTRAN for the IBM 360 were programmers finally content when they
were allowed fifteen-dimensional arrays (which presumably turned the
360, at least for integers, into an accumulator machine, having only
general register zero left)... then this is a serious issue.

Why is this serious?

I could easily decide that 12-bit displacements and 20-bit
displacements, as they go in opposite directions from the norm of
16-bit displacements, could just share the same eight-register
subdivision for their seven base registers.

But if I make the index register field in a normal memory-reference
instruction four bits long... and I can't make the memory 33 bits
wide... I have to shorten something.

And there was a long, agonizing period during Concertina II
development in which I tried one different way after another to reduce
the opcode space claimed by load/store memory-reference instructions
from 3/4 of the total... and every one was so utterly unsatisfying
that I finally realized that I had no choice but to give up.

If people only needed up to 12-dimensional arrays in practice, then
the four floating-point registers and the Data General Nova show that
four registers is enough to escape the limitations of being
accumulator-oriented, so the System/360 would survive.

My least painful scheme of making room was to reduce the number of
index registers by one, so that all seven base registers were
available for isolated variables, but only three base registers were
available for indexed addressing.

I see a way to improve on that. But it's also painful, and elaborate,
and strange. And, likely, unnecessary. I may be entirely mistaken in
thinking that seven index registers is not enough.

(op code) 5 bits
(destination register) 5 bits
0
(index register) 2 bits
(base register) 3 bits
(displacement) 16 bits

(op code) 5 bits
(destination register) 5 bits
1
(index register) 3 bits
(base register) 2 bits
(displacement) 16 bits

All seven base registers from 25 to 31 may be used with scalar
variables, or with index registers 1 through 3.

Only base registers from 29 to 31 may be used with index registers 7
through 15.

So arrays aren't _totally_ limited to the memory pointed to by three
of the base registers, but only three base registers are available for
memory containing... the more complicated arrays!

The total number of index registers plummets from 15 to 11, and is 11
really enough of a gain over 7 to make such complication worthwhile?

John Savard
Re: Concertina IV Again?
#792
Author: John Savard
Date: Tue, 17 Nov 2026 16:39
28 lines
1983 bytes
I thought that there was no alternative but to go to 15-bit
displacements. But, yet, there is another possibility.

(op code) 5 bits
(destination register) 5 bits
00
(index register) 1 bit
(base register) 3 bits
(displacement) 16 bits

and

(op code) 5 bits
(destination register) 5 bits
(index register) 4 bits
(base register) 2 bits
(displacement) 16 bits

If only integer register 1 can be the index register for all the base
registers, then for base registers 29, 30, and 31 one can have integer
registers 4 through 15 as index registers. So now the number of
possible index registers is reduced from 15 to one more than twelve,
making the number adequate.

But this strongly relegates four of the base registers to second-class
status.

John Savard
Re: Concertina IV Again?
#796
Author: John Savard
Date: Tue, 17 Nov 2026 18:51
69 lines
3344 bytes
On Tue, 17 Nov 2026 16:39:20 GMT, quadibloc@invalid.com (John Savard)
wrote:

>I thought that there was no alternative but to go to 15-bit
>displacements. But, yet, there is another possibility.
>
>(op code) 5 bits
>(destination register) 5 bits
>00
>(index register) 1 bit
>(base register) 3 bits
>(displacement) 16 bits
>
>and
>
>(op code) 5 bits
>(destination register) 5 bits
>(index register) 4 bits
>(base register) 2 bits
>(displacement) 16 bits
>
>If only integer register 1 can be the index register for all the base
>registers, then for base registers 29, 30, and 31 one can have integer
>registers 4 through 15 as index registers. So now the number of
>possible index registers is reduced from 15 to one more than twelve,
>making the number adequate.
>
>But this strongly relegates four of the base registers to second-class
>status.

I've come up with another alternative.

(op code) 5 bits
(destination reg) 5 bits
(index reg) 2 bits
0
(base reg) 3 bits
(displacement) 16 bits

(op code) 7 bits
(destination reg) 5 bits
1
(index reg) 4 bits
(base reg) 3 bits
(displacement) 12 bits

This takes the new obstacle as a challenge, and smashes through it to
Victory!

I keep all seven base registers all of the time.

But now, with 16-bit displacements, I make do with three index
registers.

But with 12-bit displacements, I don't just get fifteen index
registers, I also get memory-to-register operate instructions, not
just load/store instructions. So I have full parity in this respect
with the System/360, instead of giving up something!

(Not quite full parity, though; I still give up the ability to change
the condition codes with these instructions.)

Since three base registers seem to be more tolerable than three index
registers, the possibility of going to a messier instruction format
might be considered - as 16-bit displacements are still very important
to serve well. However, I suspect that the need for more than even
three index registers is sufficiently rare that this could work out.

John Savard
Re: Concertina IV Again?
#799
Author: MitchAlsup
Date: Tue, 17 Nov 2026 20:55
31 lines
2261 bytes
quadibloc@invalid.com (John Savard) posted:

> On Tue, 17 Nov 2026 16:39:20 GMT, quadibloc@invalid.com (John Savard)
> wrote:
---------------------------
> I keep all seven base registers all of the time.
> 
> But now, with 16-bit displacements, I make do with three index
> registers.
> 
> But with 12-bit displacements, I don't just get fifteen index
> registers, I also get memory-to-register operate instructions, not
> just load/store instructions. So I have full parity in this respect
> with the System/360, instead of giving up something!
> 
> (Not quite full parity, though; I still give up the ability to change
> the condition codes with these instructions.)
> 
> Since three base registers seem to be more tolerable than three index
> registers,

My bet is that you end up wanting more pointers (base registers) than
index registers--simply because modern code points at a lot of things
but indexes few.

> the possibility of going to a messier instruction format
> might be considered - as 16-bit displacements are still very important
> to serve well. However, I suspect that the need for more than even
> three index registers is sufficiently rare that this could work out.
> 
> John Savard
Re: Concertina IV Again?
#801
Author: John Savard
Date: Tue, 17 Nov 2026 23:29
24 lines
2334 bytes
On Tue, 17 Nov 2026 20:55:29 GMT, MitchAlsup
<user5857@newsgrouper.org.invalid> wrote:

>My bet is that you end up wanting more pointers (base registers) than
>index registers--simply because modern code points at a lot of things
>but indexes few.

That's a good point. And, indeed, if I have a pointer, to use it I
would store it in a base register.

Presumably, I would store it in a base register with a 12-bit
displacement, since the displacement is just going to be zero anyways.

Except that I found room, along with relative addressing and Array
Mode addressing, for register indirect addressing. So I can already
use not only all 32 regular integer registers, but all 128 registers
in the extended integer register bank, as pointers.

Pointers being taken care of, I can worry about more index
registers... _if_ there's any need for them. I'm not yet at all sure
my bright idea for getting almost sixteen index registers is really
worth considering seriously.

John Savard
Re: Concertina IV Again?
#803
Author: John Savard
Date: Wed, 18 Nov 2026 03:23
15 lines
2020 bytes
On Tue, 17 Nov 2026 23:29:56 GMT, quadibloc@invalid.com (John Savard)
wrote:

>Except that I found room, along with relative addressing and Array
>Mode addressing, for register indirect addressing. So I can already
>use not only all 32 regular integer registers, but all 128 registers
>in the extended integer register bank, as pointers.

And when I recently modified Array Mode addressing to improve it, by
not always relying on an indirect memory address... what I did was
simply add register indirect addressing to the available addressing
modes a second time. I have now corrected this error for Concertina
II.

John Savard
Re: Concertina IV Again?
#805
Author: MitchAlsup
Date: Wed, 18 Nov 2026 21:42
21 lines
1949 bytes
quadibloc@invalid.com (John Savard) posted:

> On Tue, 17 Nov 2026 23:29:56 GMT, quadibloc@invalid.com (John Savard)
> wrote:
> 
> >Except that I found room, along with relative addressing and Array
> >Mode addressing, for register indirect addressing. So I can already
> >use not only all 32 regular integer registers, but all 128 registers
> >in the extended integer register bank, as pointers.
> 
> And when I recently modified Array Mode addressing to improve it, by
> not always relying on an indirect memory address... what I did was
> simply add register indirect addressing to the available addressing
> modes a second time. I have now corrected this error for Concertina
> II.

Corrected by leaving out or leaving in?
Concertina II or IV or both ??

> 
> John Savard
Re: Concertina IV Again?
#808
Author: Thomas Koenig
Date: Thu, 19 Nov 2026 10:30
70 lines
3495 bytes
John Savard <quadibloc@invalid.com> schrieb:
> On Tue, 17 Nov 2026 20:55:29 GMT, MitchAlsup
><user5857@newsgrouper.org.invalid> wrote:
>
>>My bet is that you end up wanting more pointers (base registers) than
>>index registers--simply because modern code points at a lot of things
>>but indexes few.
>
> That's a good point. And, indeed, if I have a pointer, to use it I
> would store it in a base register.
>
> Presumably, I would store it in a base register with a 12-bit
> displacement, since the displacement is just going to be zero anyways.

Not when you access member of a struct.

> Except that I found room, along with relative addressing and Array
> Mode addressing, for register indirect addressing. So I can already
> use not only all 32 regular integer registers, but all 128 registers
> in the extended integer register bank, as pointers.
>
> Pointers being taken care of, I can worry about more index
> registers... _if_ there's any need for them.

  for (int i=0; i<n; i++)
    a[i] = b[i] + c[i];

saves you a few instructins with index registers.  This is code on
aarch64:

my_add:
        cbz     x3, .L1
        mov     w4, 0
.L3:
        ldr     d31, [x0, x4, lsl 3]
        ldr     d30, [x1, x4, lsl 3]
        fadd    d30, d31, d30
        str     d30, [x2, x4, lsl 3]
        add     x4, x4, 1
        cmp     x3, x4
        bne     .L3
.L1:
        ret

so it uses x3 as index register for all three accesses.  And this is
RISC-V:

my_add:
        beq     a3,zero,.L1
        slli    a3,a3,3
        add     a3,a0,a3
.L3:
        fld     fa5,0(a0)
        fld     fa4,0(a1)
        addi    a0,a0,8
        addi    a1,a1,8
        fadd.d  fa5,fa5,fa4
        addi    a2,a2,8
        fsd     fa5,-8(a2)
        bne     a0,a3,.L3
.L1:
        ret

It has no indexed addressing, so it needs three add instructions for all
three pointer accesses.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Concertina IV Again?
#811
Author: John Savard
Date: Thu, 19 Nov 2026 18:29
38 lines
2841 bytes
On Wed, 18 Nov 2026 21:42:43 GMT, MitchAlsup
<user5857@newsgrouper.org.invalid> wrote:

>> And when I recently modified Array Mode addressing to improve it, by
>> not always relying on an indirect memory address... what I did was
>> simply add register indirect addressing to the available addressing
>> modes a second time. I have now corrected this error for Concertina
>> II.

>Corrected by leaving out or leaving in?

By removing, thus leaving out, the duplicate.

>Concertina II or IV or both ??

Concertina IV isn't up yet. The mistake was also present in Concertina
III; I didn't go to the trouble of correcting it there, because I felt
it might not be around long.

So the correction was made, as I said, in Concertina II.

Now I think that I know what I will do going forward.

I will not bother to create Concertina IV, the full variable-length
ISA with independent 16-bit short instructions.

Instead:

I will take the idea I had for having 15 index registers, and instead
use it for instructions which still only have 7 index registers. These
instructions will replace the paired short instructions in Concertina
III, instead of going back to the (page)(dest)(src) short instruction
format.

Instead there will only be 17-bit unrestricted short instructions in
Concertina III, packed three to a 64-bit long instruction.

John Savard
Re: Concertina IV Again?
#816
Author: John Savard
Date: Thu, 19 Nov 2026 20:13
16 lines
2112 bytes
On Thu, 19 Nov 2026 18:29:22 GMT, quadibloc@invalid.com (John Savard)
wrote:

>I will take the idea I had for having 15 index registers, and instead
>use it for instructions which still only have 7 index registers. These
>instructions will replace the paired short instructions in Concertina
>III, instead of going back to the (page)(dest)(src) short instruction
>format.
>
>Instead there will only be 17-bit unrestricted short instructions in
>Concertina III, packed three to a 64-bit long instruction.

I have now updated the pages for Concertina III in accordance with
this.

John Savard
Re: Concertina IV Again?
#825
Author: John Savard
Date: Fri, 20 Nov 2026 10:42
16 lines
2251 bytes
On Thu, 19 Nov 2026 20:13:22 GMT, quadibloc@invalid.com (John Savard)
wrote:
>On Thu, 19 Nov 2026 18:29:22 GMT, quadibloc@invalid.com (John Savard)
>wrote:

>>Instead there will only be 17-bit unrestricted short instructions in
>>Concertina III, packed three to a 64-bit long instruction.

>I have now updated the pages for Concertina III in accordance with
>this.

Now I have also left one less thing out of the Concertina III ISA.
Predicated instructions with an explicit indication of parallelism are
available as long instructions; there is both a 64-bit long
instruction with two 17-bit instructions embedded, and a 96-bit long
instruction with two 32-bit instructions embedded.
Re: Concertina IV Again?
#885
Author: John Savard
Date: Sun, 22 Nov 2026 14:09
17 lines
2391 bytes
On Fri, 20 Nov 2026 10:42:45 GMT, quadibloc@invalid.com (John Savard)
wrote:

>Now I have also left one less thing out of the Concertina III ISA.
>Predicated instructions with an explicit indication of parallelism are
>available as long instructions; there is both a 64-bit long
>instruction with two 17-bit instructions embedded, and a 96-bit long
>instruction with two 32-bit instructions embedded.

And now I have also put back in what may be considered to be the most
outrageous Concertina feature - the ability to operate on data in
different sizes. That is, really different sizes. Not 8, 16, 32, and
64 bits... but 24, 30, 32, or 36 bits. And in little-endian form in
addition to big-endian form. And now one can store a 36-bit number in
six six-bit characters in reversed order too!

John Savard
Re: Concertina IV Again?
#906
Author: John Savard
Date: Mon, 23 Nov 2026 14:57
20 lines
2406 bytes
On Thu, 19 Nov 2026 18:29:22 GMT, quadibloc@invalid.com (John Savard)
wrote:

>I will take the idea I had for having 15 index registers, and instead
>use it for instructions which still only have 7 index registers. These
>instructions will replace the paired short instructions in Concertina
>III, instead of going back to the (page)(dest)(src) short instruction
>format.
>
>Instead there will only be 17-bit unrestricted short instructions in
>Concertina III, packed three to a 64-bit long instruction.

I have now decided that I can't choose between possible alternatives
for this portion of the opcode space. So I've brought back paired
short instructions, this time with the (page)(dest)(src) format, as
one of four options; the other three options are based on the type of
memory-to-register operate instructions described above, but with
different choices for the address mode limitation.

John Savard
Re: Concertina IV Again?
#919
Author: John Savard
Date: Tue, 24 Nov 2026 05:30
28 lines
2816 bytes
On Mon, 23 Nov 2026 14:57:48 GMT, quadibloc@invalid.com (John Savard)
wrote:

>I have now decided that I can't choose between possible alternatives
>for this portion of the opcode space. So I've brought back paired
>short instructions, this time with the (page)(dest)(src) format, as
>one of four options; the other three options are based on the type of
>memory-to-register operate instructions described above, but with
>different choices for the address mode limitation.

I have decided that this bright idea essentially constitutes madness,
so I have retreated from it.

Instead, paired short instructions with the (page)(dest)(src) format
are now the default.
However, there is a circumstance where a 32-bit instruction may be
embedded in a longer instruction. Because of the method I use for
branching to instructions within an embedded instruction, clearly
embedded instructions may not be nested.
So in *embedded* 32-bit instructions only, the opcode space for paired
32-bit instructions is instead used for _one_ format of
memory-to-register operate instructions!

It's still madness, of course, but not _quite_ so totally deranged and
with the potential of disastrous consequences. Just a bizarre feature
that no compiler could ever use...

John Savard
Re: Concertina IV Again?
#925
Author: John Savard
Date: Tue, 24 Nov 2026 16:41
20 lines
2603 bytes
The news item about Frostbite motivated me to take another look at the
features of my ISA connected with parallelism and predication, to
improve them further.

So now I've split out the parallelism/predication and
endianness/length modifications for embedded 17-bit instructions, the
way they were for embedded 32-bit instructions.
This allowed me to add an extra bit in the parallelism/predication
modified embedded 17-bit instructions to switch them to using the
extended banks of 128 registers, by means of a (page)(src)(dest)
format.
And *since* (page)(src)(dest) is so well suited to code written to
delay dependencies, as well as 15-bit instructions now being back,
since in my previous modifications I put paired 15-bit instructions in
(page)(src)(dest) format in the Concertina III ISA, not seeing a
better use for that portion of the opcode space, I also added a 64-bit
long instruction in which three 15-bit instructions are embedded plus
bits to explicitly indicate parallelism for them.

John Savard
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads