OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [Open8 Tools/] [open8_src/] [open8_as/] [opcodes_v8urisc.c] - Rev 193

Go to most recent revision | Compare with Previous | Blame | View Log

struct optcode opt_table[] = {
 
  { "ADC R0", 0x08, 0, 0 },
  { "ADC R1", 0x09, 0, 0 },
  { "ADC R2", 0x0a, 0, 0 },
  { "ADC R3", 0x0b, 0, 0 },
  { "ADC R4", 0x0c, 0, 0 },
  { "ADC R5", 0x0d, 0, 0 },
  { "ADC R6", 0x0e, 0, 0 },
  { "ADC R7", 0x0f, 0, 0 },
 
  { "ADD R0", 0x50, 0, 0 },
  { "ADD R1", 0x51, 0, 0 },
  { "ADD R2", 0x52, 0, 0 },
  { "ADD R3", 0x53, 0, 0 },
  { "ADD R4", 0x54, 0, 0 },
  { "ADD R5", 0x55, 0, 0 },
  { "ADD R6", 0x56, 0, 0 },
  { "ADD R7", 0x57, 0, 0 },
 
  { "AND R0", 0x20, 0, 0 },
  { "AND R1", 0x21, 0, 0 },
  { "AND R2", 0x22, 0, 0 },
  { "AND R3", 0x23, 0, 0 },
  { "AND R4", 0x24, 0, 0 },
  { "AND R5", 0x25, 0, 0 },
  { "AND R6", 0x26, 0, 0 },
  { "AND R7", 0x27, 0, 0 },
 
  { "BNC x", 0x91, 1, 0 },
  { "BNGP4 x", 0x94, 1, 0 },
  { "BNGP5 x", 0x95, 1, 0 },
  { "BNGP6 x", 0x96, 1, 0 },
  { "BNGP7 x", 0x97, 1, 0 },
  { "BNI x", 0x93, 1, 0 },
  { "BNN x", 0x92, 1, 0 },
  { "BNZ x", 0x90, 1, 0 },
 
  { "BRC x", 0x99, 1, 0 },
  { "BRGP4 x", 0x9c, 1, 0 },
  { "BRGP5 x", 0x9d, 1, 0 },
  { "BRGP6 x", 0x9e, 1, 0 },
  { "BRGP7 x", 0x9f, 1, 0 },
  { "BRI x", 0x9b, 1, 0 },
  { "BRK", 0xbb, 0, 0 },
  { "BRN x", 0x9a, 1, 0 },
  { "BRZ x", 0x98, 1, 0 },
 
  { "BTT 0", 0x60, 0, 0 },
  { "BTT 1", 0x61, 0, 0 },
  { "BTT 2", 0x62, 0, 0 },
  { "BTT 3", 0x63, 0, 0 },
  { "BTT 4", 0x64, 0, 0 },
  { "BTT 5", 0x65, 0, 0 },
  { "BTT 6", 0x66, 0, 0 },
  { "BTT 7", 0x67, 0, 0 },
 
  { "CLP PSR_C", 0x69, 0, 0 },
  { "CLP PSR_GP4", 0x6c, 0, 0 },
  { "CLP PSR_GP5", 0x6d, 0, 0 },
  { "CLP PSR_GP6", 0x6e, 0, 0 },
  { "CLP PSR_GP7", 0x6f, 0, 0 },
  { "CLP PSR_I", 0x6b, 0, 0 },
  { "CLP PSR_N", 0x6a, 0, 0 },
  { "CLP PSR_Z", 0x68, 0, 0 },
 
  { "CLR R0", 0x28, 0, 0 },
 
  { "CMP R0", 0x78, 0, 0 },
  { "CMP R1", 0x79, 0, 0 },
  { "CMP R2", 0x7a, 0, 0 },
  { "CMP R3", 0x7b, 0, 0 },
  { "CMP R4", 0x7c, 0, 0 },
  { "CMP R5", 0x7d, 0, 0 },
  { "CMP R6", 0x7e, 0, 0 },
  { "CMP R7", 0x7f, 0, 0 },
 
  { "DBNZ R0,x", 0xa0, 1, 0 },
  { "DBNZ R1,x", 0xa1, 1, 0 },
  { "DBNZ R2,x", 0xa2, 1, 0 },
  { "DBNZ R3,x", 0xa3, 1, 0 },
  { "DBNZ R4,x", 0xa4, 1, 0 },
  { "DBNZ R5,x", 0xa5, 1, 0 },
  { "DBNZ R6,x", 0xa6, 1, 0 },
  { "DBNZ R7,x", 0xa7, 1, 0 },
 
