Import of the contiki-2.x development code from the SICS internal CVS server
This commit is contained in:
commit
c9e808d638
671 changed files with 95332 additions and 0 deletions
30
cpu/6502/lib/lc-asm.S
Normal file
30
cpu/6502/lib/lc-asm.S
Normal file
|
@ -0,0 +1,30 @@
|
|||
;---------------------------------------------------------------------
|
||||
.importzp ptr1
|
||||
.export _lc_set
|
||||
.export _lc_resume
|
||||
;---------------------------------------------------------------------
|
||||
_lc_set:
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
tsx
|
||||
lda $0102,x
|
||||
ldy #$01
|
||||
sta (ptr1),y
|
||||
lda $0101,x
|
||||
dey
|
||||
sta (ptr1),y
|
||||
rts
|
||||
;---------------------------------------------------------------------
|
||||
_lc_resume:
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
ldy #$01
|
||||
lda (ptr1),y
|
||||
beq :+
|
||||
tsx
|
||||
sta $0102,x
|
||||
dey
|
||||
lda (ptr1),y
|
||||
sta $0101,x
|
||||
: rts
|
||||
;---------------------------------------------------------------------
|
Loading…
Add table
Add a link
Reference in a new issue