User Tools

Site Tools


ibm:vm370-lib:macro:hndint.macro_src

HNDINT Source

References

Source Listing

HNDINT.MACRO.txt
  1. MACRO 00001000
  2. &LABEL HNDINT &FUNC,&ERROR=*+4 00002000
  3. LCLA &NUM 00003000
  4. LCLC &NAME,&LOC,&ADDR,&WHEN 00004000
  5. CNOP 0,4 00005000
  6. AIF (T'&FUNC EQ 'O').ERR0 00006000
  7. AIF ('&FUNC' NE 'CLR' AND '&FUNC' NE 'SET').ERR0 00007000
  8. AIF (N'&SYSLIST LE 1).ERR1 00008000
  9. &NUM SETA 1 00009000
  10. &LABEL BAL 1,DMS&SYSNDX.A 00010000
  11. DC CL8'HNDINT' 00011000
  12. DC CL4'&FUNC' 00012000
  13. .LOOP ANOP 00013000
  14. &NUM SETA &NUM+1 00014000
  15. AIF (N'&SYSLIST LT &NUM).END 00015000
  16. AIF (T'&SYSLIST(&NUM,1) EQ 'O').ERR2 00016000
  17. &NAME SETC '&SYSLIST(&NUM,1)' 00017000
  18. AIF (K'&SYSLIST(&NUM,1) LE 4).CONT 00018000
  19. MNOTE 4,'DEVICE NAME TRUNCATED TO 4 CHARACTERS' 00019000
  20. .CONT AIF ('&FUNC' EQ 'CLR').CLR 00020000
  21. AIF (T'&SYSLIST(&NUM,2) EQ 'O').ERR3 00021000
  22. AIF (T'&SYSLIST(&NUM,3) EQ 'O').ERR4 00022000
  23. AIF (K'&SYSLIST(&NUM,3) NE 3).ERR6 00023000
  24. AIF (T'&SYSLIST(&NUM,4) EQ 'O').ERR5 00024000
  25. &LOC SETC '&SYSLIST(&NUM,2)' 00025000
  26. &ADDR SETC '&SYSLIST(&NUM,3)' 00026000
  27. &WHEN SETC '&SYSLIST(&NUM,4)' 00027000
  28. AIF ('&WHEN' NE 'ASAP' AND '&WHEN' NE 'WAIT').ERR7 00028000
  29. DC CL4'&NAME',AL4(&LOC),XL2'0&ADDR',CL1'&WHEN',C'C' 00029000
  30. AGO .LOOP 00030000
  31. .CLR ANOP 00031000
  32. DC CL4'&NAME',AL4(0),4X'00' 00032000
  33. AGO .LOOP 00033000
  34. .END ANOP 00034000
  35. DC XL4'FFFFFFFF' 00035000
  36. DMS&SYSNDX.A SVC 202 00036000
  37. DC AL4(&ERROR) 00037000
  38. MEXIT 00038000
  39. .ERR0 MNOTE 8,'FUNCTION NAME OMITTED OR INVALID' 00039000
  40. MEXIT 00040000
  41. .ERR1 MNOTE 8,'NO ADDRESS LIST SPECIFIED' 00041000
  42. MEXIT 00042000
  43. .ERR2 MNOTE 4,'DEVICE NAME NOT SPECIFIED - SKIPPED' 00043000
  44. AGO .LOOP 00044000
  45. .ERR3 MNOTE 4,'INTERRUPT ADDRESS NOT SPECIFIED - SKIPPED' 00045000
  46. AGO .LOOP 00046000
  47. .ERR4 MNOTE 4,'DEVICE ADDRESS NOT SPECIFIED - SKIPPED' 00047000
  48. AGO .LOOP 00048000
  49. .ERR5 MNOTE 4,'WHEN PARAMETER NOT SPECIFIED - SKIPPED' 00049000
  50. AGO .LOOP 00050000
  51. .ERR6 MNOTE 4,'DEVICE ADDRESS NOT 3 CHARACTERS - SKIPPED' 00051000
  52. AGO .LOOP 00052000
  53. .ERR7 MNOTE 4,'INVALID WHEN PARAMETER - SKIPPED' 00053000
  54. AGO .LOOP 00054000
  55. MEND 00055000
ibm/vm370-lib/macro/hndint.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator