mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-20 18:16:35 +00:00
Documentation tweaks
This commit is contained in:
@@ -40,7 +40,7 @@ Therefore, it's recommended to stick to mappers that have a fixed bank at the en
|
||||
|
||||
Mappers that should be fine: NROM (0), CNROM (1), UxROM(2), MMC2 (9), MMC3 (4), MMC4 (10), MMC6 (4).
|
||||
|
||||
Mappers that can have arbitrary bank at the end and are therefore not recommended: MMC1 (1), MMC5 (5).
|
||||
Mappers that can have arbitrary bank at the end are therefore not recommended: MMC1 (1), MMC5 (5).
|
||||
|
||||
You should define at least three segments:
|
||||
|
||||
|
||||
@@ -23,13 +23,13 @@ It is imported automatically, you don't need to add any import statements.
|
||||
If you are targeting both RAM-based and ROM-based platforms, wrap the call in `#if INIT_RW_MEMORY`...`#endif`,
|
||||
as the `init_rw_memory` function is not available for RAM-based targets. For example:
|
||||
|
||||
void main() {
|
||||
#if INIT_RW_MEMORY
|
||||
// do a bankswitch to the SEGMENT segment if applicable
|
||||
init_rw_memory()
|
||||
#endif
|
||||
// ... rest of the code
|
||||
}
|
||||
void main() {
|
||||
#if INIT_RW_MEMORY
|
||||
// do a bankswitch to the SEGMENT segment if applicable
|
||||
init_rw_memory()
|
||||
#endif
|
||||
// ... rest of the code
|
||||
}
|
||||
|
||||
If the default implementation of `init_rw_memory` is unsatisfactory for your needs,
|
||||
consider implementing your own and putting it in the `init_rw_memory` module
|
||||
|
||||
Reference in New Issue
Block a user