[Coco] Errors in Leventhal's 6809 Subroutines book?

robert.gault at att.net robert.gault at att.net
Sat Jan 29 01:01:41 EST 2022


Right, I just looked up what I think are the lines in question.      ldx ,s      leax -1,s      stx ,s The instruction is legitimate but the sequence makes no sense to me. The second instruction removes the result of the first. The comments with the code suggest that regS points to a value which is to be decreased. In that case the code should be      ldx ,s     leax -1,x     stx ,sIf regS held a value instead of a pointer, then one should just use      leas -1,s Sent from my LG Mobile


More information about the Coco mailing list