MADCAP

Mark B. Wells · Communications of the ACM · 1961

r u ~ ject progr~ml with the same operation code arid appropriate addresses.Whenever one of ttae pseudo-instructions is e~com~ered, it indicates a jump to one of two places in the seque~ce depending on the answer to some question.The four questions allowed in MAD :u'e: (A'I') Is the first, operand the result; of the precedi~lg comput,qt;ion?(IVI') Is the second operand th,e result of ~he preceding eompu-tt~tion?(AC) Is the result of the precediug computati(m in the ac-( ' u m u / ~t o r ?(MQ) Is the result of the preceding computation in the multiplier quotient register (eli the IBM 704)?A typical sequence, then, for some mode context, say .... }., floating poin t, floating point", would be: JM P * + 1 ,MQ,* +5 Test : (MQ) STQ T S~ve previous result CLA A Generator code F AI ) B OUT AC Exit with result lit AC JMP *+I,AC,*-3 Test: (AC) JMP *-3,AT,*÷I Test: (AT) JMP *+l,B"I',*+3 Test: (BT) FAD A Generator ('ode ()UT AC Exit with result in AC STO T S:~ve previous result ,IMP *-9where * means "this location" and the address p a r t of each pseudo-operation indk;ates lhe j u m p to be m a d e if the answer to the question is "true".Note that in the case in which the opcrand A is the result of the preceding computation and is in the accumulator, this sequence generates only the instruction FAD B (floating add B).Thus, when I I I has worked its way through the matrix, the object program has been genera.ted.In the process, however, floating addresses are usually encountered which were generated by I and which refer to parts of the program which occur earlier or later than the point at which the reference appears.These have not been completely processed at this point, so I I I makes one additional pass over the program and assigns floating addresses, generates actual binatT card-images, and produce the printed version of the object program. Definition o f N e w OperationsThere has been a great emphasis here on the storage of information in tables.One of the most, important reasons for this was the desire to allow the user to incorporate definitions of new operations and modes into his program and then use these operations and modes directly as if they had ah'eady been in the hmguage.This facility has recently been added to MAID, and it consists of making additions at "trm~slatiou time" to such tables as the precedence table of I and the mode context table of III.It, is felt that this facility will lead to experimentation which will point the way toward those operations and modes which would be useful in future languages.

Cited by 36 works. doi:10.1145/366062.366080 Open-access PDF

Authors