Date : Wed, 30 Aug 2006 20:39:18 +0100
From : "Ian Wolstenholme" <BBCMailingList@...>
Subject: Assembler & Decimal Notation
That FREE routine has reminded me. This is in my top ten of
Things I've Always Wanted To Know...
When using 6502 assembler, how do you translate two- or
three-byte numbers (or even one-byte for that matter) stored in
memory into decimal numbers which can be printed on screen?
It was always my intention to translate the Free routine into
machine code but I got stuck because a) I could never get my
head round how to do 2 or 3 byte number addition or subtraction
in assembler and b) even if I had mastered all that Carry Flag,
Overflow and Z business (can't even remember what Z is for now)
then I wouldn't have the faintest idea how to get the answer printed
on the screen in decimal numbers.
Best wishes,
Ian