|
macro | c128lib_Go40 () |
| Go to 40 columns mode.
|
|
macro | c128lib_Go80 () |
| Go to 80 columns mode.
|
|
macro | c128lib_SetBackgroundForegroundColor (background, foreground) |
| Set background and foreground color, also disable bit 6 of HORIZONTAL_SMOOTH_SCROLLING register.
|
|
macro | c128lib_SetBackgroundForegroundColorWithVars (background, foreground) |
| Set background and foreground color, also disable bit 6 of HORIZONTAL_SMOOTH_SCROLLING register. Use vars instead of labels.; Warning: high nibble of background must be 0, it's up to developer to check this.
|
|
macro | c128lib_ReadFromVdcMemoryByCoordinates (xPos, yPos, destination, qty) |
| Read from Vdc internal memory and write it to Vic screen memory by using coordinates.
|
|
macro | c128lib_ReadFromVdcMemoryByAddress (source, destination, qty) |
| Read from Vdc internal memory and write it to Vic screen memory by using source address.
|
|
macro | c128lib_WriteToVdcMemoryByCoordinates (source, xPos, yPos, qty) |
| Read from Vic screen memory and write it to Vdc internal memory by using coordinates.
|
|
macro | c128lib_WriteToVdcMemoryByAddress (source, destination, qty) |
| Read from Vic screen memory and write it to Vdc internal memory by using coordinates.
|
|
function | c128lib_getTextOffset80Col (xPos, yPos) |
| Calculates memory offset of text cell specified by given coordinates on 80 cols screen.
|
|
macro | c128lib_GetVdcDisplayStart () |
| Returns the address start of Vdc display memory data. This is stored in Vdc register SCREEN_MEMORY_STARTING_HIGH_ADDRESS and SCREEN_MEMORY_STARTING_LOW_ADDRESS. The 16-bit value is stored in $FB and $FC.
|
|
macro | c128lib_SetVdcUpdateAddress (address) |
| Set the pointer to the RAM area that is to be updated. The update pointer is stored in Vdc register CURRENT_MEMORY_HIGH_ADDRESS and CURRENT_MEMORY_LOW_ADDRESS.
|
|
macro | c128lib_WriteVdc () |
| Write a value into Vdc register without using kernal routine instead of pure instruction. It needs register number in X and value to write in A. It costs 11 bytes and 14 cycles.
|
|
macro | c128lib_ReadVdc () |
| Read a value from Vdc register without using kernal routine instead of pure instruction. It needs register number in X and value is written in A. It costs 11 bytes and 14 cycles.
|
|
Vdc module.
Simple macros for Vdc.
- Author
- Raffaele Intorcia raffa.nosp@m.ele..nosp@m.intor.nosp@m.cia@.nosp@m.gmail.nosp@m..com
- Copyright
- MIT License Copyright (c) 2024 c128lib - https://github.com/c128lib
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.
- Date
- 2024