mirror of
https://github.com/Asraelite/littlebigcomputer.git
synced 2025-07-18 00:26:50 +00:00
Fix V8 emulator bugs
This commit is contained in:
parent
c45ad79440
commit
476972f85a
29 changed files with 281 additions and 18 deletions
16
programs/parva_0.1/multiply_1.lbpasm
Normal file
16
programs/parva_0.1/multiply_1.lbpasm
Normal file
|
@ -0,0 +1,16 @@
|
|||
li a0, 420
|
||||
li a1, 69
|
||||
|
||||
multiply:
|
||||
li t0, 0
|
||||
loop:
|
||||
andi t1, a1, 1
|
||||
beqz t1, no_add
|
||||
add t0, t0, a0
|
||||
no_add:
|
||||
slli a0, a0, 1
|
||||
srli a1, a1, 1
|
||||
bnez a1, loop
|
||||
mv a0, t0
|
||||
j ra
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue