summaryrefslogtreecommitdiff
path: root/Source/Applications
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-18 17:17:36 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-18 17:17:36 +0200
commite589a45295a871f38d4a1d1f23b370b612f99be5 (patch)
treeb59f1190633368d78b23d78e011c99fa8fa3cc90 /Source/Applications
parent323e12f1f9ab33df15dcfed210e807561d98fa8c (diff)
downloadMelon-e589a45295a871f38d4a1d1f23b370b612f99be5.tar.gz
Melon-e589a45295a871f38d4a1d1f23b370b612f99be5.zip
Syscall interface starts being implemented !
Diffstat (limited to 'Source/Applications')
-rw-r--r--Source/Applications/SampleApps/Makefile2
-rw-r--r--Source/Applications/SampleApps/cxxdemo.cpp10
2 files changed, 8 insertions, 4 deletions
diff --git a/Source/Applications/SampleApps/Makefile b/Source/Applications/SampleApps/Makefile
index 6d12f3f..d45011e 100644
--- a/Source/Applications/SampleApps/Makefile
+++ b/Source/Applications/SampleApps/Makefile
@@ -4,7 +4,7 @@ ASM = nasm
ASMFLAGS = -f elf
CXX = g++
-CXXFLAGS = -nostartfiles -nostdlib -fno-exceptions -fno-rtti -I ../../Library/Common -I ../../Library/Userland -D THIS_IS_MELON_USERLAND
+CXXFLAGS = -nostartfiles -nostdlib -fno-exceptions -fno-rtti -I ../../Library/Common -I ../../Library/Interface -I ../../Library/Userland -D THIS_IS_MELON_USERLAND
LD = ld
LDFLAGS = --entry=start -Ttext=40000000
diff --git a/Source/Applications/SampleApps/cxxdemo.cpp b/Source/Applications/SampleApps/cxxdemo.cpp
index 5d95d28..af16599 100644
--- a/Source/Applications/SampleApps/cxxdemo.cpp
+++ b/Source/Applications/SampleApps/cxxdemo.cpp
@@ -1,10 +1,14 @@
#include <Syscall/Syscall.wtf.h>
#include <WChar.class.h>
+#include <VirtualTerminal.class.h>
int main() {
+ VirtualTerminal x = VirtualTerminal::get();
for (char c = ' '; c <= 'z'; c++) {
- syscall(0xFFFFFF02, (unsigned int)c);
- putch(c);
+ sleep((u32int)c / 4);
+ x.put(c);
}
- putch('\n');
+ x.put("\n");
+ x.writeHex(0xDEADBEEF);
+ x.put("\n");
}