Programming the Microprocessor
Revision as of 22:13, 26 September 2020 by U731219879 rc (talk | contribs) (Created page with "'''Use Notepad++ to write your source code.''' Download Notepad++ from '''Example code:''' STX #$6ffc ; capture x reg LDX #$55 ; set counter to binary 101...")
Use Notepad++ to write your source code.
Download Notepad++ from
Example code:
STX #$6ffc ; capture x reg
LDX #$55 ; set counter to binary 10101010
count EQU *
LDA #$0f ; Turn on half of the LED's 00001111
STA $6000 ; Write value to VIA chip
DEX ; Decrease the X register by 1
LDA #$f0 ; Turn on half of the LED's 11110000
BNE count
LDX $6ffc ; Restore X reg to orginal value
LDA #$00 ; turn off all LED's 00000000
STA $6000 ; Write value to VIA chip