-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcircles.S
More file actions
44 lines (36 loc) · 678 Bytes
/
circles.S
File metadata and controls
44 lines (36 loc) · 678 Bytes
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
colors_label: .ascii "Colors "
print_colors:
mov rsi, offset colors_symbol
mov rcx, 5
call print
mov rsi, offset accent1
mov rcx, 5
call print
mov rsi, offset colors_label
mov rcx, 10
call print
mov rsi, offset separator_symbol
mov rcx, 8
call print
mov rsi, offset blue
call print_circle
mov rsi, offset cyan
call print_circle
mov rsi, offset green
call print_circle
mov rsi, offset yellow
call print_circle
mov rsi, offset red
call print_circle
mov rsi, offset purple
call print_circle
mov byte ptr [r10], '\n'
inc r10
ret
print_circle:
mov rcx, 5
call print
mov rsi, offset circle_symbol
mov rcx, 5
call print
ret