jtag: Apply Martin Strubel JTAG implementation for ZPU
[zpu.git] / zpu / sw / emulation / zpu-opcodes.h
blob6004319e450df5d991c73ce0b0aeeafbe2c5a492
1 /** \file zpu-opcodes.h
3 * Basic ZPU opcode definitions
5 * 2011, <hackfin@section5.ch>
7 */
9 /** This is also the opcode for leaving emulation */
10 #define OPCODE_BREAK 0x00
12 /* ZPU basic opcodes that are supported by emulation */
14 #define OPCODE_IM 0x80
15 #define OPCODE_NOP 0x0b
16 #define OPCODE_LOAD 0x08
17 #define OPCODE_STORE 0x0c
18 #define OPCODE_LOADSP 0x60
19 // Dunno why, but this bit wants to be inverted in the offset field:
20 # define LOADSP_INV 0x10
21 #define OPCODE_PUSHSP 0x02
22 #define OPCODE_POPSP 0x0d
23 #define OPCODE_POPPC 0x04
25 /* Special opcode: Leave emulation */
26 #define OPCODE_EMULEAVE OPCODE_BREAK