Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/io.asm @ 21:73014f788032
1.60 stable rc1
author | heinrichsweikamp |
---|---|
date | Wed, 21 Apr 2010 17:37:30 +0200 |
parents | 96a35aeda5f2 |
children |
comparison
equal
deleted
inserted
replaced
20:8824446f7241 | 21:73014f788032 |
---|---|
13 | 13 |
14 | 14 |
15 ; low-level routines for i/O | 15 ; low-level routines for i/O |
16 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com | 16 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com |
17 ; written: 090801 | 17 ; written: 090801 |
18 ; last updated: 090801 | 18 ; last updated: 100421 |
19 ; known bugs: | 19 ; known bugs: |
20 ; ToDo: | 20 ; ToDo: Remove file |
21 | 21 |
22 set_LEDy: ; Yellow LED | |
23 bsf LED_red | |
24 return | |
25 clear_LEDy ; Yellow LED | |
26 bcf LED_red | |
27 return | |
28 | |
29 set_LEDr: ; Red LED | |
30 bsf LED_red | |
31 return | |
32 clear_LEDr ; Red LED | |
33 bcf LED_red | |
34 return | |
35 toggle_LEDr ; Red LED | |
36 btg LED_red | |
37 return | |
38 | |
39 | |
40 set_LEDg: ; Green LED | |
41 bsf LED_red | |
42 return | |
43 clear_LEDg ; Green LED | |
44 bcf LED_red | |
45 return | |
46 | |
47 set_LEDusb: ; USB LED | |
48 bsf LED_blue | |
49 return | |
50 clear_LEDusb; USB LED | |
51 bcf LED_blue | |
52 return | |
53 | |
54 set_LEDnofly: ; nofly LED | |
55 bsf LED_blue | |
56 return | |
57 clear_LEDnofly; nofly LED | |
58 bcf LED_blue | |
59 return | |
60 toggle_LEDnofly ; nofly LED | |
61 btg LED_blue | |
62 return | |
63 | |
64 |