Groups | Search | Server Info | Login | Register


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

Re: Name of a program

From Bob Latham <bob@sick-of-spam.invalid>
Newsgroups comp.sys.acorn.programmer
Subject Re: Name of a program
Date 2026-04-17 20:15 +0100
Organization None
Message-ID <5ccb161bb5bob@sick-of-spam.invalid> (permalink)
References (2 earlier) <5cca8d05ebbob@sick-of-spam.invalid> <01ece1ca5c.harriet@bazleyfamily.co.uk> <F4l*XoiEA@news.chiark.greenend.org.uk> <5ccaee3398bob@sick-of-spam.invalid> <5ccb038169News04@avisoft.f9.co.uk>

Show all headers | View raw


In article <5ccb038169News04@avisoft.f9.co.uk>,
   Martin <News04@avisoft.f9.co.uk> wrote:
> In article <5ccaee3398bob@sick-of-spam.invalid>,
>    Bob Latham <bob@sick-of-spam.invalid> wrote:
> > The nearest I've got is to intercept vector 5 and if you double
> > click a Basic file it will set the variable and you're good to go.

> Have you have done an OS_Claim,5 in another program, 

Yes, I have had a module running for at least 20 years to which sets
the variable Basic$Dir which I use a great deal. 

[Snip]

> > I'm concluding this can't be done.

The module method I have can also get the filename if you run the
basic program with a double click etc.

> Yes it can, if what you want is the filename of the running program...

> If the program that is actually running issues an OS_GetEnv SWI you
> get returned the address of the OS command which started that
> program. It will include the full <pathname><filename>, and is
> exactly the same as passed to OS_CLI and passes through the vector.

Yes, but my new found knowledge makes me doubt it can do what I want
it to do.

I write my assembler programs in BBC basic inside StrongED. I save
the file. I don't usually run the program by double clicking because
if it goes wrong there is nothing you can do to investigate why. My
new code usually goes wrong several time and has to be debugged
before it runs properly. 

So I have another program of mine which sits on the icon bar and I
drop the Basic prog on to that. This opens the Basic environment and
loads my new code into it. I now work old style in Basic to get the
bugs out. at some point i hit F12 which saves the resultant machine
code.

I then quit Basic and return to the desktop.

So as my Basic assemble code has not been 'run' from the filer but
within Basic the path will not have been set and indeed that's what
I'm seeing.

Yes, your idea is better from an overheads point of view but I don't
think it will fix my issue. 
  
> Does that help?

Better than my module - probably. Does what I want - I don't think so.

Thanks for trying to help me.

Bob.

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


Thread

Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-16 17:34 +0100
  Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-16 18:17 +0100
    Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-16 19:18 +0100
      Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-16 22:29 +0100
      Re: Name of a program Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-04-17 10:45 +0100
        Re: Name of a program Theo <theom+news@chiark.greenend.org.uk> - 2026-04-17 11:43 +0100
          Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-17 12:59 +0100
            Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-17 16:52 +0100
              Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-17 20:15 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-17 23:24 +0100
                Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-18 10:08 +0100
                Re: Name of a program Theo <theom+news@chiark.greenend.org.uk> - 2026-04-18 10:56 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-18 11:13 +0100
                Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-18 13:50 +0100
                Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-18 15:29 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-18 16:30 +0100
                Re: Name of a program Theo <theom+news@chiark.greenend.org.uk> - 2026-04-18 17:54 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-18 18:06 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-18 18:51 +0100
                Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-18 19:08 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-18 19:36 +0100
        Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-17 12:08 +0100
          Re: Name of a program Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-04-17 14:12 +0100
            Re: Name of a program Tank <webmaster@tankstage.co.uk> - 2026-04-17 15:09 +0100
              Re: Name of a program Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-04-17 19:35 +0100
              Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-17 20:17 +0100
                Re: Name of a program Martin <News04@avisoft.f9.co.uk> - 2026-04-17 23:30 +0100
      Re: Name of a program Steve Fryatt <news@stevefryatt.org.uk> - 2026-04-18 11:39 +0100
        Re: Name of a program Bob Latham <bob@sick-of-spam.invalid> - 2026-04-18 13:55 +0100

csiph-web