Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.sys.pdp10 > #9964
| From | jayjwa <jayjwa@atr2.ath.cx.invalid> |
|---|---|
| Newsgroups | alt.sys.pdp10 |
| Subject | Command line parsing and MACRO-20 |
| Date | 2026-08-28 14:08 -0400 |
| Organization | atr2net 2026 |
| Message-ID | <87fqzyjexe.fsf@atr2.ath.cx> (permalink) |
In MACRO-20, how do I get at the command line? I know it's possible
because DIRECT and TYPE parse the command line. I've completed one of
the two texts on assembly (the Longo one) and I haven't seen how to do
it. In the Gorin text, there's something about COMND but it's buried
under piles of macros. The explaination for COMND in the Monitor Ref
Call Manual made me physically ill (it's over 20 pages, give or
take). Maybe that's how to do it; maybe it's not. It can't believe it's
that insanely complex. I only need to parse what would be *argv[] in C
(and maybe argc). I don't want to head down a rabbit hole if there's no
rabbit to be found.
Can someone show a simple example of parsing the command line? Something
like:
@echo hello
hello
echo.mac:
comment $
Try to find out how to get at the command line, such as in C's argv and argc.
$
title echo
search monsym, macsym
STDAC. ; Label accums in std way
buffer: asciz /This is where I imagine the text would be./
start: TMSG (The text entered is: )
move t1, [point 7, buffer] ; Would really pnt to cmd line
psout% ; for manipulation or printing
done: haltf% ; Exit to monitor
jrst start ; Restartable
end start ; Assembler is done
I checked with DDT and my command line text is nowhere in there.
@debug echo hello
LINK: Loading
[LNKDEB DDT execution]
DDT
echo$:
start$b $g
$1B>>START/ HRROI T1,DONE+2 ^
BUFFER+10/ TLZA Q3,0 $t;e. ^
BUFFER+7/ uld b ^
BUFFER+6/ xt wo ^
BUFFER+5/ he te ^
BUFFER+4/ ine t ^
BUFFER+3/ imag ^
BUFFER+2/ ere I ^
BUFFER+1/ is wh ^
BUFFER/ This ^
.JBVER/ ^@ ^
.JBCST/ ^@ ^
.JBOPS/ ^@ ^
.JBINT/ ^@ ^
.JBCOR/ ^@^S0^A@ ^
.JBCHN+1/ ^@ ^
.JBCHN/ ^@ ^
.JBOPC/ ^@ ^
.JBTPC/ ^@ ^
.JBCNI/ ^@ ^
.JBAPR/ ^@ ^
.JBREN/ ^@ ^
.JBPFH/ ^@ ^
.JBFF+1/ ^@ ^
.JBFF/ ^@^@^@^A$@ ^
.JBSA/ ^@^S8^@4@ ^
.JBUSY/ ^@ ^
.JBSYM/ wp^@Z@ ^
.JBHRL/ ^@ ^
.JBEDV+2/ ^@ ^
.JBEDV+1/ ^@ ^
.JBEDV/ ^@ ^
--
PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
"The Internet should always be the Wild West!"
Back to alt.sys.pdp10 | Previous | Next — 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