From e589a45295a871f38d4a1d1f23b370b612f99be5 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sun, 18 Oct 2009 17:17:36 +0200 Subject: Syscall interface starts being implemented ! --- Source/Applications/SampleApps/Makefile | 2 +- Source/Applications/SampleApps/cxxdemo.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'Source/Applications/SampleApps') 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 #include +#include 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"); } -- cgit v1.2.3