Hacker News new | ask | show | jobs
by bobp127001 4017 days ago
>bonus points goes to the people who realise there is an odd thing about the form of the baz (branch if Ra is zero) instruction.

Is this because the second argument is another register (presumably containing an address to branch to) instead of a label?

2 comments

Just before the loop there is this instruction, "load.l r7, $mul16_fin".

Prehaps this is so the assembler/linker/loader doesn't need to resolve what address the label ends up having

yes! I've not implemented conditional jump to an immediate offset yet, so you need the branch target in a register.