[stella] Question about Circus Atari and BCD addition

Stephen Anthony sa666666 at gmail.com
Wed Jun 20 11:42:38 CDT 2007


On June 20, 2007 01:58:45 pm bob.montgomery at thomson.com wrote:
> Hi,
>
> this is how Stella does BCD adds:

[snipped]

> If that's correct, then it looks like the 6507 first converts both
> operands to BCD, treating each nibble like a decimal digit (whether
> or not the nibble is <= 9), so $F0 = 150 and $FF = 165.

[snipped]

> So apparently adding $0A is exactly the same as adding $10.
>
> All assuming that Stella is accurate.

And if this isn't the correct functionality, I'd be very interested in 
knowing about it (so it can be fixed).

Steve




More information about the Stella mailing list