Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > de.comp.sys.atari > #687

Re: Thing 1.50

Path csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!hirsch.in-berlin.de!b.maus.de!Gerhard_Stoll
From Gerhard_Stoll@b.maus.de (Gerhard Stoll)
Newsgroups de.comp.sys.atari
Message-ID <201512191836.a62267@b.maus.de> (permalink)
References <ddkvo4FbhkiU1@mid.individual.net>
Organization MAUS Berlin (+49-30-82701142)
Subject Re: Thing 1.50
Date Sat, 19 Dec 2015 18:36:00 +0100
X-Gateway b.maus.de gb1.1r 102698.1858
X-Gateway-Administrator postmaster@b.maus.de
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding 8bit
Lines 57
Xref csiph.com de.comp.sys.atari:687

Show key headers only | View raw


Christian Zietz <newsgroup.1001@chz.xyz> worte:

> Mit welcher XHDI.C wird Thing eigentlich compiliert?

Ich habe den Quelltext hochgeladen.

> eine Zeile, die ich in XHDI.C in xhdi_130.zip nicht

Im Gegensatz zum Original nutze ich die Getcookie Funktion der MiNTLib.
Normlerweise müßte man da noch mehr ändern, nämlich das vor jeder Nutzung einer
XHDI Funktion der Cookie neu abgefragt wird.

Der relevante Teil aus Getcookie sieht so aus[1]:
-------------------------------cut-------------------------------
int Getcookie (long cookie, long *p_value)

		/* Ssystem supported, use it */
		int	r;
		long	v = -42;

		/* Make sure that P_VALUE is zeroed if the cookie can't
		   be found.  Reported by Tommy Andersen
		   (tommya@post3.tele.dk).  */
		if (p_value)
			*p_value = 0;
			
		r = (int) Ssystem(S_GETCOOKIE, cookie, &v);
		/*
		 * Backward compatibility for MiNT 1.14.7:
		 * Ssystems() returns cookie value and ignores arg2!!
		 */
		if (r != -1 && v == -42)				
			v = r;
 
		if (r == -1)							/* not found */
		{
			v = 0;
			r = EERROR;
		}
		else
			r = 0;

		if (p_value)
			*p_value = v;

		return r;
-------------------------------cut-------------------------------

Ich sehe da keinen Fehler und bei mir geht es ja. Sieht auch im Debugger gut
aus. Mich würde interessieren welchen Wert das Register A0 hat. Kann jetzt nur
nicht sagen ob man dies bei FreeMiNT/XaAES iregndwie einstellen kann, um an die
Werte zu kommen.

Gerhard

[1] Die Lib mit Quellen liegt auch im SVN.

Back to de.comp.sys.atari | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-07 14:27 +0100
  Re: Thing 1.50 Arno Welzel <usenet@arnowelzel.de> - 2015-12-08 12:44 +0100
    Re: Thing 1.50 Thomas Binder <usenet_2015-12@baernet.net> - 2015-12-09 20:47 +0100
      Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-11 09:54 +0100
        Re: Thing 1.50 Arno Welzel <usenet@arnowelzel.de> - 2015-12-12 18:40 +0100
          Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-18 13:01 +0100
        Re: Thing 1.50 Thomas Binder <usenet_2015-12@baernet.net> - 2015-12-14 00:22 +0100
    Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-11 09:54 +0100
  Re: Thing 1.50 Update 1 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-11 09:49 +0100
    Re: Thing 1.50 Update 2 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-20 15:25 +0100
  Re: Thing 1.50 Mathias Wittau <wittau@lnxnt.org> - 2015-12-17 00:00 +0100
    Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-19 13:13 +0100
      Re: Thing 1.50 Th.me@thomas-heier.de (Thomas Heier) - 2015-12-19 17:16 +0100
        Re: MagiC Mac X (war: Thing 1.50) Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-20 15:18 +0100
  Re: Thing 1.50 Christian Zietz <newsgroup.1001@chz.xyz> - 2015-12-19 13:09 +0100
    Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-19 18:36 +0100
      Re: Thing 1.50 Christian Zietz <newsgroup.1001@chz.xyz> - 2015-12-19 19:40 +0100
        Re: Thing 1.50 Gerhard_Stoll@b.maus.de (Gerhard Stoll) - 2015-12-20 15:20 +0100

csiph-web