mirror of
https://github.com/a2-4am/passport.git
synced 2024-11-19 03:06:34 +00:00
add a compile-time guard of memory map
This commit is contained in:
parent
428ac7ca5a
commit
3f2a8d57f5
@ -96,6 +96,7 @@ flag = $FF ; byte
|
|||||||
; Application constants (not zero addresses)
|
; Application constants (not zero addresses)
|
||||||
RELBASE = $6800 ; address to move Passport code
|
RELBASE = $6800 ; address to move Passport code
|
||||||
; so that it's out of the way
|
; so that it's out of the way
|
||||||
|
LOWPOINT = $4300 ; lowest available address for code
|
||||||
BASEPAGE = $10 ; Special Delivery tracer assumes
|
BASEPAGE = $10 ; Special Delivery tracer assumes
|
||||||
; this is $10, so don't change it!
|
; this is $10, so don't change it!
|
||||||
TRUE = $00 ; Lots of code assumes this is $00
|
TRUE = $00 ; Lots of code assumes this is $00
|
||||||
@ -798,3 +799,6 @@ LastMover
|
|||||||
!if ($B500 - ((255 + LastMover - FirstMover) & $FF00)) != RELBASE {
|
!if ($B500 - ((255 + LastMover - FirstMover) & $FF00)) != RELBASE {
|
||||||
!serious "RELBASE requires adjustment to ", ($B500 - ((255 + LastMover - FirstMover) & $FF00))
|
!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!"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user