Table of Contents

DMSDM Source

References

Source Listing

DMSDM.MACRO.txt
  1. MACRO 00001000
  2. &NM DMSDM &R1,&R2,&FIELD,&MNEM,&VAL 00002000
  3. LCLC &S,&L,&LL 00003000
  4. &S SETC '&SYSNDX' 00004000
  5. &L SETC '&NM' 00005000
  6. AIF ('&NM' NE '').N 00006000
  7. &L SETC 'DMSL&S' 00007000
  8. .N ANOP 00008000
  9. &L &MNEM &R1,&FIELD 00009000
  10. AIF ('&R1' EQ '&R2').MEND 00010000
  11. &MNEM &R2,4*(&R2-&R1)+&FIELD 00011000
  12. ORG &L 00012000
  13. DMSN&S EQU (&R2-&R1)/2+1 00013000
  14. &LL SETC 'DMSN&S' 00014000
  15. DC (&LL)S(256*&VAL+16*(&R1+(*-&L)/2)(6),2*(*-&L-2)+&FIELD) 00015000
  16. .MEND MEND 00016000