SGX543: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
Line 51: Line 51:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 0 || 0 || 1 || 0 || 0 || 0
| 0 || 0 || 0 || 0 || 1 || 0 || 0 || 0
Line 62: Line 62:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 0 || 1 || 0 || 0 || 0 || 0
| 0 || 0 || 0 || 1 || 0 || 0 || 0 || 0
Line 73: Line 73:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 0 || 1 || 1 || 0 || 0 || 0
| 0 || 0 || 0 || 1 || 1 || 0 || 0 || 0
Line 84: Line 84:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 1 || 0 || 0 || 0 || 0 || 0
| 0 || 0 || 1 || 0 || 0 || 0 || 0 || 0
Line 95: Line 95:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 1 || 0 || 1 || 0 || 0 || 0
| 0 || 0 || 1 || 0 || 1 || 0 || 0 || 0
Line 106: Line 106:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 1 || 1 || 0 || 0 || 0 || 0
| 0 || 0 || 1 || 1 || 0 || 0 || 0 || 0
Line 117: Line 117:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 0 || 1 || 1 || 1 || 0 || 0 || 0
| 0 || 0 || 1 || 1 || 1 || 0 || 0 || 0
Line 128: Line 128:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 0 || 0 || 0 || 0 || 0 || 0
| 0 || 1 || 0 || 0 || 0 || 0 || 0 || 0
Line 139: Line 139:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 0 || 0 || 1 || 0 || 0 || 0
| 0 || 1 || 0 || 0 || 1 || 0 || 0 || 0
Line 150: Line 150:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 0 || 1 || 0 || 0 || 0 || 0
| 0 || 1 || 0 || 1 || 0 || 0 || 0 || 0
Line 161: Line 161:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 0 || 1 || 1 || 0 || 0 || 0
| 0 || 1 || 0 || 1 || 1 || 0 || 0 || 0
Line 172: Line 172:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 1 || 0 || 0 || 0 || 0 || 0
| 0 || 1 || 1 || 0 || 0 || 0 || 0 || 0
Line 183: Line 183:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 1 || 0 || 1 || 0 || 0 || 0
| 0 || 1 || 1 || 0 || 1 || 0 || 0 || 0
Line 194: Line 194:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 1 || 1 || 0 || 0 || 0 || 0
| 0 || 1 || 1 || 1 || 0 || 0 || 0 || 0
Line 205: Line 205:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 0 || 1 || 1 || 1 || 1 || 0 || 0 || 0
| 0 || 1 || 1 || 1 || 1 || 0 || 0 || 0
Line 216: Line 216:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 0 || 0 || 0 || 0 || 0 || 0
| 1 || 0 || 0 || 0 || 0 || 0 || 0 || 0
Line 227: Line 227:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 0 || 0 || 1 || 0 || 0 || 0
| 1 || 0 || 0 || 0 || 1 || 0 || 0 || 0
Line 238: Line 238:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 0 || 1 || 0 || 0 || 0 || 0
| 1 || 0 || 0 || 1 || 0 || 0 || 0 || 0
Line 249: Line 249:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 0 || 1 || 1 || 0 || 0 || 0
| 1 || 0 || 0 || 1 || 1 || 0 || 0 || 0
Line 260: Line 260:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 1 || 0 || 0 || 0 || 0 || 0
| 1 || 0 || 1 || 0 || 0 || 0 || 0 || 0
Line 271: Line 271:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 1 || 0 || 1 || 0 || 0 || 0
| 1 || 0 || 1 || 0 || 1 || 0 || 0 || 0
Line 282: Line 282:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 1 || 1 || 0 || 0 || 0 || 0
| 1 || 0 || 1 || 1 || 0 || 0 || 0 || 0
Line 293: Line 293:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 0 || 1 || 1 || 1 || 0 || 0 || 0
| 1 || 0 || 1 || 1 || 1 || 0 || 0 || 0
Line 304: Line 304:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 0 || 0 || 0 || 0 || 0 || 0
| 1 || 1 || 0 || 0 || 0 || 0 || 0 || 0
Line 315: Line 315:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 0 || 0 || 1 || 0 || 0 || 0
| 1 || 1 || 0 || 0 || 1 || 0 || 0 || 0
Line 326: Line 326:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 0 || 1 || 0 || 0 || 0 || 0
| 1 || 1 || 0 || 1 || 0 || 0 || 0 || 0
Line 337: Line 337:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 0 || 1 || 1 || 0 || 0 || 0
| 1 || 1 || 0 || 1 || 1 || 0 || 0 || 0
Line 348: Line 348:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 1 || 0 || 0 || 0 || 0 || 0
| 1 || 1 || 1 || 0 || 0 || 0 || 0 || 0
Line 359: Line 359:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 1 || 0 || 1 || 0 || 0 || 0
| 1 || 1 || 1 || 0 || 1 || 0 || 0 || 0
Line 370: Line 370:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 1 || 1 || 0 || 0 || 0 || 0
| 1 || 1 || 1 || 1 || 0 || 0 || 0 || 0
Line 381: Line 381:
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
! 7 !! 6 !! 5 !! 4 !! 3 !! 2 !! 1 !! 0
|-
|-
| colspan="5" style="text-align: center;" | opcode1
| colspan="5" style="text-align: center;" | opcode1 || colspan="3" style="text-align:center;" |
|-
|-
| 1 || 1 || 1 || 1 || 1 || 0 || 0 || 0
| 1 || 1 || 1 || 1 || 1 || 0 || 0 || 0
|}
|}

