Browse Source

Add another example

Yann Weber 1 month ago
parent
commit
9bae3327e0
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      examples/label_loop.asmsh

+ 18
- 0
examples/label_loop.asmsh View File

@@ -0,0 +1,18 @@
1
+mov $27, %rcx
2
+.label print
3
+push %rcx
4
+mov $27, %rbx
5
+sub %rcx, %rbx
6
+add $0x0a40, %rbx
7
+push %rbx
8
+mov $1, %rax
9
+mov %rsp, %rsi
10
+mov $2, %rdx
11
+syscall
12
+
13
+pop %rbx
14
+pop %rcx
15
+.breakpoint after loop @print
16
+
17
+.run
18
+.quit

Loading…
Cancel
Save