SampleCodeLibrary

From Retrosoftware

Jump to: navigation, search

Contents

Sample Code Library

BASIC Routines

Text Wrapping Routine by Francis G. Loch

An example of how to dynamically wrap text for use in programs such as text adventures.

Limitless commenting in BASIC by Andrew Weston

Using BeebugSoft's Toolkit Plus *CRUNCH command, with !Beebit and !6502em on RISC OS.


Assembler Routines

Custom Text Input by Francis G. Loch

Custom routine for obtaining text input.

Fast multiplication routines by Rich Talbot-Watkins

Various techniques for performing a multiply quickly on the 6502.

Reading the keyboard by direct hardware access by Rich Talbot-Watkins

How to improve the speed of your games by ditching OSBYTE and reading the keyboard hardware directly.


Graphic Routines

Line by line vertical scrolling on the Beeb by Rich Talbot-Watkins (Updated!)

An introduction to the "vertical rupture" technique, and then an application of its use in a line-by-line vertical scrolling routine.

Basic Sprite Plotter by Steve O'Leary

A basic sprite plotter (in assembly) for use in 20K screens (with a demo in Mode 2) but easily adapted for other modes. Written in Swift in P65 assembler.


Sound Routines

Sample Sound Routine Example by A.N. Fibber

<Insert Your Routine here>