You didn't quote the old message so I don't know
if you are talking to me or Ivan.
Assuming it is me, then the TCP/IP code is in a
beta version of Hercules/380 in the files area here:
https://groups.yahoo.com/neo/groups/hercules-os380/info
and I have reproduced the relevant bit here:
general2.c:
/*-------------------------------------------------------------------*/
/* 0A SVC - Supervisor Call [RR] */
/*-------------------------------------------------------------------*/
DEF_INST(supervisor_call)
{
BYTE i; /* Instruction byte 1 */
PSA *psa; /* -> prefixed storage area */
RADR px; /* prefix */
int rc; /* Return code */
RR_SVC(inst, regs, i);
#if 1
/* if we have an SVC and R2 is set to a magic number, then
this is actually a request from EZASOKET. */
if ((i == 120) && (regs->GR_L(0) == 0xffffffe1)
&& (regs->GR_L(1) == 0xffffffe1)
)
{
regs->GR_L(1) = regs->GR_L(2); /* normal parameter list */
ezahandler(regs);
return;
}
#endif
I just noticed the comment is wrong though.
It's if R0 and R1 are set to magic numbers,
not R2.
BFN. Paul.