diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/SLOF/lib/libnet/libnet.code | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/SLOF/lib/libnet/libnet.code')
-rw-r--r-- | roms/SLOF/lib/libnet/libnet.code | 16 |
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 |