2200 MASM Node seletors
From
Stephen Boyd@sboydlns@gmail.com to
comp.sys.unisys on Wed Mar 18 16:17:18 2026
From Newsgroup: comp.sys.unisys
I am having some trouble wrapping my head around MASM node selectors. Conceptually it seems easy enough. If I understand it properly, it is
like having an array of labels with the same name. For example:
P(0) EQU 100
P(1) EQU 101
P(2) EQU 102
...
I understand this type of usage referencing PROC parameters.
I guess where I am having a problem is understanding whether or not the selector has to be an integer. I am looking at PROC that seems to be
using alphabetic values as the selector.
M* PROC *2
M$$1 NAME 0
DO +(M(2,1)**0770000000000)<0 , GO M$$2
M(2,1) EQU +(M(2,1)*/6)+' '
GO M$$1
M$$2* NAME 0
CH$*(M(1,1)) EQU M(2,1)
END
Which is called like this:
M 'A' '.-'
If I am interpreting this correctly, this PROC left justifies '.-' and
then assigns that value to the label CH$('A').
Or am I missing something basic.
To my mind, the MASM manual is wonderfully vague on the subject of node selectors.
Steve B
--- Synchronet 3.21e-Linux NewsLink 1.2