summaryrefslogtreecommitdiff
path: root/apps/examples/pashello/README.txt
blob: b1984696657a9243cfa674759b0d61c115ff569b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
README
^^^^^^

hello.pas

  This is a sample "Hello, World!" Pascal Program

hello.pex

  This is the compiled, linked P-Code executable that results
  when hello.pas is compiled.

hello.h

  This file defines an initialized C array holds a copy of
  hello.pex.  This file as created by:

    xxd -i hello.pex >hello.h

mkhello.sh

  This is a scripts that can be used to rebuild both hello.pex
  and hello.h.

device.c

  The hello.pex file must be provided to the interpreter as a file
  in the file system.  Normally this would be done using real storage
  medium.  In this example, we will use device.c:

  device.c implements a simple device driver.  Reads from this device
  will access the in-memory copy of hello.pex  This device driver is
  registered as /dev/pashello in the pseudo filesystem.