Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!van-bc!rsoft!mindlink!a665 From: a665@mindlink.UUCP (Anthon Pang) Newsgroups: comp.lang.modula2 Subject: Re: Benchmark M2 - req.library - problems! Message-ID: <3782@mindlink.UUCP> Date: 10 Nov 90 02:40:43 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 20 > d85-jmh@nada.kth.se writes: > I recently downloaded the file bm2req.lzh from abcfd20.larc.nasa.gov. > [...] > The library base is not stored in > A6 before the call to the library routine (the instruction loading A6 is > totally weird). Not even the parameters are passed correctly, the > ColorRequester routine should have one parameter passed in D0 but it is > passed in A0 instead. Now, either I am deluding myself or else there is > something seriously wrong with the bm2req-package. > Comments anyone. I am using version 1.04 of the compiler if that makes any > difference. The code generated is correct...it's just the wrong code for that function...in the case of ColorRequester, this is the glue code for FileRequester. The problem is not serious, as full source is provided. The fix is simple, reorder the "DEF_PROC"s in the same order as the "PROCEDURE_CODE"s...recompile. However, a new version is now available, which supports version 2.3 of req.library. If it doesn't show up on abcfd20 by Monday, I'll ftp it there.