Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/simulator/creator_uielto_memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
' </b-badge>' +
' ' +
' <span class="memoryBorder" v-if="row.item.Binary[2].Tag != null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
' </span> ' +
' <span v-if="row.item.Binary[2].Tag == null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
Expand Down Expand Up @@ -213,7 +213,7 @@
' </b-badge>' +
' ' +
' <span class="memoryBorder" v-if="row.item.Binary[2].Tag != null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
' </span> ' +
' <span v-if="row.item.Binary[2].Tag == null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
Expand Down Expand Up @@ -262,7 +262,7 @@
' </b-badge>' +
' ' +
' <span class="memoryBorder" v-if="row.item.Binary[2].Tag != null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
' </span> ' +
' <span v-if="row.item.Binary[2].Tag == null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
Expand Down Expand Up @@ -412,7 +412,7 @@
' </b-badge>' +
' ' +
' <span class="memoryBorder" v-if="row.item.Binary[2].Tag != null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
' </span> ' +
' <span v-if="row.item.Binary[2].Tag == null">' +
' {{row.item.Binary[2].Bin.toUpperCase()}}' +
Expand Down
23 changes: 17 additions & 6 deletions examples/RISCV/example10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,34 @@

.text
main:
# print "Insert string length..."
la a0 string1
li a7 4
ecall


# read int
li a7 5
ecall
add t0 a7 zero


add t0 a0 zero

# print "Insert string..."
la a0 string2
li a7 4
ecall

la a0 space

# read string
la a0 space
add a1 t0 zero
li a7 8
ecall


# print string
la a0 space
li a7 4
ecall

# exit
li a7 10
ecall

30 changes: 19 additions & 11 deletions examples/RISCV/example9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,46 @@
#

.data
msg: .string "Please, insert the first number."
msg2: .string "Please, insert the second number."
msg: .string "Please, insert the first number: "
msg2: .string "Please, insert the second number: "
msg3: .string "The result is: "

.text
main:
# print "insert first..."
la a0 msg
li a7 4
ecall


# read int
li a7 5
ecall
add t0 a7 zero


add t0 a0 zero

# print "insert second..."
la a0 msg2
li a7 4
ecall


# read int
li a7 5
ecall
add t1 a7 zero


add t1 a0 zero
add t2 t0 t1


# print "result..."
la a0 msg3
li a7 4
ecall

# print t2
add a0 t2 zero
li a7 1
ecall


# exit
li a7 10
ecall

2 changes: 1 addition & 1 deletion js/min.creator_web.js

Large diffs are not rendered by default.