Generate a call to _divide_by_zero_error on RiscV

This commit is contained in:
2024-10-30 14:12:51 +01:00
parent 6b92e5059c
commit 43882a3a06
11 changed files with 89 additions and 29 deletions

View File

@@ -267,6 +267,6 @@ expression localTable = \case
)
literal :: AST.Literal -> Operand Variable
literal (AST.IntegerLiteral integer) = IntOperand integer
literal (AST.DecimalLiteral integer) = IntOperand integer
literal (AST.HexadecimalLiteral integer) = IntOperand integer
literal (AST.CharacterLiteral character) = IntOperand $ fromIntegral character