diff options
Diffstat (limited to 'Source/Applications/Demos/asmdemo.asm')
-rw-r--r-- | Source/Applications/Demos/asmdemo.asm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/Applications/Demos/asmdemo.asm b/Source/Applications/Demos/asmdemo.asm new file mode 100644 index 0000000..d57cc9b --- /dev/null +++ b/Source/Applications/Demos/asmdemo.asm @@ -0,0 +1,30 @@ +%include "lib-melonasm.asm" + +start: ; label used for calculating app size + mov ecx, [data] + mov ebx, ecx + mov eax, SC_WHEX + int 64 + mov eax, SC_PUTCH + mov ebx, 10 + int 64 +lblloop: + 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 lblloop + mov eax, 0 + mov eax, SC_PUTCH + mov ebx, 10 ;newline + int 64 + int 66 ;finish task + +data: +dd 0x00000020 + +end: ; label used for calculating app size |