|
macro | c128lib_SetBorderAndBackgroundColor (borderColor, backgroundColor) |
| Sets the border and background color.
|
|
macro | c128lib_SetBorderColor (borderColor) |
| Sets the border color.
|
|
macro | c128lib_SetBackgroundColor (backgroundColor) |
| Sets the background color.
|
|
function | c128lib_getTextOffset (xPos, yPos) |
| Calculates memory offset of text cell specified by given coordinates on 40 cols screen.
|
|
macro | c128lib_SetScreenAndCharacterMemoryWithShadow (config) |
| Set screen memory and charset memory position.
|
|
macro | c128lib_SetScreenMemoryAndBitmapPointer (config) |
| Set screen memory and bitmap memory pointer.
|
|
macro | c128lib_SetSpriteXPosition (spriteNo, x) |
| Sets X position of given sprite (uses sprite MSB register if necessary)
|
|
macro | c128lib_SetSpriteXPositionWithShadow (spriteNo, x) |
| Sets X position of given sprite (uses sprite MSB register if necessary) using shadow registers.
|
|
macro | c128lib_SetSpriteYPosition (spriteNo, y) |
| Sets y position of given sprite.
|
|
macro | c128lib_SetSpriteYPositionWithShadow (spriteNo, y) |
| Sets y position of given sprite using shadow registers.
|
|
macro | c128lib_SetSpritePosition (spriteNo, x, y) |
| Sets x and y position of given sprite.
|
|
macro | c128lib_SetSpritePositionWithShadow (spriteNo, x, y) |
| Sets x and y position of given sprite using shadow registers.
|
|
macro | c128lib_SpriteMove (spriteNo, speed, quadrant, deltaX, deltaY) |
| Define sprite movement.
|
|
macro | c128lib_SpriteEnable (mask) |
| Enable one or more sprite, preserving status of other sprites.
|
|
macro | c128lib_SpriteDisable (mask) |
| Disable one or more sprite, preserving status of other sprites.
|
|
macro | c128lib_SpriteEnableMulticolor (mask) |
| Enable multicolor setting for one or more sprite, preserving status of other sprites.
|
|
macro | c128lib_SpriteDisableMulticolor (mask) |
| Disable multicolor setting for one or more sprite, preserving status of other sprites.
|
|
macro | c128lib_SpriteColor (spriteNo, color) |
| Disable multicolor setting for one or more sprite.
|
|
macro | c128lib_SpriteMultiColor0 (color) |
| Set sprite multi color 0.
|
|
macro | c128lib_SpriteMultiColor1 (color) |
| Set sprite multi color 1.
|
|
Vic2 module.
Simple macros for Vic2.
- 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
macro c128lib_SetScreenAndCharacterMemoryWithShadow |
( |
config | | ) |
|
Set screen memory and charset memory position.
Set screen memory and charset memory position by using shadow register.
Character memory selection
- Vic2.CHAR_MEM_0000 Character memory on $0000
- Vic2.CHAR_MEM_0800 Character memory on $0800
- Vic2.CHAR_MEM_1000 Character memory on $1000
- Vic2.CHAR_MEM_1800 Character memory on $1800
- Vic2.CHAR_MEM_2000 Character memory on $2000
- Vic2.CHAR_MEM_2800 Character memory on $2800
- Vic2.CHAR_MEM_3000 Character memory on $3000
- Vic2.CHAR_MEM_3800 Character memory on $3800
If omitted, Vic2.CHAR_MEM_0000 will be used.
Character memory offset must be added to current bank selected. For ex. if Vic bank 1 ($4000) is selected, CHAR_MEM_0800 will point to $4000 + $0800
Screen memory selection
- Vic2.SCREEN_MEM_0000 Screen memory on $0000
- Vic2.SCREEN_MEM_0400 Screen memory on $0400
- Vic2.SCREEN_MEM_0800 Screen memory on $0800
- Vic2.SCREEN_MEM_0C00 Screen memory on $0c00
- Vic2.SCREEN_MEM_1000 Screen memory on $1000
- Vic2.SCREEN_MEM_1400 Screen memory on $1400
- Vic2.SCREEN_MEM_1800 Screen memory on $1800
- Vic2.SCREEN_MEM_1C00 Screen memory on $1c00
- Vic2.SCREEN_MEM_2000 Screen memory on $2000
- Vic2.SCREEN_MEM_2400 Screen memory on $2400
- Vic2.SCREEN_MEM_2800 Screen memory on $2800
- Vic2.SCREEN_MEM_2C00 Screen memory on $2c00
- Vic2.SCREEN_MEM_3000 Screen memory on $3000
- Vic2.SCREEN_MEM_3400 Screen memory on $3400
- Vic2.SCREEN_MEM_3800 Screen memory on $3800
- Vic2.SCREEN_MEM_3C00 Screen memory on $3c00
If omitted, Vic2.SCREEN_MEM_0000 will be used.
Screen memory offset must be added to current bank selected. For ex. if Vic bank 1 ($4000) is selected, SCREEN_MEM_0C00 will point to $4000 + $0c00
- Parameters
-
[in] | config | Screen memory and/or char memory configuration. |
- Since
- 1.0.0