National Instruments HPC167064 BIT Instructions Sbit, Rbit, Ifbit, Memory Transfer Instructions

Page 29

HPC Instruction Set Description (Continued)

Mnemonic

Description

Action

BIT INSTRUCTIONS

 

 

SBIT

Set bit

1xMem.bit

RBIT

Reset bit

0xMem.bit

IFBIT

If bit

If Mem.bit is true, do next instr.

MEMORY TRANSFER INSTRUCTIONS

 

LD

Load

MemIxMA

 

Load, incr/decr X

Mem(X)xA, X g1 (or 2)xX

ST

Store to Memory

AxMem

X

Exchange

AÝMem

 

Exchange, incr/decr X

AÝMem(X), X g1 (or 2)xX

PUSH

Push Memory to Stack

WxW(SP), SPa2xSP

POP

Pop Stack to Memory

SPb2xSP, W(SP)xW

LDS

Load A, incr/decr B,

Mem(B)xA, B g1 (or 2)xB,

 

Skip on condition

Skip next if B greater/less than K

XS

Exchange, incr/decr B,

Mem(B)ÝA, Bg1 (or 2)xB,

 

Skip on condition

Skip next if B greater/less than K

REGISTER LOAD IMMEDIATE INSTRUCTIONS

 

LD B

Load B immediate

immxB

LD K

Load K immediate

immxK

LD X

Load X immediate

immxX

LD BK

Load B and K immediate

immxB, immxK

ACCUMULATOR AND C INSTRUCTIONS

 

CLR A

Clear A

0xA

INC A

Increment A

A a 1xA

DEC A

Decrement A

A b 1xA

COMP A

Complement A

1’s complement of AxA

SWAP A

Swap nibbles of A

A[15:12] wA[11:8] wA[7:4] ÝA[3:0]

RRC A

Rotate A right thru C

CxA15 x . . . xA0xC

RLC A

Rotate A left thru C

CwA15 w . . . wA0wC

SHR A

Shift A right

0xA15x . . . xA0xC

SHL A

Shift A left

CwA15w . . . wA0w0

SC

Set C

1xC

RC

Reset C

0xC

IFC

IF C

Do next if C e 1

IFNC

IF not C

Do next if C e 0

TRANSFER OF CONTROL INSTRUCTIONS

 

JSRP

Jump subroutine from table

PCxW(SP),SPa2xSP

 

 

W(tableÝ)xPC

JSR

Jump subroutine relative

PCxW(SP),SPa2xSP,PCaÝxPC

 

 

(Ýis a1025 to b1023)

JSRL

Jump subroutine long

PCxW(SP),SPa2xSP,PCaÝxPC

JP

Jump relative short

PCaÝxPC(Ý is a32 to b31)

JMP

Jump relative

PCaÝxPC(Ýis a257 to b255)

JMPL

Jump relative long

PCaÝxPC

JID

Jump indirect at PC a A

PCaAa1xPC

JIDW

 

then Mem(PC)aPCxPC

NOP

No Operation

PC a 1 xPC

RET

Return

SPb2xSP,W(SP)xPC

RETSK

Return then skip next

SPb2xSP,W(SP)xPC, & skip

RETI

Return from interrupt

SPb2xSP,W(SP)xPC, interrupt re-enabled

Note: W is 16-bit word of memory

MA is Accumulator A or direct memory (8-bit or 16-bit)

Mem is 8-bit byte or 16-bit word of memory

MemI is 8-bit or 16-bit memory or 8-bit or 16-bit immediate data imm is 8-bit or 16-bit immediate data

imm8 is 8-bit immediate data only

For details of memory usage by each instruction, see The HPC User’s Manual.

29

Image 29
Contents General Description FeaturesReset DC Electrical CharacteristicsAbsolute Maximum Ratings ALL Other InputsUPI 20 MHz AC Electrical CharacteristicsDelay from CKI Rising Edge to ALE Falling Edge Delay from CKI Rising Edge to ALE Rising EdgeDelay from CK2 Rising Edge to ALE Rising Edge Delay from CK2 Falling Edge to ALE Falling Edge30 MHz AC Electrical Characteristics CKI Input Signal Characteristics Input and Output for AC Tests CK1, CK2, ALE Timing DiagramRead Cycle Microwire Setup/Hold Timing Normal Running Mode Eprom ModeFunctional Modes of Operation EconaMemory Map of the HPC167064 Erasure CharacteristicsPin Descriptions Ports a & B Connection DiagramPorts a & B Operating Modes HPC167064 Operating Modes Power Save ModesWait States HPC167064 InterruptsBit External Memory Interrupt Arbitration Timer OverviewInterrupt Processing Interrupt Control RegistersBlock Diagram of Interrupt Logic Synchronous Outputs Timers T2 T3 BlockTimer Applications Timer RegistersMICROWIRE/PLUS Operation Watchdog LogicMICROWIRE/PLUS Application MICROWIRE/PLUSHPC167064 Uart Uart Wake-Up ModeMemory Universal Peripheral InterfaceShared Memory Support Design Considerations Dfffdffe Table IV. Memory Map of HPC167064 Emulating an HPC16083Frequency MHz 1500 1200 910 750 600 470 390 300 220 180 100 XtalHPC Instruction Set Description HPC167064 CPUAddressing Modes Rbit BIT Instructions SbitIfbit Memory Transfer InstructionsDevelopment Support Code EfficiencyProgramming Support HOW to OrderHPC-DEV-IBMA HPC-DEV-IBMCSocket Selection Part SelectionPlcc YamaichiPage Life Support Policy Physical Dimensions inches millimeters