config system cleanup - hex values

This commit is contained in:
FeralChild64 committed 2020-09-21 22:35:46 +02:00
1 parent 299e9cd524
commit d0081fd21e
8 files changed
+43 -19

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $00 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $00 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
@@ -65,8 +65,8 @@
; Sound support
; !set CONFIG_SID_2ND_ADDRESS = $D420
; !set CONFIG_SID_3RD_ADDRESS = $D440
;; #CONFIG# SID_2ND_ADDRESS NO
;; #CONFIG# SID_3RD_ADDRESS NO
;; #CONFIG# SID_D4XX NO
;; #CONFIG# SID_D5XX NO
+1 -1
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $04 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $04 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
+3 -3
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $01 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $01 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
@@ -55,8 +55,8 @@
; Sound support
; !set CONFIG_SID_2ND_ADDRESS = $D420
; !set CONFIG_SID_3RD_ADDRESS = $D440
;; #CONFIG# SID_2ND_ADDRESS NO
;; #CONFIG# SID_3RD_ADDRESS NO
;; #CONFIG# SID_D4XX NO
;; #CONFIG# SID_D5XX NO
+1 -1
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $02 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $02 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
+3 -3
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $F0 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $F0 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
@@ -55,8 +55,8 @@
; Sound support
; !set CONFIG_SID_2ND_ADDRESS = $D420
; !set CONFIG_SID_3RD_ADDRESS = $D440
;; #CONFIG# SID_2ND_ADDRESS NO
;; #CONFIG# SID_3RD_ADDRESS NO
;; #CONFIG# SID_D4XX NO
;; #CONFIG# SID_D5XX NO
+3 -3
View File
@@ -1,5 +1,5 @@
!set CONFIG_ID = $03 ; should be 1 byte, different for each config file!
;; #CONFIG# ID $03 ; should be 1 byte, different for each config file!
;
; Please read CONFIG.md before modifying this file!
@@ -45,8 +45,8 @@
; Sound support
; !set CONFIG_SID_2ND_ADDRESS = $D420
; !set CONFIG_SID_3RD_ADDRESS = $D440
;; #CONFIG# SID_2ND_ADDRESS NO
;; #CONFIG# SID_3RD_ADDRESS NO
;; #CONFIG# SID_D4XX YES
;; #CONFIG# SID_D5XX YES
+8 -2
View File
@@ -189,10 +189,16 @@
!if (counter != 0) { !error "Do not use CONFIG_SID_* options for MEGA65 motherboard" }
}
!ifdef CONFIG_SID_2ND_ADDRESS {
!if (CONFIG_SID_2ND_ADDRESS = $D400) { !error "CONFIG_SID_2ND_ADDRESS points to the 1st SID" }
!if (CONFIG_SID_2ND_ADDRESS = $D400) { !error "CONFIG_SID_2ND_ADDRESS points to the 1st SID" }
!if (CONFIG_SID_2ND_ADDRESS < $D420) { !error "CONFIG_SID_2ND_ADDRESS needs hex value from $D420-$D7E0 range" }
!if (CONFIG_SID_2ND_ADDRESS > $D7E0) { !error "CONFIG_SID_2ND_ADDRESS needs hex value from $D420-$D7E0 range" }
!if ((CONFIG_SID_2ND_ADDRESS % $20) != 0) { !error "CONFIG_SID_2ND_ADDRESS has to be aligned to $20" }
}
!ifdef CONFIG_SID_3RD_ADDRESS {
!if (CONFIG_SID_3RD_ADDRESS = $D400) { !error "CONFIG_SID_3RD_ADDRESS points to the 1st SID" }
!if (CONFIG_SID_3RD_ADDRESS = $D400) { !error "CONFIG_SID_3RD_ADDRESS points to the 1st SID" }
!if (CONFIG_SID_3RD_ADDRESS < $D420) { !error "CONFIG_SID_3RD_ADDRESS needs hex value from $D420-$D7E0 range" }
!if (CONFIG_SID_3RD_ADDRESS > $D7E0) { !error "CONFIG_SID_3RD_ADDRESS needs hex value from $D420-$D7E0 range" }
!if ((CONFIG_SID_3RD_ADDRESS % $20) != 0) { !error "CONFIG_SID_3RD_ADDRESS has to be aligned to $20" }
}
!ifdef CONFIG_SID_2ND_ADDRESS { !ifdef CONFIG_SID_3RD_ADDRESS {
!if (CONFIG_SID_2ND_ADDRESS = CONFIG_SID_3RD_ADDRESS) { !error "Configured SIDs have the same addresses" }