Skip to content
Snippets Groups Projects
Commit a06f488a authored by Kevin ZHANG's avatar Kevin ZHANG
Browse files

new change

parent c9ea59b8
No related branches found
No related tags found
No related merge requests found
.project 0 → 100644
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SWEN90006-A1-2018</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
MOV R10 -65535
RET R10
\ No newline at end of file
MOV R0 65535
MOV R1 32768
MOV R2 32767
MUL R0 R0 R1
ADD R0 R0 R2
RET 0
\ No newline at end of file
MOV R0 65535
MOV R1 -32768
MOV R2 -1
MUL R0 R0 R1
ADD R0 R0 R1
ADD R0 R0 R2
RET R0
\ No newline at end of file
MOV R0 65535
MOV R1 32768
MUL R0 R0 R1
ADD R0 R0 R1
RET R0
\ No newline at end of file
MOV R0 5
MOV R1 0
LDR R0 R1 0
RET R0
\ No newline at end of file
MOV R0 5
MOV R1 1
LDR R0 R1 65534
RET R0
\ No newline at end of file
MOV R0 5
MOV R1 -1
LDR R0 R1 0
RET R0
\ No newline at end of file
MOV R0 5
MOV R1 2
LDR R0 R1 65534
RET R0
\ No newline at end of file
MOV R0 2
MOV R1 0
DIV R0 R0 R1
RET R0
\ No newline at end of file
MOV R0 2
MOV R1 1
DIV R0 R0 R1
RET R0
\ No newline at end of file
MOV R0 2
MOV R1 -1
DIV R0 R0 R1
RET R0
\ No newline at end of file
MOV R10 65535
RET R10
\ No newline at end of file
RET R0
\ No newline at end of file
MOV R0 1
MOV R1 1
JZ R1 3
SUB R1 R1 R1
JMP -2
RET R0
\ No newline at end of file
JMP -1
\ No newline at end of file
MOV R0 1
JMP 2
\ No newline at end of file
MOV R10 1
MOV R11 1
STR R11 -65536 R10
\ No newline at end of file
MOV R10 1
MOV R11 1
LDR R10 R11 65536
\ No newline at end of file
MOV R0 1
MOV R11 1
ADD R0 R0 R11
RET R0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment