diff --git a/README.md b/README.md index f679b21..1f3eb51 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines. - Rebol - React Javascript - React Typescript +- RISC-V Assembly - Rockstar - Romanian - Ruby diff --git a/implementations/main.riscv b/implementations/main.riscv new file mode 100644 index 0000000..e24c1da --- /dev/null +++ b/implementations/main.riscv @@ -0,0 +1,8 @@ + .section .rodata + .text + .align 1 + .globl is_prime + .type is_prime, @function +is_prime: + mv a0, zero + ret diff --git a/optimized_implementations/main.riscv b/optimized_implementations/main.riscv new file mode 100644 index 0000000..c4330f9 --- /dev/null +++ b/optimized_implementations/main.riscv @@ -0,0 +1 @@ +is_prime:li a0,0;ret \ No newline at end of file