Skip to content

Commit

Permalink
Fix assembly formatting and highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilescur committed Apr 28, 2020
1 parent 9e51c0a commit 38cccac
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,21 +290,21 @@ converted to instructions through the Instruction Selection process.
For example, Instruction Selection produces the following output for the IR
above:

```mips
```asm
PROCEDURE L0
L0:
L2:
addi t0, r0, 7
sw t0, ~4(t25)
addi t1, r0, 9
sw t1, ~8(t25)
addi t2, r0, 3
sw t2, ~12(t25)
lw t4, ~4(t25)
lw t5, ~8(t25)
add t3, t4, t5
sw t3, ~12(t25)
j L1
addi t0, r0, 7
sw t0, ~4(t25)
addi t1, r0, 9
sw t1, ~8(t25)
addi t2, r0, 3
sw t2, ~12(t25)
lw t4, ~4(t25)
lw t5, ~8(t25)
add t3, t4, t5
sw t3, ~12(t25)
j L1
L1:
END L0
```
Expand Down Expand Up @@ -392,7 +392,7 @@ end

Compiles to the following MIPS assembly with correct physical registers allocated:

```mips
```asm
.text
j L0
.text
Expand Down

0 comments on commit 38cccac

Please sign in to comment.