Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Martin Newsgroups: comp.sys.acorn.programmer Subject: Re: Name of a program Date: Fri, 17 Apr 2026 23:24:36 +0100 Organization: None Lines: 64 Message-ID: <5ccb276441News04@avisoft.f9.co.uk> References: <5cca837cdbbob@sick-of-spam.invalid> <5cca87776fNews04@avisoft.f9.co.uk> <5cca8d05ebbob@sick-of-spam.invalid> <01ece1ca5c.harriet@bazleyfamily.co.uk> <5ccaee3398bob@sick-of-spam.invalid> <5ccb038169News04@avisoft.f9.co.uk> <5ccb161bb5bob@sick-of-spam.invalid> Injection-Date: Fri, 17 Apr 2026 22:25:09 +0000 (UTC) Injection-Info: dont-email.me; posting-host="9841f27a00525ddb8f2f2ea4ae6cc908"; logging-data="2977642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VoxLximbt+QXH5Adbbpuc" User-Agent: Pluto/3.21a (RISC OS/5.31) NewsHound/v1.54 Cancel-Lock: sha1:zIZ8DN6qqn+6JKEd+NQRxDajz2k= Xref: csiph.com comp.sys.acorn.programmer:6636 In article <5ccb161bb5bob@sick-of-spam.invalid>, Bob Latham wrote: > In article <5ccb038169News04@avisoft.f9.co.uk>, > Martin wrote: > > In article <5ccaee3398bob@sick-of-spam.invalid>, > > Bob Latham wrote: > > 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. That explains that. [Snip] > > 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 , 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. That applies to code I write as well ... and some using BASIC, and some BASIC Assembler. And there are things you can do to investigate what has gone wrong. If you want some help with this, please email me directly. Is your debugging simply using the facilities of the BASIC Interpreter to display variable values? How do you display register values from the assembler? How do you display blocks of storage? > 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. So this other program knows the full file name of what it is about to load into BASIC? So can it set a variable name or something with the program name? I am still unsure what you need the program name for, and how you want to use it! > 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. Correct. The OS command processor has not seen it. Martin -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.