Used words
stdint.h
../drivers/video/VGA_linear.h
../lib/ren_comp.h
../lib/primary_definitions.h
../sys/sys_clck.h
d
f
e
p
Process Stack:
#ifndef
P_MAN_H
#define
#include
/*
Things
To
Note:
-
Once
a
process
is
created
it
does
not
execute
immediately.
This
must
be
called
using:
p_exec(p_id
p_et).
Process
execution
time
calculated
based
on
the
length
of
input
string
each
character
counting
for
0.01
seconds.
The
stack
automatically
updated
when
executed.
All
processes
will
executed
after
an
initial
they
are
live.
*/
//
structures
typedef
struct
{
unsigned
int
p_id
ID
p_et
signed
p_rs
runstate
=
dead
1
live
p_t
ticket
executed
defined
by
char*
p_inst
instructions
}
constants
const
float
i
0.0f
dynamic
variables
p_cnt
0
count
automatic
handler
p_stack256
primary
(alternate
method)
p_id_handler
(char*
action
p_id)
(action
==
)
?
p_destory(p_id)
:
p_freeze(p_id
1)
p_exec(p_id)
p_print()
ret()
return
}
create
new
void
p_create
c_p_inst)
p
p.p_id
+
1
p.p_inst
c_p_inst
p.p_et
sizeof(c_p_inst)
/
0.01f
p_stackp.p_id
add
to
destory
p_destory
(int
p_stackp_id.p_id
000
set
PID
000
making
possible
re-use
in
memory
creating
p_stackp_id.p_et
reset
p_stackp_id.p_rs
would
normally
make
dead
but
deleted
due
p_id
000
this
can
over-written
p_stackp_id.p_inst
NULL
remove
all
decrease
count
freeze
(milliseconds)
p_freeze
p_id
t)
note:
Currently
objective
operating
system
'hang'
called.
multi-threading
has
been
implemented
have
changed.
More
features
such
as
invoke
event
handlers
added
here
eventually.
hang
clock
CPU
complete
iterative
operations
clck_hang(t
0)
again
repetative
(compilation)
p_exec
first
so
that
queued
setting
its
state
p_stack_runtime()
update
p_stack_update(0)
vars
p_et_stack
method
redefine
schedule
updating
if
p_rs
(live)
uses
linear
sorting
algorithm
order
p_stack_update
cn)
(cn
<
sizeof(p_stack))
(p_stackcn.p_rs
p_et_stackcn
p_stackcn.p_et
!=
0)
(p_et_stackcn
p_et_stackcn
1)
move
closer
point
swapping
their
values
p_stackp_et_stackcn
1
p_stackp_et_stackcn
onto
next
cn
p_stack_update(cn)
else
we
don't
anything
compare
live
calls
looping
through
elements
p_stack_runtime
()
sizeof(p_stack)
++i)
check
yes
then
(p_stacki.p_rs
p_stack_exec(p_stacki.p_id)
executes
code
p_stack_exec
p_stackp_id.p_inst
get
exec_time
p_stackp_id.p_et
handle
compile(instructions)
once
remaining
p_et
(IMPLEMENT)
print
p_print
puts(0
0
BLACK
BRIGHT
)
i
p_stack->p_id)
#endif
Create your own