Skip to content

Commit 2ace2e2

Browse files
committed
The beginning - polymorphic instruction environment set up
0 parents  commit 2ace2e2

29 files changed

+6618
-0
lines changed

asm/code_ooo.asm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
LWS F0 10(R1)
2+
LWS F2 20(R2)
3+
ADDS F3 F0 F2
4+
MULTS F4 F0 F5
5+
BEQZ R3 TARGET
6+
SUBS F2 F5 F4
7+
DIVS F6 F10 F0
8+
ADDS F5 F7 F8
9+
TARGET: ADDS F4 F2 F3
10+
SUBS F2 F5 F4
11+
EOP

asm/code_ooo2.asm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
XOR R0 R0 R0
2+
ADDI R1 R0 0xA000
3+
ADDI R2 R0 0x4
4+
LWS F2 0(R1)
5+
LOOP: LWS F3 0(R1)
6+
MULTS F1 F2 F3
7+
ADDS F1 F3 F3
8+
SUBI R2 R2 1
9+
ADDI R1 R1 0x4
10+
BNEZ R2 LOOP
11+
DIVS F4 F1 F1
12+
SUBS F1 F3 F1
13+
EOP

0 commit comments

Comments
 (0)