This repository was archived by the owner on May 24, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import ./memt.mcbt
55
66function onload minecraft:load {
77 scoreboard objectives add riscvmc dummy
8- scoreboard objectives add mcb.interal dummy
8+ scoreboard objectives add mcb.internal dummy
99
1010 data modify storage riscvmc:temp temp.CODECLASS set value [1b, 1b]
1111
@@ -368,14 +368,14 @@ function process_arithmetic {
368368function execute_inst {
369369 execute if data storage riscvmc:memory {decode_map_processed: {CODECLASS: true}} run {
370370 execute if data storage riscvmc:memory {decode_map_processed: {OPCODE: "JAL"}} run {
371- template add riscvmc:memory@pc riscvmc:temp@ temp.4 riscvmc:temp@ temp.pc
371+ data modify storage riscvmc:temp temp.pc set from storage riscvmc:temp temp.pc_a4
372372 template put_reg riscvmc:memory@decode_map.RD riscvmc:temp@temp.pc
373373
374374 template sign_extend_32 riscvmc:memory@decode_map.IMMJ
375375 data modify storage riscvmc:temp temp.pc set from storage riscvmc:memory pc
376376 template add riscvmc:memory@decode_map.IMMJ riscvmc:temp@temp.pc riscvmc:memory@pc
377377 } else execute if data storage riscvmc:memory {decode_map_processed: {OPCODE: "JALR"}} run {
378- template add riscvmc:memory@pc riscvmc:temp@ temp.4 riscvmc:temp@ temp.pc
378+ data modify storage riscvmc:temp temp.pc set from storage riscvmc:temp temp.pc_a4
379379
380380 template sign_extend_32 riscvmc:memory@decode_map.IMMI
381381
You can’t perform that action at this time.
0 commit comments