26 April 2007, 23:49 | #81 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
|
That's a nice trick AGN
|
27 April 2007, 10:28 | #82 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
A 1 pixel version of the sinescroll routine is in the zone...
It now has local labels, a loop for the sin blits instead of them being all laid out one after the other (16 was too many to type in!), AGN's cool 'go back to start of any size sin table' amendment (see previous couple of posts) and the commenting has been updated a little. |
26 June 2008, 13:19 | #83 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Not too earth shatteringly interesting but I've had some time recently after not having any time at all for a while so I made a little update to my old sine scroller code by adding a speed change routine.
In trying to learn a bit more about address register indirect with offset and index I found some code that had something similar to what's now in my sine scroll routine except I couldn't undertand why they were doing what they were doing in their code. After playing around with little test routines in a debugger I realised that I couldn't understand their code cos it was wrong and didn't actually do what it was supposed to do! Anyway, working out why their code was wrong gave me enough of an understanding to work out how to do it right so I put a working routine together and stuck it in my sine scroll code. So, a new version with the speed change routine is in The Zone in case anyone might be interested. |
05 September 2010, 13:15 | #84 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Check the attached archive for an updated version of my sinescroller as promised to CmdrVimes. In the archive is:
sinescroller.68k - commented source code sinescroller.exe - Amiga executable of the source code Enjoy. Last edited by pmc; 21 September 2010 at 17:40. |
05 September 2010, 15:12 | #85 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Updated version with conditional assembly selectable one, two or four pixel sinus applied to the scroller.
EDIT: New version attached - I found a couple of small optimisations that could be made to the code. Last edited by pmc; 21 September 2010 at 17:40. |
07 September 2010, 14:01 | #86 | |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
Quote:
Thanks. |
|
07 September 2010, 14:06 | #87 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
No probs mate. I hope it's useful to you. If you have questions about anything that's going on in the code that you don't understand then just shout.
|
07 September 2010, 14:38 | #88 |
Junior Member
Join Date: Aug 2001
Location: France
Posts: 1,385
|
very well commented source code. Congrats.
|
28 June 2017, 10:17 | #89 | |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
Sine scroll full source
Quote:
Explanation are in french, but you won't mind since you can download the code in a ZIP. |
|
28 June 2017, 10:39 | #90 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,997
|
Quote:
|
|
28 June 2017, 11:04 | #91 |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
Nice Fun part is that this one was coded by "mistake". I wanted to rotate the crab, and missed the point in the equation so instead of rotating, it expanded and shrinked along both axis. Decided that it was nice enough to keep it. Great chip tune by the great Monty. Ah... those Amiga days!
|
28 June 2017, 11:10 | #92 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,475
|
|
30 June 2017, 10:14 | #93 |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
|
30 June 2017, 10:50 | #94 | ||
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Quote:
|
||
01 July 2017, 17:28 | #95 | |
Registered Insane
Join Date: Feb 2010
Location: Ununited Kingdom
Posts: 792
|
Quote:
|
|
02 July 2017, 16:40 | #96 |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
Drawn from a stencil I made several years before to paint this symbol on a wall. The idea of the symbol came from "Le crabe aux pinces d'or" by Hergé. You know everything!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with a sine effect | bobster | Coders. Tutorials | 16 | 17 October 2012 12:11 |
Sine scroller - dycp | blazeb | Coders. Asm / Hardware | 6 | 02 May 2012 10:08 |
Flickering sine scroller | pmc | Coders. Tutorials | 4 | 24 June 2009 09:19 |
Help with sine regression | Ed Cruse | Coders. General | 14 | 30 June 2008 01:15 |
|
|