file lib.c includes the few routines that we have created up to
now. They should explain sufficiently well how to implement the
services that V2_OS provides.
Program testapp.c shows the usage of the routines in lib.c

To create the ".app" files, just do a make app.

To have them in a V2FS_formatted diskette, here is how you can do from
linux with a second (blank) diskette. First format the disk:

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

dd if=/dev/zero of=/dev/fd0 bs=512 count=1   #zero first sector
../../tools/Linux/v2_init /dev/fd0 32 0 0    #actual init: diskette
					      can hold up to 32 objects

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

then, with the diskette still in the unit:

make load

Your V2FS diskette now loads two runnable apps, testapp.app and
helloworld.app. You should run them from V2_OS as explained elsewhere
(I hope)

DISCLAIMER: I am a C programmer. Most of what you see in small files
(*.s and the beautiful std.lds file) are the result of long hours of
trial-and-error that miraculously results in a working
application. It's mostly black magic to me. If you understand better
than me how to use GCC tools to produce exotic formats, I'd be
interested in finding out...

DISCLAIMER #2: the utilities in ../../tools/Linux are tools developed
by me here at V2 for internal use, and I have not been given (up to
now) the authorization to distribute the code. So you only get Linux
Glibc execs. Maybe in the future...

Carlo <karl@hand.v2.nl>

