diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm.s b/include/asm.s index 09229f9..e44aedf 100644 --- a/include/asm.s +++ b/include/asm.s @@ -1,3 +1,8 @@ +;; Sanity check for the 'LEVEL' build parameter. +.if !(LEVEL >= 0 && LEVEL < 8) + .error "You have defined a bad 'LEVEL' value, it should be between 0 and 7 (both included)" +.endif + ;; Jump And Link: jump to subroutine but use the return address that the caller ;; had whenever the given subroutine runs `rts`. In other words, "link" the ;; return address from the caller to the callee. |
