www.retrosoftware.co.uk
http://www.retrosoftware.co.uk/forum/

Sample Code Library
http://www.retrosoftware.co.uk/forum/viewtopic.php?f=3&t=14
Page 1 of 1

Author:  DaveM [ Wed Jan 09, 2008 12:54 pm ]
Post subject:  Sample Code Library

Ok, so what's the best way to structure this?

Currently we have headings for BASIC Routines, Assembler Routines, Graphic Routines & Sound Routines, but I'm sure you lot will be able to suggest categories that are more appropriate?

Also, can anyone supply some example routines/content to get us started? I don't think we can make the site 'live' with all that latin there! ;)

Maybe Rich could dig out the 'Firetrack Scroll' he posted to the Beeb ML yonks ago?

Author:  RichTW [ Wed Jan 09, 2008 2:21 pm ]
Post subject:  Re: Sample Code Library

Hi, first post! :mrgreen:

Nice job you guys...

Yeah, there are a few things I'd like to throw in there:
    * The sprite routines (character row aligned, and any line) from Francis' sprite editor thread about a month ago.
    * The dot plotting routine (from the STH hardware forum).
    * Some sample code for the smooth vertical scroll (I posted a disc image recently).
    * Fast multiply routines (a post I made to the BBC Micro Mailing List way back when)

...maybe other stuff too...

Not sure when I'll have time to collate all this stuff and learn how to use the wiki (!), but will try and get some stuff together over the weekend!

Author:  SteveO [ Wed Jan 09, 2008 2:51 pm ]
Post subject:  Re: Sample Code Library

DaveM wrote:
Ok, so what's the best way to structure this?

Currently we have headings for BASIC Routines, Assembler Routines, Graphic Routines & Sound Routines, but I'm sure you lot will be able to suggest categories that are more appropriate?


With those headings where would you put an assembler or BASIC routine that did graphics or Sound. A sprite plotter could go in assembler or graphics.

Mmmmm... (thinks)..... (smell of wood burning)..... Maybe do away with the BASIC and assembler categories and just have the sub cats. In some cases assembler routines can be self contained where a person who knows BASIC could use the assembler routine without knowing (or needing to understand) how it works.

If self contained the poster could give an example of how to include it in and call it from BASIC.

So we'd could have assembler and BASIC routines within the same category.

I think Graphics and Sound are two good starting catgories.

Just my tuppence worth :)

Author:  RichTW [ Wed Jan 09, 2008 2:56 pm ]
Post subject:  Re: Sample Code Library

But how about stuff like how to do multiplies in assembler? Neither graphics nor sound... but probably a handy topic for someone nonetheless :) Someone's bound to want to write the next Elite...

Author:  SteveO [ Wed Jan 09, 2008 3:35 pm ]
Post subject:  Re: Sample Code Library

Perhaps a category of "Other Assembler" and "Other - BASIC". Or indeed a Maths Category, but we don't want to have too many categories though with only 2 or 3 posts in.

I'd say no matter what the main ones are we'll need some sort of "Other" category.

Author:  Samwise [ Wed Jan 09, 2008 10:13 pm ]
Post subject:  Re: Sample Code Library

Excellent ... the discussions are starting. :)

I propose ppl start putting actual examples up there! Then we build the categories around them. If there aren't any BASIC examples, for instance, then we just drop that category.

Darwin was right with that evolution malarky - survival of the fittest!

Sam.

Author:  FrancisL [ Fri Apr 04, 2008 10:51 pm ]
Post subject:  Re: Sample Code Library

Samwise wrote:
Excellent ... the discussions are starting. :)

I propose ppl start putting actual examples up there! Then we build the categories around them. If there aren't any BASIC examples, for instance, then we just drop that category.

Darwin was right with that evolution malarky - survival of the fittest!

Sam.

An example BASIC routine has now been added! ;)

Kind regards,

Francis.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/