Skip to content
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

Improvements to DLI ... INTO -- Read from address, simple math operations #60

Open
billkendrick opened this issue Dec 12, 2022 · 0 comments
Assignees

Comments

@billkendrick
Copy link
Contributor

billkendrick commented Dec 12, 2022

A common Atari trick is the rainbow color effect, which simply plugs the VCOUNT ($D40B) register into a color register, perhaps applying a counter (e.g., the faster RTCLOK register ($14)) to make it animated.

It would be nice to be able to DLI <addr> INTO <addr>, and perhaps do some simple math, e.g. for rainbow effect: DLI (&$D40B + &$14) INTO $D01A.

Operators like binary AND and OR would be useful as well. e.g., for a 'water' effect, the colors could animate within only the blue hues -- $80 through $8F -- like so: DLI (((&$D40B + &$14) & $0F) | $80) INTO $D01A or DLI (((&$D40B + &$14) & $0F) + $80) INTO $D01A.

@dmsc dmsc self-assigned this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants