Some useful short 6809 routines
Posted: Sat Dec 11, 2021 3:51 pm
Although I've programmed the Z80/6502/68000/etc a lot I'm a noob to the Dragon and the 6809. I therefore did some searching on the net to see if there were any useful maths and utility routines. The sort of routines you use regularly such as outputting hexadecimal from binary or doing a 30x30 division. I found precisely nothing, but that may be a problem with me rather than the net. Having said that, if you look hard enough, you can generally find such routines for other MPUs. Anyway, I ended up spending a couple of days writing some of the things I use frequently from scratch.
They may be of use to other Dragon/6809 noobs. They're written with relocation in mind and with extended addressing. Maybe my style will change as I get used to the new (to me) addressing modes. I also don't know whether puls pc or rts is preferred by the 6809 community so I've used a mix to make everyone or no one (un)happy.
Anyway, as I'm intending to post a few questions to this forum I thought it best to have my first non-introductory post as a contribution lest I get an initial reputation as just a leech.
Alan
They may be of use to other Dragon/6809 noobs. They're written with relocation in mind and with extended addressing. Maybe my style will change as I get used to the new (to me) addressing modes. I also don't know whether puls pc or rts is preferred by the 6809 community so I've used a mix to make everyone or no one (un)happy.
Anyway, as I'm intending to post a few questions to this forum I thought it best to have my first non-introductory post as a contribution lest I get an initial reputation as just a leech.
Alan