LBRY Block Explorer

LBRY Claims • nmi-timer-stripy-border-on-a-c64

57bbe1264a27b3a40d9765f82926a8a7f5143cdf

Published By
Created On
21 Feb 2020 17:51:41 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
NMI Timer Stripy Border on a C64
I used to do this at every shop that had a C64 open for programming when the machine was on sale. It uses the Non-Maskable Interrupts to change the border colour very fast.

The code resides just above the screen at memory locations 2024 - 2032 (decimal).

INC $D020 # Increment the border colour
PHA # Push the accumulator onto the stack
LDA $DD0D # Read the timer control to acknowledge the NMI
PLA # Pull the accumulator from the stack
RTI # Return from interrupt

56580 and 56581 set the timer.
792 and 793 redirect the NMI to 2024
56590 starts the timer and 56589 resets the timer once it "underflows".
...
https://www.youtube.com/watch?v=YtHUrZdtOL0
Author
Content Type
Unspecified
video/mp4
Language
Unspecified
Open in LBRY

More from the publisher

VIDEO
WHY C
VIDEO
C64 C
VIDEO
CYCLE
VIDEO
CYCLE
VIDEO
C64 C
VIDEO
CYCLE
VIDEO
DON'T
VIDEO
ARES
VIDEO
CYCLE