From 6fa80d70618c09a3b21c9e08c558c8c5674d7e7d Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 27 Jan 2020 11:30:09 -0500 Subject: [PATCH] ootw: add assert if loader gets bigger than 3 pages --- ootw/loader.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ootw/loader.s b/ootw/loader.s index b43f1af0..4342d9e6 100644 --- a/ootw/loader.s +++ b/ootw/loader.s @@ -50,7 +50,7 @@ filbuf = $3D6 ; filbuf: .res 4 ; = bit2tbl+86 ;=================================================== ;=================================================== -start: +loader_start: jsr init ; unhook DOS, init nibble table @@ -706,3 +706,6 @@ sectbl: .byte $00,$0d,$0b,$09,$07,$05,$03,$01,$0e,$0c,$0a,$08,$06,$04,$02,$0f ;filbuf: .res 4 ; = bit2tbl+86 ;dataend = filbuf+4 +loader_end: + +.assert (3, error, "loader too big"