ootw: add assert if loader gets bigger than 3 pages

This commit is contained in:
Vince Weaver 2020-01-27 11:30:09 -05:00
parent 48dea300e9
commit 6fa80d7061

View File

@ -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 (<loader_end - <loader_start)>3, error, "loader too big"