发表于:2008/12/26 9:08:00
#0楼
L P##IN_Buffer // Load buffer pointer
LAR1 // Load ind.register AR1
L W [AR1,P#0.0] // Get source DB address
T #TMP_Buffer
L W#16#10 // Point to byte 2
+AR1
L B [AR1,P#0.0] // Get buffer memory area type
L B#16#85 // Load DI type code
>I // IF memory area type is L [local data]
JC END // THEN jump to exit
TAK // Load memory area type
L B#16#84 // Load DB type code
<I // IF memory area type is I or Q or M
JC END // THEN jump to exit
T B [AR1,P#0.0] // Force buffer memory area type=DB
OPN DB [#TMP_Buffer] // Open buffer memory area
L D [AR1,P#0.0] // Get buffer memory area address
T #TMP_Buffer_Address // Update buffer memory area address
我想问一下程序中的 L W [AR1,P#0.0] 和 L B [AR1,P#0.0] 中的W B有什么不一样 还有就是 L B#16#84 为什么对应DB TYPE 而 L B#16#85 对应DI type
LAR1 // Load ind.register AR1
L W [AR1,P#0.0] // Get source DB address
T #TMP_Buffer
L W#16#10 // Point to byte 2
+AR1
L B [AR1,P#0.0] // Get buffer memory area type
L B#16#85 // Load DI type code
>I // IF memory area type is L [local data]
JC END // THEN jump to exit
TAK // Load memory area type
L B#16#84 // Load DB type code
<I // IF memory area type is I or Q or M
JC END // THEN jump to exit
T B [AR1,P#0.0] // Force buffer memory area type=DB
OPN DB [#TMP_Buffer] // Open buffer memory area
L D [AR1,P#0.0] // Get buffer memory area address
T #TMP_Buffer_Address // Update buffer memory area address
我想问一下程序中的 L W [AR1,P#0.0] 和 L B [AR1,P#0.0] 中的W B有什么不一样 还有就是 L B#16#84 为什么对应DB TYPE 而 L B#16#85 对应DI type