Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e36206501c4d
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2225fb13dbe1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 3, 2018

  1. arch.boneless: renumber I-class opcodes to group better.

    Now, all code=1xx opcodes except LDI/STI read from Rs (and ADDI/SUBI
    writes to Rd), and all code=0xx opcodes only write to Rd.
    whitequark committed Dec 3, 2018
    Copy the full SHA
    2225fb1 View commit details
Showing with 10 additions and 10 deletions.
  1. +5 −5 software/glasgow/arch/boneless/__init__.py
  2. +5 −5 software/glasgow/arch/boneless/opcode.py
10 changes: 5 additions & 5 deletions software/glasgow/arch/boneless/__init__.py
Original file line number Diff line number Diff line change
@@ -108,13 +108,13 @@
# - code=10 LDX
# - code=11 STX
# * class=I
# - code=000 ADDI/SUBI
# - code=001 MOVA
# - code=010 MOVL
# - code=011 MOVH
# - code=000 MOVL
# - code=001 MOVH
# - code=010 MOVA
# - code=011 JAL
# - code=100 LDI
# - code=101 STI
# - code=110 JAL
# - code=110 ADDI/SUBI
# - code=111 JR
# * class=C
# - code=000
10 changes: 5 additions & 5 deletions software/glasgow/arch/boneless/opcode.py
Original file line number Diff line number Diff line change
@@ -27,13 +27,13 @@
OPCODE_LDX = 0b001_10
OPCODE_STX = 0b001_11

OPCODE_ADDI = 0b01_000
OPCODE_MOVA = 0b01_001
OPCODE_MOVL = 0b01_010
OPCODE_MOVH = 0b01_011
OPCODE_MOVL = 0b01_000
OPCODE_MOVH = 0b01_001
OPCODE_MOVA = 0b01_010
OPCODE_JAL = 0b01_011
OPCODE_LDI = 0b01_100
OPCODE_STI = 0b01_101
OPCODE_JAL = 0b01_110
OPCODE_ADDI = 0b01_110
OPCODE_JR = 0b01_111

OPCODE_F_0 = 0b1_000