Assembly to machine language translation guide

SPARC Architecture, Assembly Language Programming, and C (2nd Edition)

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: op3 op = Assembly to Machine Language Translation Guide 10, Format 3 Instructions Instruction op3 Instruction add 100000 taddcc and 100001 tsubcc or 100010 taddcctv xor 100011 tsubcctv sub 100100 mulscc andn 100101 sll orn 100110 srl xnor 100111 sra addx 101000 rdy unimp 101001 rdpsr unimp 101010 rdwim unimp 101011 rdtbr subx 101100 unimp unimp 101101 unimp unimp 101110 unimp unimp 101111 unimp addcc 110000 wry andcc 110001 wrpsr orcc 110010 wrwim xorcc 110011 wrtbr subcc 110100 fpop1 andncc 110101 fpop2 orncc 110110 cpop1 xnorcc 110111 cpop2 addxcc 111000 jmpl unimp 111001 rett unimp 111010 ticc unimp 111011 i ush subxcc 111100 save unimp 111101 restore unimp 111110 unimp unimp 111111 unimp op3 op = 11, 000000 000001 000010 000011 000100 000101 000110 000111 001000 001001 001010 001011 001100 001101 001110 001111 010000 010001 010010 010011 010100 010101 010110 010111 011000 011001 011010 011011 011100 011101 011110 011111 000000 000001 000010 000011 000100 000101 000110 000111 001000 001001 001010 001011 001100 001101 001110 001111 010000 010001 010010 010011 010100 010101 010110 010111 011000 011001 011010 011011 011100 011101 011110 011111 Format 3 Instructions Instruction op3 Instruction ld 100000 ldf ldub 100001 ldfsr lduh 100010 unimp ldd 100011 lddf st 100100 stf stb 100101 stfsr sth 100110 stdfq std 100111 stdf unimp 101000 unimp ldsb 101001 unimp ldsh 101010 unimp unimp 101011 unimp unimp 101100 unimp ldstub 101101 unimp unimp 101110 unimp swap 101111 unimp lda 110000 ldc lduba 110001 ldcsr lduha 110010 unimp ldda 110011 lddc sta 110100 stc stba 110101 stcsr stha 110110 stdcq stda 110111 stdc unimp 111000 unimp ldsba 111001 unimp ldsha 111010 unimp unimp 111011 unimp unimp 111100 unimp ldstuba 111101 unimp unimp 111110 unimp swapa 111111 unimp Branch, Integer Conditions op2 = 010 0000 bn 0001 be, bz 0010 ble 0011 bl 0100 bleu 0101 blu, bcs 0110 bneg 0111 bvs 1000 ba 1001 bne, bnz 1010 bg 1011 bge 1100 bgu 1101 bgeu, bcc 1110 bpos 1111 bvc Format 2 Instructions op2 Instruction 010 Branch, integer 110 Branch, oating 100 Sethi Branch, Floating Conditions op2 = 110 0000 fbn 0001 fbne 0010 fblg 0011 fbul 0100 fbl 0101 fbug 0110 fbg 0111 fbu 1000 fba 1001 fbe 1010 fbue 1011 fbge 1100 fbuge 1101 fble 1110 fbule 1111 fbo g0 g1 g2 g3 g4 g5 g6 g7 00000 00001 00010 00011 00100 00101 00110 00111 o0 o1 o2 o3 o4 o5 sp o7 01000 01001 01010 01011 01100 01101 01110 01111 l0 l1 l2 l3 l4 l5 l6 l7 10000 10001 10010 10011 10100 10101 10110 10111 i0 i1 i2 i3 i4 i5 fp i7 11000 11001 11010 11011 11100 11101 11110 11111 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0000 0001 0010 0011 0100 0101 0110 0111 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 1000 1001 1010 1011 1100 1101 1110 1111 op 00 01 10 11 Format 2 1 3 3 Type Branch Call Register Memory Format 3 Instructions op rd op3 rs1 1 signed immediate 13 bit constant rs2 ignored 0 32 28 24 20 16 12 8 4 0 Format 2 Instructions op a cond op2 displacement 22 32 28 24 20 16 12 8 4 0 ...
View Full Document

This note was uploaded on 02/11/2008 for the course CSE 30 taught by Professor Ord during the Winter '08 term at UCSD.

Ask a homework question - tutors are online