restructure project
This commit is contained in:
parent
a317d8cce1
commit
960dc907e9
87 changed files with 23 additions and 17 deletions
3
kernels/hello/Makefile
Normal file
3
kernels/hello/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
|||
NAME = hello-am
|
||||
SRCS = hello.c
|
||||
include $(AM_HOME)/Makefile
|
13
kernels/hello/hello.c
Normal file
13
kernels/hello/hello.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <am.h>
|
||||
#include <klib-macros.h>
|
||||
|
||||
int main(const char *args) {
|
||||
const char *fmt =
|
||||
"Hello, AbstractMachine!\n"
|
||||
"mainargs = '%'.\n";
|
||||
|
||||
for (const char *p = fmt; *p; p++) {
|
||||
(*p == '%') ? putstr(args) : putch(*p);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue