/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/lib/mult.s
Defence Force logotype

Annotation of /public/pc/tools/osdk/main/Osdk/_final_/lib/mult.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1002 - (hide annotations)
Sun Dec 8 10:50:26 2013 UTC (6 years ago) by dbug
File size: 476 byte(s)
Resynchronized my own changes to the OSDK with what was in the depot.
From now on I will continue the changes directly with the depot version, and try to update more regularly.
The reason I had this big change is that I had two computers with local changes done in demo parties when working on demos, where I did the fixes to handle Euphoric and Oricutron, plus new tools, modified tools, etc... giant mess.
I do not guarantee that what is on the depot is bug free, but it's the version I'm using right now (My OSDK var points to the public\pc\tools\osdk\main\Osdk\_final_ folder.
1 dbug 1002 ; unsigned 16bit multply op1 x op2 -> tmp
2 dbug 70 mul16u
3     lda #0
4     sta tmp
5     sta tmp+1
6     ldy #16
7     mult1
8     asl tmp
9     rol tmp+1
10     rol op1
11     rol op1+1
12     bcc mult2
13     clc
14     lda op2
15     adc tmp
16     sta tmp
17     lda op2+1
18     adc tmp+1
19     sta tmp+1
20     bcc mult2
21     inc op1
22     mult2
23     dey
24     bne mult1
25     ldx tmp
26     lda tmp+1
27     rts
28    
29     mul16i
30     lda op1+1
31     bpl mul16u
32     sec
33     lda #0
34     sbc op1
35     sta op1
36     lda #0
37     sbc op1+1
38     sta op1+1
39     jsr mul16u
40     sec
41     lda #0
42     sbc tmp
43     tax
44     lda #0
45     sbc tmp+1
46     rts

  ViewVC Help
Powered by ViewVC 1.1.26