Skip to content

Commit

Permalink
add stack setup to asm code
Browse files Browse the repository at this point in the history
  • Loading branch information
desaster committed Jul 21, 2018
1 parent 757544f commit 190eabd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asm/ledblink.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ num1 = $0200 ; counter, intended to be attached to leds
scountl = $0201 ; sleep counter low byte
scounth = $0202 ; sleep counter low byte

ldx #$ff ; setup stack
txs

lda #$00 ; start value
sta num1 ; store it to memory

Expand Down

0 comments on commit 190eabd

Please sign in to comment.