Skip to content

Commit

Permalink
updated VHDl light chase example
Browse files Browse the repository at this point in the history
  • Loading branch information
hneemann committed Aug 24, 2017
1 parent d882f09 commit d395187
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/main/asm/lightChase.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,7 @@
.word lastButtons

reset: call up ; fixed start sequnce
call up
call down
LDI STATEADR, state1
jmp checkButton ; start state machine

up: LDI R0, 1
LDI R1, 16
u1: OUT GPO_PORT, R0
LSL R0
DEC R1
BRNE u1
RET

down: LDI R0, 0x8000
LDI R1, 16
d1: OUT GPO_PORT, R0
LSR R0
DEC R1
BRNE d1
RET
ldi STATEADR, state3

checkButton:
in R0, GPI_PORT ; load button
Expand Down

0 comments on commit d395187

Please sign in to comment.