annotate lib/coco3.as @ 2981:9550602c9a0b

sierra/objs_lsl/mnln.asm: Use division quotient, not remainder It calls a routine twice to make a division (L125C) but doesn't check the right register for the result. The result is returned in reg U and the remainder in reg D but the procedure expect the result to be returned in reg D. The divison routine seems to be correct because it is properly used elsewhere in the code. Patch by Guillaume Major and Robert Gault.
author Guillaume Major <guillaume.major@gmail.com>
date Sat, 12 Apr 2014 15:30:03 +0200
parents 3b7b5021f8bc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2807
3b7b5021f8bc Cosmetic
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2803
diff changeset
1 use sys6809l2.as
2803
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
2
2807
3b7b5021f8bc Cosmetic
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2803
diff changeset
3 section _constant
2803
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
4
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
5 use ../defs/coco.d
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
6 use ../defs/cocovtio.d
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
7
d911fcfc0211 Further refinements
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff changeset
8 endsect