  { "DEC R0", 0x40, 0, 0 },
  { "DEC R1", 0x41, 0, 0 },
  { "DEC R2", 0x42, 0, 0 },
  { "DEC R3", 0x43, 0, 0 },
  { "DEC R4", 0x44, 0, 0 },
  { "DEC R5", 0x45, 0, 0 },
  { "DEC R6", 0x46, 0, 0 },
  { "DEC R7", 0x47, 0, 0 },
 
  { "GMSK", 0xbe, 0, 0 },
 
  { "INC R0", 0x00, 0, 0 },
  { "INC R1", 0x01, 0, 0 },
  { "INC R2", 0x02, 0, 0 },
  { "INC R3", 0x03, 0, 0 },
  { "INC R4", 0x04, 0, 0 },
  { "INC R5", 0x05, 0, 0 },
  { "INC R6", 0x06, 0, 0 },
  { "INC R7", 0x07, 0, 0 },
 
  { "INT 0", 0xa8, 0, 0 },
  { "INT 1", 0xa9, 0, 0 },
  { "INT 2", 0xaa, 0, 0 },
  { "INT 3", 0xab, 0, 0 },
  { "INT 4", 0xac, 0, 0 },
  { "INT 5", 0xad, 0, 0 },
  { "INT 6", 0xae, 0, 0 },
  { "INT 7", 0xaf, 0, 0 },
 
  { "JMP ?", 0xbc, 2, 0 },
  { "JSR ?", 0xbf, 2, 0 },
 
  { "LDA R0,?", 0xe8, 2, 0 },
  { "LDA R1,?", 0xe9, 2, 0 },
  { "LDA R2,?", 0xea, 2, 0 },
  { "LDA R3,?", 0xeb, 2, 0 },
  { "LDA R4,?", 0xec, 2, 0 },
  { "LDA R5,?", 0xed, 2, 0 },
  { "LDA R6,?", 0xee, 2, 0 },
  { "LDA R7,?", 0xef, 2, 0 },
 
  { "LDI R0,#x", 0xe0, 4, 0 },
  { "LDI R1,#x", 0xe1, 4, 0 },
  { "LDI R2,#x", 0xe2, 4, 0 },
  { "LDI R3,#x", 0xe3, 4, 0 },
  { "LDI R4,#x", 0xe4, 4, 0 },
  { "LDI R5,#x", 0xe5, 4, 0 },
  { "LDI R6,#x", 0xe6, 4, 0 },
  { "LDI R7,#x", 0xe7, 4, 0 },
 
  { "LDO R0,x", 0xf8, 4, 0 },
 
  { "LDO R1,x", 0xf9, 4, 0 },
  { "LDO R2,x", 0xfa, 4, 0 },
  { "LDO R3,x", 0xfb, 4, 0 },
  { "LDO R4,x", 0xfc, 4, 0 },
  { "LDO R5,x", 0xfd, 4, 0 },
  { "LDO R6,x", 0xfe, 4, 0 },
  { "LDO R7,x", 0xff, 4, 0 },
 
  { "LDO R0++,x", 0xf9, 4, 0 },
  { "LDO R2++,x", 0xfb, 4, 0 },
  { "LDO R4++,x", 0xfd, 4, 0 },
  { "LDO R6++,x", 0xff, 4, 0 },
 
  { "LDX R0", 0xf0, 0, 0 },
  { "LDX R1", 0xf1, 0, 0 },
  { "LDX R2", 0xf2, 0, 0 },
  { "LDX R3", 0xf3, 0, 0 },
  { "LDX R4", 0xf4, 0, 0 },
  { "LDX R5", 0xf5, 0, 0 },
  { "LDX R6", 0xf6, 0, 0 },
  { "LDX R7", 0xf7, 0, 0 },
 
  { "LDX R0++", 0xf1, 0, 0 },
  { "LDX R2++", 0xf3, 0, 0 },
  { "LDX R4++", 0xf5, 0, 0 },
  { "LDX R6++", 0xf7, 0, 0 },
 
  { "MUL R0", 0xb0, 0, 0 },
  { "MUL R1", 0xb1, 0, 0 },
  { "MUL R2", 0xb2, 0, 0 },
  { "MUL R3", 0xb3, 0, 0 },
  { "MUL R4", 0xb4, 0, 0 },
  { "MUL R5", 0xb5, 0, 0 },
  { "MUL R6", 0xb6, 0, 0 },
  { "MUL R7", 0xb7, 0, 0 },
 
  { "NOP", 0xbb, 0, 0 },
 
  { "OR R0", 0x18, 0, 0 },
  { "OR R1", 0x19, 0, 0 },
  { "OR R2", 0x1a, 0, 0 },
  { "OR R3", 0x1b, 0, 0 },
  { "OR R4", 0x1c, 0, 0 },
  { "OR R5", 0x1d, 0, 0 },
  { "OR R6", 0x1e, 0, 0 },
  { "OR R7", 0x1f, 0, 0 },
 
  { "POP R0", 0x88, 0, 0 },
  { "POP R1", 0x89, 0, 0 },
  { "POP R2", 0x8a, 0, 0 },
  { "POP R3", 0x8b, 0, 0 },
  { "POP R4", 0x8c, 0, 0 },
  { "POP R5", 0x8d, 0, 0 },
  { "POP R6", 0x8e, 0, 0 },
  { "POP R7", 0x8f, 0, 0 },
 
  { "PSH R0", 0x80, 0, 0 },
  { "PSH R1", 0x81, 0, 0 },
  { "PSH R2", 0x82, 0, 0 },
  { "PSH R3", 0x83, 0, 0 },
  { "PSH R4", 0x84, 0, 0 },
  { "PSH R5", 0x85, 0, 0 },
  { "PSH R6", 0x86, 0, 0 },
  { "PSH R7", 0x87, 0, 0 },
 
  { "ROL R0", 0x30, 0, 0 },
  { "ROL R1", 0x31, 0, 0 },
  { "ROL R2", 0x32, 0, 0 },
  { "ROL R3", 0x33, 0, 0 },
  { "ROL R4", 0x34, 0, 0 },
  { "ROL R5", 0x35, 0, 0 },
  { "ROL R6", 0x36, 0, 0 },
  { "ROL R7", 0x37, 0, 0 },
 
  { "ROR R0", 0x38, 0, 0 },
  { "ROR R1", 0x39, 0, 0 },
  { "ROR R2", 0x3a, 0, 0 },
  { "ROR R3", 0x3b, 0, 0 },
  { "ROR R4", 0x3c, 0, 0 },
  { "ROR R5", 0x3d, 0, 0 },
  { "ROR R6", 0x3e, 0, 0 },
  { "ROR R7", 0x3f, 0, 0 },
 
  { "RSP", 0xb8, 0, 0 },
  { "RTI", 0xba, 0, 0 },
  { "RTS", 0xb9, 0, 0 },
 
  { "SBC R0", 0x48, 0, 0 },
  { "SBC R1", 0x49, 0, 0 },
  { "SBC R2", 0x4a, 0, 0 },
  { "SBC R3", 0x4b, 0, 0 },
  { "SBC R4", 0x4c, 0, 0 },
  { "SBC R5", 0x4d, 0, 0 },
  { "SBC R6", 0x4e, 0, 0 },
  { "SBC R7", 0x4f, 0, 0 },
 
  { "SMSK", 0xbd, 0, 0 },
 
  { "STA R0,?", 0xc8, 2, 0 },
  { "STA R1,?", 0xc9, 2, 0 },
  { "STA R2,?", 0xca, 2, 0 },
  { "STA R3,?", 0xcb, 2, 0 },
  { "STA R4,?", 0xcc, 2, 0 },
  { "STA R5,?", 0xcd, 2, 0 },
  { "STA R6,?", 0xce, 2, 0 },
  { "STA R7,?", 0xcf, 2, 0 },
 
  { "STO R0,x", 0xd8, 4, 0 },
  { "STO R1,x", 0xd9, 4, 0 },
  { "STO R2,x", 0xda, 4, 0 },
  { "STO R3,x", 0xdb, 4, 0 },
  { "STO R4,x", 0xdc, 4, 0 },
  { "STO R5,x", 0xdd, 4, 0 },
  { "STO R6,x", 0xde, 4, 0 },
  { "STO R7,x", 0xdf, 4, 0 },
 
