From cfdee0a6fac625774d435ccc03dcfa8c527d0f45 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 4 Sep 2021 13:57:20 -0700 Subject: fix apps/ex7.mu I'm increasingly missing CI. --- 501draw-text.mu | 7 +++++++ apps/ex7.mu | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/501draw-text.mu b/501draw-text.mu index 5d2917a9..61023642 100644 --- a/501draw-text.mu +++ b/501draw-text.mu @@ -81,6 +81,13 @@ fn move-cursor-to-left-margin-of-next-line screen: (addr screen) { set-cursor-position screen, cursor-x, cursor-y } +fn draw-code-point-at-cursor screen: (addr screen), c: code-point, color: int, background-color: int { + var cursor-x/eax: int <- copy 0 + var cursor-y/ecx: int <- copy 0 + cursor-x, cursor-y <- cursor-position screen + var dummy/eax: int <- draw-code-point screen, c, cursor-x, cursor-y, color, background-color +} + fn draw-code-point-at-cursor-over-full-screen screen: (addr screen), c: code-point, color: int, background-color: int { var cursor-x/eax: int <- copy 0 var cursor-y/ecx: int <- copy 0 diff --git a/apps/ex7.mu b/apps/ex7.mu index b41b6f72..61b9ac20 100644 --- a/apps/ex7.mu +++ b/apps/ex7.mu @@ -9,10 +9,9 @@ # k, l. fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { - var space/eax: grapheme <- copy 0x20 set-cursor-position screen, 0, 0 { - draw-cursor screen, space + draw-cursor screen, 0x20/space var key/eax: byte <- read-key keyboard { compare key, 0x68/h -- cgit 1.4.1-2-gfad0 a> tree commit diff stats
path: root/Makefile
blob: a23289ab591ae1cb3f9a8c9109ab6de3b0d1e342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149