URL
https://opencores.org/ocsvn/diogenes/diogenes/trunk
Subversion Repositories diogenes
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 203 to Rev 204
- ↔ Reverse comparison
Rev 203 → Rev 204
/trunk/examples/fast_eratost2.asm
0,0 → 1,78
ldi l7, 30 |
mov l5, l7 |
stio l5, [l5] |
ldi l4, 0 |
ldi l0, 0 |
ldi l1, 1 |
1: |
st l0, [l4] |
adi l4, 1 |
brnz l5, :1 |
adi l5, -1 |
ldi l4, 2 |
mov l5, l7 |
2: |
mov l2, l4 |
3: |
add l2, l2, l4 |
cmpl l6, l2, l5 |
brz l6, :4 |
nop |
brnz l6, :3 |
st l1, [l2] |
4: |
adi l4, 1 |
nop |
cmpl l3, l5, l4 |
brnz l3, :10 |
ld l3, [l4] |
nop |
brnz l3, :4 |
nop |
brz l3, :2 |
nop |
10: |
ldi l3, 1 |
@ stio l3, [l3] |
11: |
adi l3, 1 |
cmpl l4, l3, l7 |
brz l4, :99 |
ld l5, [l3] |
nop |
brnz l5, :11 |
nop |
nop |
ldi h4, 0x1 |
@ lsi h4, 0 |
@ lsi h4, 0 |
@ lsi h4, 0 |
ldi h1, 0 |
@ LDL h5, :40 |
@ call h6, <h5> |
stio l3, [l0] |
lsi h4, 0 |
32: |
cmpl h0, h1, h4 |
brnz h0, :32 |
adi h1, 1 |
brz h0, :11 |
nop |
99: |
brnz l1, :99 |
nop |
nop |
nop |
nop |
nop |
nop |
40: |
@ shi h3, l3, -1 |
stio l3, [l0] |
nop |
jump <h6> |
nop |
nop |
nop |
stop |
|
trunk/examples/fast_eratost2.asm
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: trunk/examples/lcd.asm
===================================================================
--- trunk/examples/lcd.asm (nonexistent)
+++ trunk/examples/lcd.asm (revision 204)
@@ -0,0 +1,47 @@
+ldi l0, 0
+stio l0, [l0]
+
+1:
+ldi h0, 0x1
+ldi l0, 7
+10:
+ldi h1, 0
+stio h0, [h1] @ leds echo
+nop
+
+adi l0, -1
+
+ldi l1, 0x1f
+lsi l1, 0
+lsi l1, 0
+11:
+brnz l1, :11
+adi l1, -1
+
+
+
+brnz l0, :10
+shi h0, 1
+
+ldi l0, 7
+20:
+ldi h1, 0
+stio h0, [h1] @ leds echo
+nop
+adi l0, -1
+
+ldi l1, 0x1f
+lsi l1, 0
+lsi l1, 0
+21:
+brnz l1, :21
+adi l1, -1
+
+
+brnz l0, :20
+shi h0, -1
+
+brz l0, :1
+nop
+stop
+
trunk/examples/lcd.asm
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property