Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #559

Re: A$= $ptr% Test

Date 2011-07-14 12:57 +0100
From cferris@freeRemoveuk.com.invalid
Newsgroups comp.sys.acorn.programmer
Subject Re: A$= $ptr% Test
Message-ID <786aa6f251.cferris@cferris.freeuk.com> (permalink)
References <ecf590f251.cferris@cferris.freeuk.com> <xpzTp.30253$Ll1.2098@newsfe24.ams2>
Organization Home

Show all headers | View raw


In message <xpzTp.30253$Ll1.2098@newsfe24.ams2>
          Steve Drain <steve@kappa.me.uk> wrote:

> cferris wrote:
> > With ref to 'A$ = $Ptr%'
> >
> > Is there anyway of test before using this to make sure - it is not
> > trying to work with rubish information?
[snip[

> A$ may start with the printable characters, but can be followed by
> control  characters that make the printed output look like rubbish.
> 

On the Iyonix using 'Reporter' with '*ReportLogOn' enabled the final
moments of the program/lockup - a =USRN% is called. Then 'ReportLogEnd'
then a few lines (different each try) and then rubbish.

So trying to backtrace the USR - replaced the small bit of ARM code with
BASIC.

Put in *report $Ptr%
the output on the RPC looks ok except there are some lines of what
looks like Rubbish.

So thought to use the following :-

From another prog :-
**********
DEF FNmGetString(ptr%)
LOCAL i%,n$   :REM Init i% n$

WHILE (ptr%?i%>=32) AND (i%<255)

  n$+=CHR$ (ptr%?i%)
  i%+=1

ENDWHILE
=n$

Hope this makes some sense.
-- 
Colin Ferris Cornwall UK

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

A$= $ptr% Test cferris@freeRemoveuk.com.invalid - 2011-07-14 09:02 +0100
  Re: A$= $ptr% Test Steve Drain <steve@kappa.me.uk> - 2011-07-14 11:19 +0100
    Re: A$= $ptr% Test cferris@freeRemoveuk.com.invalid - 2011-07-14 12:57 +0100
      Re: A$= $ptr% Test Paul Sprangers <Paul@sprie.nl> - 2011-07-14 14:14 +0200
        Re: A$= $ptr% Test "Ste (news)" <steve@revi11.plus.com> - 2011-07-14 13:46 +0100
      Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 04:54 -0700
        Re: A$= $ptr% Test Martin <News03@avisoft.f9.co.uk> - 2011-08-14 15:34 +0100
          Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 08:39 -0700
            Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 17:11 -0700
              Re: A$= $ptr% Test Steve Drain <steve@kappa.me.uk> - 2011-08-15 12:30 +0100
  Re: A$= $ptr% Test Martin Wuerthner <spamtrap@mw-software.com> - 2011-07-14 13:16 +0200
  Re: A$= $ptr% Test Martin <News03@avisoft.f9.co.uk> - 2011-07-14 15:32 +0100

csiph-web