cosmetic, suppress redundant warnings

This commit is contained in:
Peter Ferrie 2016-12-03 14:03:58 -08:00
parent 0666fd5af0
commit d100bf17b3

View File

@ -303,11 +303,13 @@ ExchangeBankedPatch
bpl - bpl -
rts rts
LdrEnd LdrEnd
!if (LdrEnd > $3D0) { !ifdef PASS2 {
!error "LDRBASE too high, change to ", LdrStart + $3D0 - LdrEnd !if (LdrEnd > $3D0) {
} else { !error "LDRBASE too high, change to ", LdrStart + $3D0 - LdrEnd
!if (LdrEnd < $3D0) { } else {
!error "LDRBASE too low, change to ", LdrStart + $3D0 - LdrEnd !if (LdrEnd < $3D0) {
!error "LDRBASE too low, change to ", LdrStart + $3D0 - LdrEnd
}
} }
} }
@ -454,11 +456,15 @@ GetKey
jsr RDCHAR ;returns non-zero jsr RDCHAR ;returns non-zero
bne GetKey ;always bne GetKey ;always
InstallEnd InstallEnd
!if (InstallEnd > JmpInstall) { !ifdef PASS2 {
!error "INSTALLBUFFER too large, change to ", InstallStart + JmpInstall - InstallEnd !if (LdrEnd = $3D0) {
} else { !if (InstallEnd > JmpInstall) {
!if (InstallEnd < JmpInstall) { !error "INSTALLBUFFER too large, change to ", InstallStart + JmpInstall - InstallEnd
!error "INSTALLBUFFER too low, change to ", InstallStart + JmpInstall - InstallEnd } else {
!if (InstallEnd < JmpInstall) {
!error "INSTALLBUFFER too low, change to ", InstallStart + JmpInstall - InstallEnd
}
}
} }
} }
} }
@ -1332,7 +1338,7 @@ InitDiversiWrite
sta WriteSizeHigh + 1 sta WriteSizeHigh + 1
lda WriteOffset lda WriteOffset
sta DiversiWriteBuffer + 1 sta DiversiWriteBuffer + 1
!if SWAPSIZEALIGNED=0 { !if (SWAPSIZEALIGNED = 0) {
dec WriteBuffer + 1 dec WriteBuffer + 1
} }
lda #<LoadSaveStart lda #<LoadSaveStart
@ -1398,7 +1404,7 @@ WriteSizeHigh
;re-enable swapping ;re-enable swapping
!if SWAPSIZEALIGNED=0 { !if (SWAPSIZEALIGNED = 0) {
inc WriteBuffer + 1 inc WriteBuffer + 1
} }
lda #$18 ;CLC lda #$18 ;CLC
@ -1496,7 +1502,7 @@ FirstLine ;lines are stored sequentially, not like
!fill WIDTH, SPACE !fill WIDTH, SPACE
SecondLine SecondLine
!if >SecondLine != >LoadSaveStart { !if (>SecondLine != >LoadSaveStart) {
!error "first two lines of text buffer must not cross a page" !error "first two lines of text buffer must not cross a page"
} }
!fill WIDTH * 7, SPACE !fill WIDTH * 7, SPACE
@ -1515,12 +1521,19 @@ LastLine
!fill WIDTH, SPACE !fill WIDTH, SPACE
TEMPBUFFER=(*+255) and not 255 TEMPBUFFER=(*+255) and not 255
!if (TEMPBUFFER>$DB00) { !ifdef PASS2 {
!error "banked code is too large, ends at ", *, ", ", *-$DB00, " bytes too many" !if (TEMPBUFFER > $DB00) {
!error "banked code is too large, ends at ", *, ", ", *-$DB00, " bytes too many"
}
} }
SECTORBUFFER=TEMPBUFFER+$400 SECTORBUFFER=TEMPBUFFER+$400
!if VERBOSE=1 { !ifdef PASS2 {
!warn "banked code end=", *, ", data end=", SECTORBUFFER+$FF, ", bytes free=", $DB00-* !if (VERBOSE = 1) {
!warn "banked code end=", *, ", data end=", SECTORBUFFER+$FF, ", bytes free=", $DB00-*
}
} else {
;define pass-dependent label to reduce output noise
!set PASS2 = 1
} }
} }
BankedCopyEnd BankedCopyEnd