Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.sys.pdp10 > #9971
| From | Rich Alderson <news@alderson.users.panix.com> |
|---|---|
| Newsgroups | alt.sys.pdp10 |
| Subject | Re: Command line parsing and MACRO-20 |
| Date | 2026-08-29 18:04 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <mdd4igcfus3.fsf@panix5.panix.com> (permalink) |
| References | <87fqzyjexe.fsf@atr2.ath.cx> <mdd33vxaghq.fsf@panix5.panix.com> <87cxv0hohr.fsf@atr2.ath.cx> |
jayjwa <jayjwa@atr2.ath.cx.invalid> writes:
[ snip ]
> Yes, and if they don't work it leaves a novice debugging expert's code
> with no idea what's going wrong. This happened in the Longo text with
> the Chapter 11 macros for interrupt handling. 2/3 of the examples won't
> assemble. Why? I don't know. It could be a difference in TOPS-20
> versions, MACRO-20 versions, a printing error, a user copy error, a case
> error (it's case-insensitive until it's not) or really anything. Here's
> the last program (ex 5) without relying on those macros.
Does this version of the program work without those macros? Just curious, but
no enough so to copy and assemble it for myself.
[ snip ]
> ; Elapsed time handler for channel 0, key-in. The first time this is
> ; called 'strtim' will be zero, indicating to save the begin time. When
> ; it's not zero, and called again, this indicates to save the end time.
> subttl Timer handler
> etimer: move t1, strtim ; Check if strtim is 0
> skipn t1
> jrst [time% ; Yes, get start time
> movem t1, strtim ; And stash for later
> jrst exthdl] ; Exit handler
> time% ; Second time here
> movem t1, endtim ; Get, save end time
[ snip ]
Why are you moving the value of strtim into an AC? The SKIP instructions take
an effective address, so unless you need the initial value of strtim for
something, you only need
SKIPN STRTIM
If you want to check it, AND save the value, use
SKIPN T1,STRTIM
>> You keep wanting TOPS-20 to be Unix. It isn't.
> Not really. I referenced C argc/argv because everyone knows that and I
> didn't know how else to get my point across simply and direct.
You're lucky that I happen to know those terms from a C programming book I read
in the 1980s. I have no idea how to use them, because I am not a C programmer
and have no need to know.
--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen
Back to alt.sys.pdp10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Command line parsing and MACRO-20 jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-08-28 14:08 -0400
Re: Command line parsing and MACRO-20 scott@slp53.sl.home (Scott Lurndal) - 2026-08-28 18:35 +0000
Re: Command line parsing and MACRO-20 jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-08-29 12:19 -0400
Re: Command line parsing and MACRO-20 Rich Alderson <news@alderson.users.panix.com> - 2026-08-29 17:51 -0400
Re: Command line parsing and MACRO-20 Rich Alderson <news@alderson.users.panix.com> - 2026-08-28 20:59 -0400
Re: Command line parsing and MACRO-20 jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-08-29 12:37 -0400
Re: Command line parsing and MACRO-20 Rich Alderson <news@alderson.users.panix.com> - 2026-08-29 18:04 -0400
Re: Command line parsing and MACRO-20 jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-08-30 11:38 -0400
Re: Command line parsing and MACRO-20 Rich Alderson <news@alderson.users.panix.com> - 2026-08-30 22:18 -0400
csiph-web