[Coco] Call code Syscall
ooogalapasooo at aol.com
Sun Feb 18 17:09:24 EST 2018
Wayne, actually, the call codes are defined in /dd/defs/os9defs (os9.d for nitros9). They are the "F$XxxXxx" definitions. BUT, they are not explained other than their name and description. There's no reference of the regs used to set them up, only the byte code and a short description of it's purpose. To get the info on how to use them, you must reference the same "F$XxxXxx" name in the "Technical Reference" manual to get the proper usage.
Without knowledge of what's in the defs files, one would not get very far in assembly or C programming in OS9.
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull
My Music from the Tandy/Radio Shack Color Computer 2 & 3
Co-Contributor, Co-Editor for CocoPedia
E-Mail: ooogalapasooo at aol.com
From: Wayne Campbell <asa.rand at gmail.com>
To: CoCoList <coco at maltedmedia.com>
Sent: Sun, Feb 18, 2018 10:27 am
Subject: Re: [Coco] Call code Syscall
You are incorrect in your example. $8E is the call code. The call codes arenot defined in /DD/DEFS. They are listed in the NitrOS9 manual under systemcalls. In Basic09 I always define the call code using a BYTE variable, asfollows:DIM CallCode:BYTETYPE REG=cc,a,b,dp: BYTE; x,y,u:INTEGERDIM regs:REGCallCode:=$8D \(* getstat call coderegs.a:= whateverregs.b:= whateverRUN SysCall(CallCode,regs)WayneOn 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>-- Coco mailing listCoco at maltedmedia.comhttps://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco