User Tools

Site Tools


ibm:vm370-lib:macro:charge.macro_src

CHARGE Source

References

Source Listing

CHARGE.MACRO.txt
  1. MACRO 00001000
  2. &NAME CHARGE &TYPE,&OPND 00002000
  3. GBLB &AP 00003000
  4. LCLC &LABEL,&OP,&BASE,&OCH 00004000
  5. &LABEL SETC '&NAME' 00005000
  6. &BASE SETC '' 00006000
  7. AIF ('&TYPE' EQ 'START' AND T'&OPND EQ 'O').START 00007000
  8. AIF ('&TYPE' EQ 'STOP' AND T'&OPND EQ 'O').STOP 00008000
  9. AIF ('&TYPE' EQ 'SWITCH' AND T'&OPND NE 'O').STOP 00009000
  10. AIF ('&TYPE' EQ 'SYNC' AND T'&OPND EQ 'O').SYNC @V4M0203 00009100
  11. MNOTE 8,'INVALID ''CHARGE'' OPERAND' 00010000
  12. MEXIT 00011000
  13. .* STOP CHARGING CURRENT USER 00012000
  14. .STOP AIF (&AP).STOMP 00013000
  15. &LABEL STPT VMTTIME-VMBLOK(R11) 00014000
  16. AGO .TSW 00015000
  17. .STOMP ANOP 00016000
  18. &LABEL L R15,TIMEDISP @V4M0203 00017100
  19. AIF ('&TYPE' EQ 'SWITCH').STOMPSW @V4M0203 00017200
  20. ALR R15,R11 @V4M0203 00017300
  21. STPT 0(R15) @V4M0203 00017400
  22. MEXIT @V4M0203 00017500
  23. .STOMPSW LA R14,VMBLOK-VMBLOK(R15,R11) @V4M0203 00017600
  24. STPT 0(R14) @V4M0203 00017700
  25. .TSW AIF ('&TYPE' EQ 'SWITCH').SWIT 00019000
  26. MEXIT 00020000
  27. .* SWITCH VMBLOK ADDRESSABILITY AS CHARGE SWITCHES 00021000
  28. .SWIT ANOP 00022000
  29. &LABEL SETC '' 00023000
  30. &BASE SETC '-VMBLOK(R11)' 00024000
  31. &OP SETC '' 00025000
  32. &OCH SETC '&OPND' 00026000
  33. AIF ('&OCH'(1,1) NE '(' OR '&OCH'(K'&OCH,1) NE ')').LOADT 00027000
  34. &OCH SETC '&OCH'(2,K'&OCH-2) 00028000
  35. AIF (T'&OPND(1) NE 'N').NOAR 00029000
  36. .LOADR ANOP 00030000
  37. &OCH SETC 'R'.'&OCH' 00031000
  38. .NOAR ANOP 00032000
  39. &OP SETC 'R' 00033000
  40. AGO .LOAD 00034000
  41. .LOADT AIF (T'&OPND(1) EQ 'N').LOADR 00035100
  42. .LOAD L&OP R11,&OCH 00036000
  43. .* START CHARGING NEW USER 00037000
  44. .START AIF (&AP).STAMP 00038000
  45. &LABEL SPT VMTTIME&BASE 00039000
  46. MEXIT 00040000
  47. .STAMP AIF ('&TYPE' EQ 'SWITCH').STAMPSW @V4M0203 00041130
  48. &LABEL L R15,TIMEDISP @V4M0203 00041230
  49. LA R15,VMBLOK(R15) @V4M0203 00041330
  50. AGO .SPTMP @V4M0203 00041430
  51. .STAMPSW ALR R15,R11 @V4M0203 00041530
  52. .SPTMP SPT 0(R15) @V4M0203 00041630
  53. MEXIT @V4M0203 00041730
  54. .SYNC AIF (&AP).SYNAP @V4M0203 00041830
  55. &LABEL DC 0H'0' @V4M0203 00041930
  56. MEXIT @V4M0203 00042030
  57. .SYNAP ANOP @V4M0203 00042130
  58. &LABEL L R15,ATMRSN @V4M0203 00042230
  59. BALR R14,R15 @V4M0203 00042330
  60. MEND 00044000
ibm/vm370-lib/macro/charge.macro_src.txt ยท Last modified: 2023/08/06 13:38 by Site Administrator