We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5826f commit 1605fe3Copy full SHA for 1605fe3
examples/box.asm
@@ -0,0 +1,38 @@
1
+@define SCREEN_WIDTH 80
2
+@define SCREEN_HEIGHT 25
3
+@define BOX_WIDTH (SCREEN_WIDTH - 2)
4
+@define BOX_HEIGHT (SCREEN_HEIGHT - 2)
5
+
6
+@define TR_CORNER 0xBB
7
+@define BR_CORNER 0xBC
8
+@define BL_CORNER 0xC8
9
+@define TL_CORNER 0xC9
10
+@define WALL 0xBA
11
+@define DASH 0xCD
12
13
+jmp [_start]
14
15
+/// math = ./math
16
+@include <math/mul.asm>
17
18
+_start:
19
+ call [draw_top]
20
+ call [draw_bottom]
21
+ call [draw_left]
22
+ call [draw_right]
23
+ halt
24
25
+draw_top:
26
+ mv A, 1
27
28
29
+ ret
30
31
+draw_bottom:
32
33
34
+draw_left:
35
36
37
+draw_right:
38
0 commit comments