Skip to content

Commit 7c5881e

Browse files
committed
arbitrate led port a
1 parent 33dbd76 commit 7c5881e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

led.s

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
.proc led_on
55
lda #LED
6+
ora PORTA
67
sta PORTA
78
rts
89
.endproc
910

1011
.proc led_off
11-
lda #0
12+
lda #<~LED
13+
and PORTA
1214
sta PORTA
1315
rts
1416
.endproc

0 commit comments

Comments
 (0)