Mercurial > hg > Members > kono > nitros9-code
annotate lib/kreiderclib/ss1.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 (2014-04-12) |
parents | 1647f1874cdf |
children |
rev | line source |
---|---|
2824 | 1 * Disassembly by Os9disasm of ss1.r |
2 | |
3 section code | |
4 | |
5 * OS-9 system function equates | |
6 | |
7 I$SetStt equ $8e | |
8 | |
9 _ss_rel: ldb #$1b | |
10 bra L0018 | |
11 _ss_rest: ldb #3 | |
12 bra L0018 | |
13 _ss_opt: ldb #0 | |
14 bra L0016 | |
15 _ss_pfd: ldb #$0f | |
16 bra L0016 | |
17 _ss_ssig: ldb #$1a | |
18 bra L0016 | |
19 _ss_tiks: ldb #$10 | |
20 L0016 ldx 4,s | |
21 L0018 lda 3,s | |
22 os9 I$SetStt | |
23 lbra _sysret | |
24 | |
25 endsect | |
26 |