Skip to content

docs: fixes formatting in memorybank.md #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions docs/library/memorybank.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@
The MemoryBank library allows you to manage paged memory on 128K and later/compatible models.

This library includes three commands:
- [SetBank](memorybank/setbank.md): Sets the specified bank to memory location $c000.
- [GetBank](memorybank/getbank.md): Returns the memory bank that is located at memory location $c000.
- [SetCodeBank](memorybank/setcodebank.md): Copies the specified memory bank to location $8000

* [SetBank](memorybank/setbank.md): Sets the specified bank to memory location $c000
* [GetBank](memorybank/getbank.md): Returns the memory bank that is located at memory location $c000
* [SetCodeBank](memorybank/setcodebank.md): Copies the specified memory bank to location $8000

Only works on 128K and later/compatible models.

**Danger:** If our program exceeds the address $c000 it may cause problems, use this library at your own risk.


## Menory banks
- $c000 > Bank 0 to Bank 7
- $8000 > Bank 2 (fixed)
- $4000 > Bank 5 (screen)
- $0000 > ROM
## Memory banks

- $c000 > Bank 0 to Bank 7
- $8000 > Bank 2 (fixed)
- $4000 > Bank 5 (screen)
- $0000 > ROM

Banks 2 and 5 are permanently fixed at addresses $8000 and $4000, so it is not common to use them.

Banks 1, 3, 5 and 7 are banks in contention with the ULA, their use is not recommended in processes requiring maximum speed.

## See also

- [SetBank](memorybank/setbank.md)
- [GetBank](memorybank/getbank.md)
- [SetCodeBank](memorybank/setcodebank.md)