Skip to content
Snippets Groups Projects
Commit c4e48a87 authored by Zhangyun Ye's avatar Zhangyun Ye
Browse files

Upload New File

parent 16ff0e15
Branches
No related tags found
No related merge requests found
MOV R3 12 ; N = 12
MOV R2 1 ;
MOV R1 0 ; i = 0;
MOV R0 1 ; n = 1;
SUB R4 R3 R1 ; while(i != N)
JZ R4 4 ; {
ADD R1 R1 R2 ; i = i + 1;
MUL R0 R0 R1 ; n = n * i;
JMP -4 ; }
RET R0 ; return n;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment