aboutsummaryrefslogtreecommitdiff
path: root/modules/parsers/gas/tests/bin/gas-llabel.asm
diff options
context:
space:
mode:
Diffstat (limited to 'modules/parsers/gas/tests/bin/gas-llabel.asm')
-rw-r--r--modules/parsers/gas/tests/bin/gas-llabel.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/parsers/gas/tests/bin/gas-llabel.asm b/modules/parsers/gas/tests/bin/gas-llabel.asm
new file mode 100644
index 0000000..11f3f54
--- /dev/null
+++ b/modules/parsers/gas/tests/bin/gas-llabel.asm
@@ -0,0 +1,29 @@
+# Skelix by Xiaoming Mo (xiaoming.mo@skelix.org)
+# Licence: GPLv2
+ .text
+ #.globl start
+ .code16
+start:
+ jmp code
+msg:
+ .string "Hello World!\x0"
+code:
+ movw $0xb800,%ax
+ movw %ax, %es
+ xorw %ax, %ax
+ movw %ax, %ds
+
+ movw $msg, %si
+ xorw %di, %di
+ cld
+ movb $0x07, %al
+1:
+ cmpw $0, (%si)
+ je 1f
+ movsb
+ stosb
+ jmp 1b
+1: jmp 1b
+.org 0x1fe, 0x90
+.word 0xaa55
+