6502 6502 Programming tips and code fragments
 MDFS::Info.Comp.6502.ProgTips Search  

BitManip Copying, clearing, setting and rotating bits
SwapVals Swapping data without temporary variable
DayOfWeek 
DofWTest
Calculating day of week
Day of Week BASIC source and test code
BCD  Converting 8-bit Binary Coded Decimal
PrNumber Printing 8-bit numbers in hex and decimal
PrDecimal 
PrDec
Printing 16/24/32-bit numbers in decimal
Decimal printout BASIC source and test code
ScanNumber  Scanning 8-bit numbers
ScanDecimal  Scanning 15/24/32-bit decimal numbers
Decrement  16-bit, 24-bit, 32-bit decrement
Denormal Denormalising floating point numbers
SqRoot  Calculate integer Square Root
StackMem  Subroutines to stack memory
StackWS  Demo of using stack for workspace
60to100  Multiply by 1.66 to convert 1/60ths to 1/100ths
6502Divide  Routines to multiply by various constants
 
CRC-8 Calculating 8-bit CRCs
CRC16  Calculating 16-bit CRCs for XMODEM and Acorn CFS/RFS
CRC32  Calculating 32-bit CRCs for ZIP files
Testing  RAM tester
Calling BBC code
CatchingErrors  Catching errors
 
Programs and tools
DisAssem  BBC BASIC 6502 disassembler
BBCBasic  BBC BASIC for the 6502

Best viewed with Any Browser Valid HTML 4.0! Authored by J.G.Harston
Last update: 29-Jun-2018