![]() |
c128lib Base
Base macros for C128
|
Mmu module. More...
Functions | |
macro | SetMMUConfiguration (config) |
Macro for Mmu configuration. | |
macro | SetMMULoadConfiguration (config) |
Macro for Mmu configuration. Uses $FF00 instead of $D500. | |
macro | SetBankConfiguration (id) |
Set banking. Only main banking are available. | |
macro | SetModeConfig (config) |
Set mode configuration register. | |
macro | SetCommonRAM (config) |
Configure common RAM amount. | |
Mmu module.
Simple macros for the Commodore 128.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
macro SetMMUConfiguration | ( | config | ) |
Macro for Mmu configuration.
I/O block selection
If omitted, Mmu.IO_ROM will be used.
Low-ram selection
If omitted, Mmu.ROM_LOW_ROM will be used.
Mid-ram selection
If omitted, Mmu.ROM_MID_ROM will be used.
Hi-ram selection
If omitted, Mmu.ROM_HI will be used.
Bank selection
[in] | config | Values for Mmu confiuration |
macro SetMMULoadConfiguration | ( | config | ) |
Macro for Mmu configuration. Uses $FF00 instead of $D500.
I/O block selection
If omitted, Mmu.IO_ROM will be used.
Low-ram selection
If omitted, Mmu.ROM_LOW_ROM will be used.
Mid-ram selection
If omitted, Mmu.ROM_MID_ROM will be used.
Hi-ram selection
If omitted, Mmu.ROM_HI will be used.
Bank selection
[in] | config | Values for Mmu confiuration |
macro SetBankConfiguration | ( | id | ) |
Set banking. Only main banking are available.
[in] | config | Values for Mmu confiuration |
macro SetModeConfig | ( | config | ) |
Set mode configuration register.
[in] | config | Values for configuration register |
macro SetCommonRAM | ( | config | ) |
Configure common RAM amount.
RAM Bank 0 is always the visible RAM bank. Valid values are 1,4,8 and 16. For ex. if you choose 4K common ram at top and bottom you'll have 4K up and 4K bottom.
[in] | config | Values for common ram configuration |