| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,36 @@ |
| 1 |
+; Author: Pawel Jablonski |
|
| 2 |
+; E-mail: pj@xirx.net |
|
| 3 |
+; WWW: xirx.net |
|
| 4 |
+; GIT: git.xirx.net |
|
| 5 |
+; |
|
| 6 |
+; License: You can use this code however you like |
|
| 7 |
+; but leave information about the original author. |
|
| 8 |
+; Code is free for non-commercial and commercial use. |
|
| 9 |
+ |
|
| 10 |
+include io.asm |
|
| 11 |
+include keyboard.asm |
|
| 12 |
+include led.asm |
|
| 13 |
+include lcd.asm |
|
| 14 |
+include rs232.asm |
|
| 15 |
+include rtc.asm |
|
| 16 |
+include speaker.asm |
|
| 17 |
+include fs.asm |
|
| 18 |
+include string.asm |
|
| 19 |
+include terminal.asm |
|
| 20 |
+ |
|
| 21 |
+; First label is the entry point |
|
| 22 |
+.entry: |
|
| 23 |
+ ; Init IO data bus |
|
| 24 |
+ call .xIOInit |
|
| 25 |
+ ; Init screen cursor |
|
| 26 |
+ call .xStringInit |
|
| 27 |
+ |
|
| 28 |
+.main: |
|
| 29 |
+ ; Turn on error led |
|
| 30 |
+ call .xLedRunOn |
|
| 31 |
+ ; Run terminal |
|
| 32 |
+ call .xTerminal |
|
| 33 |
+ |
|
| 34 |
+; Endless loop |
|
| 35 |
+.loop: |
|
| 36 |
+ jmp .loop |