78K/0 어셈블리어 명령어 정리(1)

임베디드 2019. 8. 10. 22:02 Posted by justrun89

1. BZ

Conditional Branch with Zero Flag (Z = 1)

When Z = 1, data is branched to the address specified by the operand

When Z = 0, no processing is carried out and the subsequent instruction is executed

- 만약 (Z = 1) 인 경우 분기(Branch)하며,  그렇지 않을 경우 다음에 오는 명령어를 실행한다

 

2. BR

Unconditional Branch

This is an instruction to branch unconditionally

- 조건없이 무조건 해당 주소로 분기

 

3. BC

Conditional Branch with Carry Flag (CY = 1)

When CY = 1, data is branched to the address specified by the operand.

When CY = 0, no processing is carried out and the subsequent instruction is executed.

만약 (CY = 1) 인 경우 분기(Branch)하며, 그렇지 않을 경우 다음에 오는 명령어를 실행한다

 

4.BT

Conditional Branch by Bit Test (Byte Data Bit = 1)

If the 1st operand (bit) contents have been set (1), data is branched to the address specified by the 2nd operand.

만약 해당 비트가 1 인 경우 분기(Branch)하며, 그렇지 않을 경우 다음에 오는 명령어를 실행한다

Ex   BT FE47H.3, $55CH ;    When bit 3 at address FE47H is 1,   data is branched to 055CH