aboutsummaryrefslogtreecommitdiffstats
path: root/roms/SLOF/lib/libnet/libnet.code
diff options
context:
space:
mode:
Diffstat (limited to 'roms/SLOF/lib/libnet/libnet.code')
-rw-r--r--roms/SLOF/lib/libnet/libnet.code16
1 files changed, 16 insertions, 0 deletions
diff --git a/roms/SLOF/lib/libnet/libnet.code b/roms/SLOF/lib/libnet/libnet.code
new file mode 100644
index 000000000..419419d35
--- /dev/null
+++ b/roms/SLOF/lib/libnet/libnet.code
@@ -0,0 +1,16 @@
+
+#include <netapps.h>
+
+PRIM(NET_X2d_LOAD)
+ int alen = TOS.n; POP;
+ char *arg = TOS.a; POP;
+ long maxlen = TOS.n; POP;
+ void *loadaddr = TOS.a;
+ TOS.n = netload(loadaddr, maxlen, arg, alen);
+MIRP
+
+PRIM(NET_X2d_PING)
+ int alen = TOS.n; POP;
+ char *arg = TOS.a;
+ TOS.n = ping(arg, alen);
+MIRP