add a compile-time guard of memory map

This commit is contained in:
Peter Ferrie 2017-02-13 13:20:24 -08:00
parent 428ac7ca5a
commit 3f2a8d57f5

View File

@ -96,6 +96,7 @@ flag = $FF ; byte
; Application constants (not zero addresses)
RELBASE = $6800 ; address to move Passport code
; so that it's out of the way
LOWPOINT = $4300 ; lowest available address for code
BASEPAGE = $10 ; Special Delivery tracer assumes
; this is $10, so don't change it!
TRUE = $00 ; Lots of code assumes this is $00
@ -798,3 +799,6 @@ LastMover
!if ($B500 - ((255 + LastMover - FirstMover) & $FF00)) != RELBASE {
!serious "RELBASE requires adjustment to ", ($B500 - ((255 + LastMover - FirstMover) & $FF00))
}
!if ($B500 - ((255 + LastMover - FirstMover) & $FF00)) < LOWPOINT {
!serious "code is too large to fit in available space!"
}