Added more tests

This commit is contained in:
Eduard Urbach 2025-03-13 16:02:09 +01:00
parent c4d763839a
commit f4b0020c49
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 205 additions and 39 deletions

View file

@ -117,7 +117,7 @@ func (c *compiler) compileARM(x asm.Instruction) {
switch x.Type {
case asm.TypeRegisterNumber:
operand := c.assembler.Param.RegisterNumber[x.Index]
c.append(arm.SubRegisterNumber(0b11111, operand.Register, operand.Number))
c.append(arm.CompareRegisterNumber(operand.Register, operand.Number))
case asm.TypeRegisterRegister:
panic("not implemented")
}