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


Groups > alt.sys.pdp10 > #9973

Re: Command line parsing and MACRO-20

From jayjwa <jayjwa@atr2.ath.cx.invalid>
Newsgroups alt.sys.pdp10
Subject Re: Command line parsing and MACRO-20
Date 2026-08-30 11:38 -0400
Organization atr2net 2026
Message-ID <87qzjfwrcj.fsf@atr2.ath.cx> (permalink)
References <87fqzyjexe.fsf@atr2.ath.cx> <mdd33vxaghq.fsf@panix5.panix.com> <87cxv0hohr.fsf@atr2.ath.cx> <mdd4igcfus3.fsf@panix5.panix.com>

Show all headers | View raw


Rich Alderson <news@alderson.users.panix.com> writes:

> Does this version of the program work without those macros?  Just
> curious, but no enough so to copy and assemble it for myself.

Yes, all 5 of my solutions to the user exercises that are in Chapter 11
work and do so without the macros. They are over in my thread on
alt.lang.asm. There's a file, mystuf.mac, that is supposed to create
mystuf.unv. This is accumulated from across multiple chapters, including
the file one, but is never listed in one place. The file macros work,
the interrupt ones didn't. Worse, the PDF I have is a scanned-in image
so copy/paste doesn't really work correctly (using Xpdf) so it all has
to be typed in. After two days of the macros not working, I had to make
a decision to keep trying to use them or abandon them and write the
programs without. So I did without. Here's a short example of one of
them:

; Sets an interrupt macro
define  INTER   (proc,pri,chan,key<>) <
        FIXCHN  (proc,pri,chan)
        SETEIR
        SETAIC  (chan)
        ifdif   <key><>,<SETKEY (key,chan)>     ; Only use if not default
        >

and that's not even the top-most one.

> Why are you moving the value of strtim into an AC?

I'm not really used to using that instruction. Proper use now noted.

> 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.

Don't you want to fix the C code and understand it too? So much is
written in C. I'll learn PDP-10 assembly and you learn C. Deal? Be
warned though, C pointers are actually worse than assembly ones IMNSHO.

@exec ptrdem.c
KCC:    PTRDEM
<PROGRAMMING>PTRDEM.PRE.1
<PROGRAMMING>PTRDEM.FAI.1
FAIL:  PTRDEM
LINK:   Loading
[LNKXCT PTRDEM execution]
z stores the address of m = 50110
*z stores the value of m = 10
&m is the address of m = 50110
&n stores the address of n = 50111
&o stores the address of o = 50112
&z stores the address of z = 50113
@


-- 
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 — Previous in thread | Next in thread | Find similar | Unroll thread


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