MSP430之instruction之JUMP

JMP      Jump unconditionally

Syntax   JMP  label

Operation   PC + 2 × offset −> PC

Description

  The 10-bit signed offset contained in the instruction LSBs is added to the program counter.

Status Bits

  Status bits are not affected.

Hint:

  This one-word instruction replaces the BRANCH instruction in the range of −511 to +512 words relative to the current program counter.

JNE   Jump if not equal

JNZ   Jump if not zero

Syntax   JNE  label; JNZ label

Operation   If Z = 0: PC + 2 × offset −> PC
        If Z = 1: execute following instruction
Description

  The status register zero bit (Z) is tested. If it is reset, the 10-bit signed offset contained in the instruction LSBs is added to the program counter. If Z is set, the next instruction following the jump is executed.

Status Bits   Status bits are not affected.

Example  Jump to address TONI if R7 and R8 have different contents.

1 CMP R7,R8  ; COMPARE R7 WITH R8
2 JNE TONI   ; if different: jump
3 ......    ; if equal, continue
时间: 2024-10-10 16:13:32

MSP430之instruction之JUMP的相关文章

MSP430之instruction之Indirect Autoincrement Mode

Assembler Code Content of ROMMOV @R10+,0(R11)   MOV @R10+,0(R11) Length: One or two words Operation: Move the contents of the source address (contents of R10) to the destination address (contents of R11). Register R10 is incremented by 1 for a byte o

MSP430之instruction之CMP

CMP[.W]  Compare source and destinationCMP.B  Compare source and destination Syntax  CMP src,dst or CMP.W src,dst CMP.B  src,dst Operation dst + .NOT.src + 1 or (dst − src) Description The source operand is subtracted from the destination operand. Th

MSP430之instruction之MOV

MOV[.W]   Move source to destinationMOV.B Move source to destination Syntax MOV  src,dst  or       MOV.W  src,dst MOV.B src,dst Operation src −> dst Description The source operand is moved to the destination.The source operand is not affected. The pr

Method and apparatus for transitioning between instruction sets in a processor

A data processor (104) is described. The data processor (104) is capable of decoding and executing a first instruction (212) of a first instruction set and a second instruction (213-219) in a second instruction set wherein the first instruction (212)

YASM User Manual

This document is the user manual for the Yasm assembler. It is intended as both an introduction and a general-purpose reference for all Yasm users. 1.?Introduction Yasm is a BSD-licensed assembler that is designed from the ground up to allow for mult

深入ASM源码之ClassReader、ClassVisitor、ClassWriter

概述 ASM是Java中比较流行的用来读写字节码的类库,用来基于字节码层面对代码进行分析和转换.在读写的过程中可以加入自定义的逻辑以增强或修改原来已编译好的字节码,比如CGLIB用它来实现动态代理.ASM被设计用于在运行时对Java类进行生成和转换,当然也包括离线处理.ASM短小精悍.且速度很快,从而避免在运行时动态生成字节码或转换时对程序速度的影响,又因为它体积小巧,可以在很多内存受限的环境中使用. ASM的主要优势包括如下几个方面: 1. 它又一个很小,但设计良好并且模块化的API,且易于使

JVMS Specification(3)-The class File Format

Subsections 3 The class File Format 3.1 The ClassFile Structure 3.2 The Internal Form of Names 3.2.1 Binary Class and Interface Names 3.2.2 Unqualified Names 3.3 Descriptors and Signatures 3.3.1 Grammar Notation 3.3.2 Field Descriptors 3.3.3 Method D

CSAPP 六个重要实验 lab3

CSAPP && lab3 level2 & leve3未完,待更新! : ) In this lab, you will gain firsthand experience with one of the methods commonly used to exploit security weaknesses in operating systems and network servers. Our purpose is to help you learn about the r

1-INTRODUCTION

Please indicate the source: http://blog.csdn.net/gaoxiangnumber1 Welcome to my github: https://github.com/gaoxiangnumber1 The hardware consists of chips and similar physical objects. On top of the hardware is the software. Most computers have two mod