This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bug in CGT 470 4.9.8: cbnz/cbz

Hi
two bugs relate cbnz/cbz:
Assembler assumes distance to be pc+255 max, but is pc+126 and therefore issues a warning if the distance exceeds the offset of 255 but not at 126. Related to this, the distance is wrong calculated and false opcodes are generated.
	.text
	cbnz	r0,y
	nop
y:
	cbnz	r0,x
	.loop 65
	nop
	.endloop
x
In this example the second cbnz should issue a warning, but instead the assembler generates the same opcode as the first one.
Tested with version 4.9.7 and 4.9.8.