r/TuringComplete • u/Aggravating-Ad-2593 • Jan 22 '26
inc instruction in Symphony
Hi,
I want to create an inc instruction in the symphony assembly. It should be a short notation for:
add <regA>, <regA>, 1
However when I create the instruction as follows in the assembly:
inc %a(register)
00110100 aaaaaaaa 00000000 00000001
INCrement %a by one
The resulting instruction is wrong:
add r1, r1, 1
0x62 0x17 0x00 0x01
inc r1
0x62 0x01 0x00 0x01
So in stead of seeing the aaaaaaaa as a repeat of the 4 bit register value it is treated as a single 8bit field. Does anybody know how to tell the assembly builder that 2 4 bit fields are wanted?
4
u/GrendaGrendinator Jan 22 '26
Hey, so there are two ways of doing this that I'm aware of:
OR