Article View: net.micro.atari
Article #1344hippo-C and the ST, a flame, an answer, and some questions
From: Michael Jenkin
Date: Mon, 28 Oct 1985 21:41
Date: Mon, 28 Oct 1985 21:41
47 lines
1992 bytes
1992 bytes
[]
A flame:
The version of hippo-C (Haba software) that I have for the ST
(although it has [fs]printf ) lacks any form of [fs]scanf.
Does anyone out there know if this is just a problem with an early
release, or am I going to have to make myself a version that
runs under hippo-C?
An answer:
Hippo-C does not directly support a number of xbios calls. In addition,
Hippo-C passes everything as a 32 bit int, so a small amount of care
must be taken in writing routines that access xbios from 'C'.
(In particular it would not be easy to make a generic xbios(n,args...).)
So for example, to get the current screen resolution (Getrez() == xbios(4)),
the following piece of code is required...
.global _Getrez
Getrez: move.w #4,-(sp)
trap #14
addq #2,sp
rts
This routine will return the current screen resolution (0,1, or 2).
Not a particularly exciting routine, but what do you want - it's
free :-).
A Question:
Does anyone know where you can obtain a copy of the GEMDOS specification?
(I assume that you can get it for free if you get the developers kit,
but I would assume that it is available in some other way.)
I would be interested in hearing from other ST (and Hippo-C) users.
A small amount of communication might result in a large decrease in
frustration.
--
Michael Jenkin University of Toronto
USENET: {decvax,ihnp4,allegra}!utcsri!utai!jenkin
CSNET: jenkin@Toronto
BELL: 416-978-7321
Technical Details
Message-ID:
<844@utai.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsri!utai!jenkinShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utai.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsri!utai!jenkin From: jenkin@utai.UUCP (Michael Jenkin) Newsgroups: net.micro.atari Subject: hippo-C and the ST, a flame, an answer, and some questions Message-ID: <844@utai.UUCP> Date: Mon, 28-Oct-85 16:41:28 EST Article-I.D.: utai.844 Posted: Mon Oct 28 16:41:28 1985 Date-Received: Mon, 28-Oct-85 17:41:11 EST Distribution: net Organization: CSRI, University of Toronto Lines: 47