[net.micro.atari] hippo-C and the ST, a flame, an answer, and some questions

jenkin@utai.UUCP (Michael Jenkin) (10/29/85)

[]

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