diff options
Diffstat (limited to 'Source/Applications')
-rw-r--r-- | Source/Applications/SampleApps/Makefile | 2 | ||||
-rw-r--r-- | Source/Applications/SampleApps/cxxdemo.cpp | 10 |
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"); } |