1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,21 @@ |
1 |
+ifeq ($(OS),Windows_NT) |
|
2 |
+ifdef WINE |
|
3 |
+ ASM = $(WINE) ../../bin/tools/asm.exe |
|
4 |
+else |
|
5 |
+ ASM = ../../bin/tools/asm.exe |
|
6 |
+endif |
|
7 |
+else |
|
8 |
+ ASM = ../../bin/tools/asm |
|
9 |
+endif |
|
10 |
+ |
|
11 |
+NAME = clear |
|
12 |
+ |
|
13 |
+.PHONY: all |
|
14 |
+all: $(NAME) |
|
15 |
+ |
|
16 |
+$(NAME): src/*.asm |
|
17 |
+ $(ASM) app src/$(NAME).asm $(NAME) |
|
18 |
+ |
|
19 |
+.PHONY: clean |
|
20 |
+clean: |
|
21 |
+ rm -f $(NAME) |
0 | 22 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
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 |
+map ../../../bin/rom/rom.map |
|
11 |
+ |
|
12 |
+; First label is the entry point |
|
13 |
+.entry: |
|
14 |
+ call .main |
|
15 |
+ ret |
|
16 |
+ |
|
17 |
+; Arguments |
|
18 |
+; X - Arguments address low |
|
19 |
+; Y - Arguments address high |
|
20 |
+; No return |
|
21 |
+.main: |
|
22 |
+ ; Reset the terminal |
|
23 |
+ call .xTerminalReset |
|
24 |
+ ret |