opcd2num.sed
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. s/NOP/0/
  2. s/DUMMY_6/6/
  3. s/DUMMY_8/8/
  4. s/IF_F=1_CLEAR_REMOTE_BUSY/9/
  5. s/CLEAR_REMOTE_BUSY/1/
  6. s/CONNECT_CONFIRM/3/
  7. s/DISCONNECT_INDICATION/5/
  8. s/CONNECT_INDICATION/2/
  9. s/IF_DATA_FLAG_=0_THEN_DATA_FLAG:=1/55/
  10. s/DATA_FLAG:=0/53/
  11. s/DATA_FLAG:=1/54/
  12. s/DATA_FLAG:=2/52/
  13. s/DATA_INDICATION/4/
  14. s/F_FLAG:=P/65/
  15. s/IF_DATA_FLAG=2_STOP_REJ_TIMER/10/
  16. s/OPTIONAL_SEND_RNR_XXX(X=0)/30/
  17. s/P_FLAG:=0/56/
  18. s/P_FLAG:=P/57/
  19. s/RE-SEND_FRMR_RSP(F=0)/14/
  20. s/RE-SEND_FRMR_RSP(F=P)/15/
  21. s/RE-SEND_I_CMD(P=1)_OR_SEND_RR/18/
  22. s/RE-SEND_I_CMD(P=1)/17/
  23. s/RE-SEND_I_RSP(F=1)/22/
  24. s/RE-SEND_I_XXX(X=0)_OR_SEND_RR/21/
  25. s/RE-SEND_I_XXX(X=0)/20/
  26. s/REMOTE_BUSY:=0/58/
  27. s/REPORT_STATUS(FRMR_RECEIVED)/66/
  28. s/REPORT_STATUS(FRMR_SENT)/67/
  29. s/REPORT_STATUS(REMOTE_BUSY)/68/
  30. s/REPORT_STATUS(REMOTE_NOT_BUSY)/69/
  31. s/RESET_CONFIRM/7/
  32. s/RESET_INDICATION(LOCAL)/70/
  33. s/RESET_INDICATION(REMOTE)/71/
  34. s/RETRY_COUNT:=RETRY_COUNT+1/60/
  35. s/RETRY_COUNT:=0/59/
  36. s/SEND_ACKNOWLEDGE_CMD(P=1)/32/
  37. s/SEND_ACKNOWLEDGE_RSP(F=1)/34/
  38. s/SEND_ACKNOWLEDGE_XXX(X=0)/36/
  39. s/SEND_DISC_CMD(P=X)/11/
  40. s/SEND_DM_RSP(F=X)/12/
  41. s/SEND_FRMR_RSP(F=X)/13/
  42. s/SEND_I_CMD(P=1)/16/
  43. s/SEND_I_XXX(X=0)/19/
  44. s/SEND_REJ_CMD(P=1)/23/
  45. s/SEND_REJ_RSP(F=1)/24/
  46. s/SEND_REJ_XXX(X=0)/25/
  47. s/SEND_RNR_CMD(F=1)/26/
  48. s/SEND_RNR_RSP(F=1)/27/
  49. s/SEND_RNR_XXX(X=0)/28/
  50. s/SEND_RR_CMD(P=1)/31/
  51. s/SEND_RR_RSP(F=1)/33/
  52. s/SEND_RR_XXX(X=0)/35/
  53. s/SEND_SABME_CMD(P=X)/37/
  54. s/SEND_UA_RSP(F=X)/38/
  55. s/SET_REMOTE_BUSY/29/
  56. s/START_ACK_TIMER_IF_NOT_RUNNING/44/
  57. s/START_ACK_TIMER/42/
  58. s/START_P_TIMER/41/
  59. s/START_REJ_TIMER/43/
  60. s/STOP_ACK_TIMER/45/
  61. s/STOP_ALL_TIMERS/48/
  62. s/STOP_OTHER_TIMERS/49/
  63. s/STOP_P_TIMER/46/
  64. s/STOP_REJ_TIMER/47/
  65. s/S_FLAG:=0/39/
  66. s/S_FLAG:=1/40/
  67. s/UPDATE_N(R)_RECEIVED/50/
  68. s/UPDATE_P_FLAG/51/
  69. s/V(R):=0/61/
  70. s/V(R):=V(R)+1/62/
  71. s/V(S):=0/63/
  72. s/V(S):=N(R)/64/