[Coco] Call code Syscall
Wayne Campbell
asa.rand at gmail.com
Sun Feb 18 10:27:18 EST 2018
You are incorrect in your example. $8E is the call code. The call codes are
not defined in /DD/DEFS. They are listed in the NitrOS9 manual under system
calls. In Basic09 I always define the call code using a BYTE variable, as
follows:
DIM CallCode:BYTE
TYPE REG=cc,a,b,dp: BYTE; x,y,u:INTEGER
DIM regs:REG
CallCode:=$8D \(* getstat call code
regs.a:= whatever
regs.b:= whatever
RUN SysCall(CallCode,regs)
Wayne
On Feb 16, 2018 9:49 AM, "Taylor, Phillip L CIV" <Phillip.L.Taylor at uscg.mil>
wrote:
> Hello
>
> I was looking at some old code that was written to run under the Old Tandy
> Os9 Level 2 and I am trying to figure out where the call code is in the
> /dd/defs file.
>
> Regs.A = 0
> Regs.Y = 1
> Regs.B = $84
> Regs.X = $6401
> Run Syscall ($8e,regs)
>
> Executing $8e and the call code is $84. This location may have several
> different call codes and I am trying to see all the call codes for this
> address and what each one does?
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list