Skip to content

Instantly share code, notes, and snippets.

View hv7214's full-sized avatar
☁️
Somewhere in quantum clouds.

Harshit Verma hv7214

☁️
Somewhere in quantum clouds.
View GitHub Profile
@hv7214
hv7214 / assignment2_18114029.asm
Created September 4, 2019 14:04
Write a SimpleRisc assembly program to find the Ramanujan number, the smallest number that is a sum of two cubes in two different ways.
mov r2 1 // number considering as ramanujan number
.for1:
mov r1 0 // counter for ramanujan number
mov R1 1
mov R2 1
mov R3 0
mov R4 1
mov r3 r2