2
* Creation Date: <2010/04/02 12:00:00 mcayland>
3
* Time-stamp: <2010/04/02 12:00:00 mcayland>
7
* OpenBIOS intialization
9
* Copyright (C) 2010 Mark Cave-Ayland (mark.cave-ayland@siriusit.co.uk)
11
* This program is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU General Public License
18
#include "libopenbios/openbios.h"
19
#include "libopenbios/bindings.h"
20
#include "libopenbios/initprogram.h"
25
// Bind the saved program state context into Forth
26
PUSH(pointer2cell((void *)&__context));
27
feval("['] __context cell+ !");
29
// Bind the C implementation of (init-program) into Forth
30
bind_func("(init-program)", init_program);
32
// Bind the C implementation of (go) into Forth
33
bind_func("(go)", go);