  { "STO R0++,x", 0xd9, 4, 0 },
  { "STO R2++,x", 0xdb, 4, 0 },
  { "STO R4++,x", 0xdd, 4, 0 },
  { "STO R6++,x", 0xdf, 4, 0 },
 
  { "STP PSR_C", 0x59, 0, 0 },
  { "STP PSR_GP4", 0x5c, 0, 0 },
  { "STP PSR_GP5", 0x5d, 0, 0 },
  { "STP PSR_GP6", 0x5e, 0, 0 },
  { "STP PSR_GP7", 0x5f, 0, 0 },
  { "STP PSR_I", 0x5b, 0, 0 },
  { "STP PSR_N", 0x5a, 0, 0 },
  { "STP PSR_Z", 0x58, 0, 0 },
 
  { "STX R0", 0xd0, 0, 0 },
  { "STX R1", 0xd1, 0, 0 },
  { "STX R2", 0xd2, 0, 0 },
  { "STX R3", 0xd3, 0, 0 },
  { "STX R4", 0xd4, 0, 0 },
  { "STX R5", 0xd5, 0, 0 },
  { "STX R6", 0xd6, 0, 0 },
  { "STX R7", 0xd7, 0, 0 },
 
  { "STX R0++", 0xd1, 0, 0 },
  { "STX R2++", 0xd3, 0, 0 },
  { "STX R4++", 0xd5, 0, 0 },
  { "STX R6++", 0xd7, 0, 0 },
 
  { "T0X R0", 0x70, 0, 0 },
  { "T0X R1", 0x71, 0, 0 },
  { "T0X R2", 0x72, 0, 0 },
  { "T0X R3", 0x73, 0, 0 },
  { "T0X R4", 0x74, 0, 0 },
  { "T0X R5", 0x75, 0, 0 },
  { "T0X R6", 0x76, 0, 0 },
  { "T0X R7", 0x77, 0, 0 },
 
  { "TX0 R0", 0x10, 0, 0 },
  { "TX0 R1", 0x11, 0, 0 },
  { "TX0 R2", 0x12, 0, 0 },
  { "TX0 R3", 0x13, 0, 0 },
  { "TX0 R4", 0x14, 0, 0 },
  { "TX0 R5", 0x15, 0, 0 },
  { "TX0 R6", 0x16, 0, 0 },
  { "TX0 R7", 0x17, 0, 0 },
 
  { "UPP R0", 0xc0, 0, 0 },
  { "UPP R1", 0xc1, 0, 0 },
  { "UPP R2", 0xc2, 0, 0 },
  { "UPP R3", 0xc3, 0, 0 },
  { "UPP R4", 0xc4, 0, 0 },
  { "UPP R5", 0xc5, 0, 0 },
  { "UPP R6", 0xc6, 0, 0 },
  { "UPP R7", 0xc7, 0, 0 },
 
//  { "USR R0", 0xa0, 0, 0 },
//  { "USR R1", 0xa1, 0, 0 },
//  { "USR R2", 0xa2, 0, 0 },
//  { "USR R3", 0xa3, 0, 0 },
//  { "USR R4", 0xa4, 0, 0 },
//  { "USR R5", 0xa5, 0, 0 },
//  { "USR R6", 0xa6, 0, 0 },
//  { "USR R7", 0xa7, 0, 0 },
//
//  { "USR2 R0", 0xb0, 0, 0 },
//  { "USR2 R1", 0xb1, 0, 0 },
//  { "USR2 R2", 0xb2, 0, 0 },
//  { "USR2 R3", 0xb3, 0, 0 },
//  { "USR2 R4", 0xb4, 0, 0 },
//  { "USR2 R5", 0xb5, 0, 0 },
//  { "USR2 R6", 0xb6, 0, 0 },
//  { "USR2 R7", 0xb7, 0, 0 },
 
  { "WAI", 0xbb, 0, 0 },
 
  { "XOR R0", 0x28, 0, 0 },
  { "XOR R1", 0x29, 0, 0 },
  { "XOR R2", 0x2a, 0, 0 },
  { "XOR R3", 0x2b, 0, 0 },
  { "XOR R4", 0x2c, 0, 0 },
  { "XOR R5", 0x2d, 0, 0 },
  { "XOR R6", 0x2e, 0, 0 },
  { "XOR R7", 0x2f, 0, 0 },
 
  { "E", 0x100, -1, 0 }
};
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.