User Tools

Site Tools


ibm:vm370-lib:macro:hndext.macro_src

HNDEXT Source

References

Source Listing

HNDEXT.MACRO.txt
  1. MACRO 00001000
  2. &LABEL HNDEXT &FNCT,&ADDR,&ERROR=*+4 00002000
  3. LCLC &LOC 00003000
  4. &LOC SETC '0' 00004000
  5. CNOP 0,4 00005000
  6. AIF (T'&FNCT EQ 'O').ERR1 00006000
  7. AIF ('&FNCT' EQ 'SET').SET 00007000
  8. AIF ('&FNCT' EQ 'CLR').CLR 00008000
  9. MNOTE 8,'INVALID FUNCTION SPECIFICATION' 00009000
  10. MEXIT 00010000
  11. .SET ANOP 00011000
  12. AIF (T'&ADDR EQ 'O').ERR2 00012000
  13. &LOC SETC '&ADDR' 00013000
  14. .CLR ANOP 00014000
  15. &LABEL BAL 1,DMS&SYSNDX.A 00015000
  16. DC CL8'TRAP' 00016000
  17. DC A(&LOC) 00017000
  18. DMS&SYSNDX.A SVC 202 00018000
  19. DC AL4(&ERROR) 00019000
  20. MEXIT 00020000
  21. .ERR1 MNOTE 8,'FUNCTION NAME NOT SPECIFIED' 00021000
  22. MEXIT 00022000
  23. .ERR2 MNOTE 8,'INTERRUPT ADDRESS NOT SPECIFIED' 00023000
  24. MEND 00024000
ibm/vm370-lib/macro/hndext.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator