🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.micro.atari
1 messages
1 total messages Started by Michael Jenkin Mon, 28 Oct 1985 21:41
hippo-C and the ST, a flame, an answer, and some questions
#1344
Author: Michael Jenkin
Date: Mon, 28 Oct 1985 21:41
47 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads