feat: outofboundserror message includes given bad value

This commit is contained in:
Guy C
2025-02-28 00:15:20 +00:00
parent edcac2782b
commit cdf32d93c3
2 changed files with 4 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ object RuntimeError {
def generateHandler: Chain[AsmLine] = Chain(
LabelDef(OutOfBoundsError.errLabel),
Pop(RSI),
Move(RSI, Register(Q64, CX)),
stackAlign,
Load(RDI, IndexAddress(RIP, LabelArg(OutOfBoundsError.strLabel))),
assemblyIR.Call(CLibFunc.PrintF),