¨ç
|
TO ¾ÕÀÇ ³»¿ë°ú TO ´ÙÀ½ÀÇ µ¥ÀÌÅ͸íÀÇ
°ªÀ» ´õÇÏ¿©, TO ´ÙÀ½ÀÇ µ¥ÀÌÅÍ¸í¿¡
±â¾ïÇÕ´Ï´Ù. |
|
[¿¹¹® 1]
|
|
|
|
|
|
|
|
|
|
|
ADD |
A |
|
TO |
B. |
|
|
¡æ |
( B = B + A ) |
|
ADD |
A |
B |
TO |
C. |
|
|
¡æ |
( C = C + B + A ) |
|
ADD |
5 |
K |
TO |
T. |
|
|
¡æ |
( T = T + K + 5 ) |
[¿¹¹® 2]
|
|
|
|
|
|
|
|
|
|
|
ADD |
20 |
|
TO |
A |
B. |
|
¡æ |
( A = A + 20 , |
|
|
|
|
|
|
|
|
|
B = B + 20 ) |
|
ADD |
A |
B |
TO |
C |
D. |
|
¡æ |
( C = C + B + A , |
|
|
|
|
|
|
|
|
|
D = D + B + A ) |
|
¢¿ |
ON SIZE ERROR´Â °á°ú °ªÀÌ
±â¾ïµÉ ±â¾ï Àå¼ÒÀÇ Å©±â°¡ ºÎÁ·ÇÒ ¶§ ¹ß»ýÇÕ´Ï´Ù. |
|
[¿¹¹® 3]
|
|
|
|
|
|
|
|
|
|
77 |
A |
PIC |
9(2) |
VALUE |
10. |
|
|
|
77 |
B |
PIC |
9(2) |
VALUE |
50. |
|
|
|
77 |
C |
PIC |
9(2) |
VALUE |
40. |
|
|
|
|
: |
|
|
|
|
|
|
|
|
ADD A B TO C
ON SIZE ERROR GO TO ERR-RTN. |
|
¢¿ |
[ C = C + B + A ]ÀÇ °á°ú °ªÀÌ 100 ( 100 = 40 +
50 + 10 )À̹ǷÎ, |
|
C´Â 9(2)·Î Å©±â(BYTE)°¡ ¸ÂÁö ¾Ê¾Æ ON SIZE ERROR°¡ ¹ß»ýÇÕ´Ï´Ù. |