##base _RTGMasterBase
##bias 30
OpenRtgScreen(ScreenReq,Tags)(A0,A1)
CloseRtgScreen(RtgScreen)(A0)
SwitchScreens(RtgScreen,Buffer)(A0,D0)
LoadRGBRtg(RtgScreen,Table)(A0,A1)
LockRtgScreen(RtgScreen)(A0)
UnlockRtgScreen(RtgScreen)(A0)
GetBufAdr(RtgScreen,Buffer)(A0,D0)
GetRtgScreenData(RtgScreen,RtgTags)(A0,A1)
GetSegment(RtgScreen)(A0)
SetSegment(RtgScreen,segnum)(A0,D0)
RtgScreenAtFront(RtgScreen)(A0)
RtgScreenModeReq(Tags)(A0)
FreeRtgScreenModeReq(ScreenReq)(A0)
WriteRtgPixel(MyScreen,BufferAdr,XPos,YPos,Color)(A0,A1,D0,D1,D2)
WriteRtgPixelRGB(MyScreen,BufferAdr,XPos,YPos,Pixel)(A0,A1,D0,D1,D2)
FillRtgRect(MyScreen,BufferAdr,Color,Left,Top,Width,Height)(A0,A1,D0,D1,D2,D3,D4)
FillRtgRectRGB(MyScreen,BufferAdr,Color,Left,Top,Width,Height)(A0,A1,D0,D1,D2,D3,D4)
WriteRtgPixelArray(MyScreen,BufferAdr,Array,Left,Top,Width,Height)(A0,A1,A2,D0,D1,D2,D3)
WriteRtgPixelRGBArray(MyScreen,BufferAdr,Array,Left,Top,Width,Height)(A0,A1,A2,D0,D1,D2,D3)
CopyRtgPixelArray(MyScreen,BufferAdr,Array,Left,Top,Width,Height,SrcX,SrcY)(A0,A1,A2,D0,D1,D2,D3,D4,D5)
GetGfxCardData(MyScreen,tagitems)(A0,A1)
DrawRtgLine(MyScreen,BufferAdr,Color,X1,Y1,X2,Y2)(A0,A1,D0,D1,D2,D3,D4)
DrawRtgLineRGB(MyScreen,BufferAdr,Color,X1,Y1,X2,Y2)(A0,A1,D0,D1,D2,D3,D4)
WaitRtgSwitch(MyScreen)(A0)
WaitRtgBlit(MyScreen(A0)
RtgWaitTOF(MyScreen)(A0)
RtgBlit(MyScreen,SrcBuf,DstBuf,SrcX,SrcY,DstX,DstY,Width,Height,minterm)(A0,A1,A2,D0,D1,D2,D3,D4,D5,D6)
RtgBltClear(MyScreen,BufNum,xpos,ypos,width,height)(A0,A1,D0,D1,D2,D3)
CallRtgC2P(MyScreen,BufAdr,Array,signal,xpos,ypos,width,height,mode)(A0,A1,A2,D0,D1,D2,D3,D4,D5)
OpenClient(SBase,host,port,mode,protocol)(A0,A1,D0,D1,D2)
OpenServer(SBase,port,mode,protocol)(A0,D0,D1,D2)
CloseClient(SBase,s)(A0,A1)
CloseServer(SBase,s)(A0,A1)
RunServer(SBase,s,in_buffer, out_buffer, maxplayers)(A0,A1,A2,A3,D0)
RtgSend(SBase,s,message,receiver,len)(A0,A1,A2,A3,D0)
RtgRecv(SBase,s,message,sender,len)(A0,A1,A2,A3,D0)
RtgAccept(SBase,s)(A0,A1)
RtgIoctl(SBase,s,arg)(A0,A1,A2)
GetUDPName(SBase,s)(A0,A1)
RtgInAdr(SBase,si)(A0,A1)
RtgText(MyScreen,map,mytext,length,xpos,ypos)(A0,A1,A2,D0,D1,D2)
RtgSetFont(MyScreen,myfont)(A0,A1)
RtgClearPointer(MyScreen)(A0)
RtgSetPointer(MyScreen,sprite)(A0,A1)
RtgSetTextMode(MyScreen,fgcolor,bgcolor,drmode)(A0,D0,D1,D2)
RtgOpenFont(MyScreen,myattr)(A0,A1)
RtgCloseFont(MyScreen,myfont)(A0,A1)
RtgSetTextModeRGB(MyScreen,fgcolor,bgcolor,drmode)(A0,D0,D1,D2)
RtgInitRDCMP(MyScreen)(A0)
RtgWaitRDCMP(MyScreen)(A0)
RtgGetMsg(MyScreen)(A0)
RtgReplyMsg(MyScreen,imsg)(A0,A1)
##end