Revision as of 22:41, 8 February 2018

Instruction set

It looks like instructions are 8 bytes long. Roughly speaking - first 4 bytes contain opcode and addressing mode. Second 4 bytes contain operands encoding.

0x00000000 - 0x08000000

7 6 5 4 3 2 1 0
opcode1
0 0 0 0 0 0 0 0
7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0
7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0
7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0

0x08000000 - 0x10000000

7 6 5 4 3 2 1 0
opcode1
0 0 0 0 1 0 0 0

0x10000000 - 0x18000000

7 6 5 4 3 2 1 0
opcode1
0 0 0 1 0 0 0 0

0x18000000 - 0x20000000

7 6 5 4 3 2 1 0
opcode1
0 0 0 1 1 0 0 0

0x20000000 - 0x28000000

7 6 5 4 3 2 1 0
opcode1
0 0 1 0 0 0 0 0

0x28000000 - 0x30000000

7 6 5 4 3 2 1 0
opcode1
0 0 1 0 1 0 0 0

0x30000000 - 0x38000000

7 6 5 4 3 2 1 0
opcode1
0 0 1 1 0 0 0 0

0x38000000 - 0x40000000

7 6 5 4 3 2 1 0
opcode1
0 0 1 1 1 0 0 0

0x40000000 - 0x48000000

7 6 5 4 3 2 1 0
opcode1
0 1 0 0 0 0 0 0

0x48000000 - 0x50000000

7 6 5 4 3 2 1 0
opcode1
0 1 0 0 1 0 0 0

0x50000000 - 0x58000000

7 6 5 4 3 2 1 0
opcode1
0 1 0 1 0 0 0 0

0x58000000 - 0x60000000

7 6 5 4 3 2 1 0
opcode1
0 1 0 1 1 0 0 0

0x60000000 - 0x68000000

7 6 5 4 3 2 1 0
opcode1
0 1 1 0 0 0 0 0

0x68000000 - 0x70000000

7 6 5 4 3 2 1 0
opcode1
0 1 1 0 1 0 0 0

0x70000000 - 0x78000000

7 6 5 4 3 2 1 0
opcode1
0 1 1 1 0 0 0 0

0x78000000 - 0x80000000

7 6 5 4 3 2 1 0
opcode1
0 1 1 1 1 0 0 0

0x80000000 - 0x88000000

7 6 5 4 3 2 1 0
opcode1
1 0 0 0 0 0 0 0

0x88000000 - 0x90000000

7 6 5 4 3 2 1 0
opcode1
1 0 0 0 1 0 0 0

0x90000000 - 0x98000000

7 6 5 4 3 2 1 0
opcode1
1 0 0 1 0 0 0 0

0x98000000 - 0xA0000000

7 6 5 4 3 2 1 0
opcode1
1 0 0 1 1 0 0 0

0xA0000000 - 0xA8000000

7 6 5 4 3 2 1 0
opcode1
1 0 1 0 0 0 0 0

0xA8000000 - 0xB0000000

7 6 5 4 3 2 1 0
opcode1
1 0 1 0 1 0 0 0

0xB0000000 - 0xB8000000

7 6 5 4 3 2 1 0
opcode1
1 0 1 1 0 0 0 0

0xB8000000 - 0xC0000000

7 6 5 4 3 2 1 0
opcode1
1 0 1 1 1 0 0 0

0xC0000000 - 0xC8000000

7 6 5 4 3 2 1 0
opcode1
1 1 0 0 0 0 0 0

0xC8000000 - 0xD0000000

7 6 5 4 3 2 1 0
opcode1
1 1 0 0 1 0 0 0

0xD0000000 - 0xD8000000

7 6 5 4 3 2 1 0
opcode1
1 1 0 1 0 0 0 0

0xD8000000 - 0xE0000000

7 6 5 4 3 2 1 0
opcode1
1 1 0 1 1 0 0 0

0xE0000000 - 0xE8000000

7 6 5 4 3 2 1 0
opcode1
1 1 1 0 0 0 0 0

0xE8000000 - 0xF0000000

7 6 5 4 3 2 1 0
opcode1
1 1 1 0 1 0 0 0

0xF0000000 - 0xF8000000

7 6 5 4 3 2 1 0
opcode1
1 1 1 1 0 0 0 0

0xF8000000 - 0xFF000000

7 6 5 4 3 2 1 0
opcode1
1 1 1 1 1 0 0 0