diff --git a/src/asm/resolver/eval_fn.rs b/src/asm/resolver/eval_fn.rs index 6fcceec..9d189c3 100644 --- a/src/asm/resolver/eval_fn.rs +++ b/src/asm/resolver/eval_fn.rs @@ -176,6 +176,11 @@ fn eval_builtin_incbin( } }; + if bytes.len() == 0 + { + return Ok(expr::Value::make_integer(util::BigInt::from_bytes_be(&[]))); + } + if start >= bytes.len() { query.report.error_span(