convenience_en.awl 678 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ORGANIZATION_BLOCK OB 1
  2. BEGIN
  3. // Test parsing of convenience operators.
  4. // Convenience operators are certain operators with missing white space.
  5. OPN DB1
  6. OPN DI1
  7. SET
  8. = I0.1
  9. = Q0.1
  10. = M0.1
  11. = L0.1
  12. = DBX0.0
  13. = DIX0.0
  14. L 100
  15. T IB0
  16. T IW0
  17. T ID0
  18. T QB0
  19. T QW0
  20. T QD0
  21. T LB0
  22. T LW0
  23. T LD0
  24. T MB0
  25. T MW0
  26. T MD0
  27. T DBB0
  28. T DBW0
  29. T DBD0
  30. T DIB0
  31. T DIW0
  32. T DID0
  33. A T0
  34. = M0.0
  35. A C0
  36. = M0.0
  37. L P#I0.1
  38. L P#Q0.1
  39. L P#M0.1
  40. L P#L0.1
  41. L P#P0.1
  42. L P#DBX0.0
  43. L P#DIX0.0
  44. CALL SFC 46 // STOP CPU
  45. END_ORGANIZATION_BLOCK
  46. DATA_BLOCK DB 1
  47. STRUCT
  48. VARIABLE : DWORD;
  49. END_STRUCT;
  50. BEGIN
  51. VARIABLE := DW#16#1;
  52. END_DATA_BLOCK