summaryrefslogtreecommitdiffstats
path: root/src/emu/test1
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/emu/test1bin0 -> 456 bytes
-rw-r--r--src/emu/test1.S126
2 files changed, 126 insertions, 0 deletions
diff --git a/src/emu/test1 b/src/emu/test1
new file mode 100644
index 0000000..e2cbe0a
--- /dev/null
+++ b/src/emu/test1
Binary files differ
diff --git a/src/emu/test1.S b/src/emu/test1.S
new file mode 100644
index 0000000..1feae7a
--- /dev/null
+++ b/src/emu/test1.S
@@ -0,0 +1,126 @@
+.REGS 23
+JMP 53
+PUSH r24
+ADD r24, r0, r25
+PUSH r1
+PUSH r2
+PUSH r3
+PUSH r4
+PUSH r5
+PUSH r6
+PUSH r7
+PUSH r8
+PUSH r9
+PUSH r10
+LW r24, r2, 8
+MOV r3, 2
+CMP r2, r3
+LT r1
+BEZ r1, 4
+MOV r4, 1
+ADD r26, r0, r4
+JMP 20
+LW r24, r5, 8
+MOV r6, 1
+SUB r5, r5, r6
+PUSH r5
+CALL -24
+ADD r7, r0, r26
+POP r0
+LW r24, r8, 8
+MOV r9, 2
+SUB r8, r8, r9
+PUSH r8
+CALL -31
+ADD r10, r0, r26
+POP r0
+ADD r7, r7, r10
+ADD r26, r0, r7
+JMP 3
+ADD r26, r0, r0
+JMP 1
+POP r10
+POP r9
+POP r8
+POP r7
+POP r6
+POP r5
+POP r4
+POP r3
+POP r2
+POP r1
+ADD r25, r0, r24
+POP r24
+RET
+PUSH r24
+ADD r24, r0, r25
+PUSH r0
+PUSH r0
+PUSH r0
+PUSH r11
+PUSH r12
+PUSH r13
+PUSH r14
+PUSH r15
+PUSH r16
+PUSH r17
+PUSH r18
+PUSH r19
+PUSH r20
+PUSH r21
+PUSH r22
+PUSH r23
+MOV r11, 0
+SW r24, r11, -4
+MOV r12, 0
+SW r24, r12, -8
+LW r24, r14, -8
+MOV r15, 10
+CMP r14, r15
+LT r13
+BEZ r13, 14
+LW r24, r16, -4
+LW r24, r17, -8
+PUSH r17
+CALL -82
+ADD r18, r0, r26
+POP r0
+ADD r16, r16, r18
+SW r24, r16, -4
+LW r24, r19, -8
+MOV r20, 1
+ADD r19, r19, r20
+SW r24, r19, -8
+JMP -17
+MOV r21, 3
+PUSH r21
+CALL -94
+ADD r22, r0, r26
+POP r0
+SW r24, r22, -12
+LW r24, r23, -4
+ADD r26, r0, r23
+JMP 3
+ADD r26, r0, r0
+JMP 1
+POP r0
+POP r0
+POP r0
+POP r23
+POP r22
+POP r21
+POP r20
+POP r19
+POP r18
+POP r17
+POP r16
+POP r15
+POP r14
+POP r13
+POP r12
+POP r11
+ADD r25, r0, r24
+POP r24
+PUSH r26
+PUSH r0
+SYS