summaryrefslogtreecommitdiff
path: root/Source/Applications/ASMApps/test.asm
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/ASMApps/test.asm')
-rw-r--r--Source/Applications/ASMApps/test.asm20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/Applications/ASMApps/test.asm b/Source/Applications/ASMApps/test.asm
new file mode 100644
index 0000000..80965b4
--- /dev/null
+++ b/Source/Applications/ASMApps/test.asm
@@ -0,0 +1,20 @@
+%include "syscalls.asm"
+
+start:
+ mov ecx, ' '
+ loop:
+ inc ecx
+ mov eax, SC_PUTCH ;temporarily defined for writing one char to screen
+ mov ebx, ecx
+ int 64
+ mov eax, SC_SLEEP ;temporary syscall for sleeping
+ mov ebx, 30 ;20ms
+ int 64
+ cmp ecx, 127
+ jnz loop
+ mov eax, 0
+ mov eax, SC_PUTCH
+ mov ebx, 10 ;newline
+ int 64
+ int 66 ;finish task
+end: