remove trailing whitespace
This commit is contained in:
parent
8acef622f4
commit
629a0b77f5
12
math32.tal
12
math32.tal
|
@ -80,7 +80,7 @@
|
||||||
DUP #00 NEQ ( xlo nhi nhi!=0 )
|
DUP #00 NEQ ( xlo nhi nhi!=0 )
|
||||||
,&hi-set JCN ( xlo nhi )
|
,&hi-set JCN ( xlo nhi )
|
||||||
SWP ;bitcount8 JSR2 ADD ( nhi+nlo )
|
SWP ;bitcount8 JSR2 ADD ( nhi+nlo )
|
||||||
JMP2r
|
JMP2r
|
||||||
&hi-set
|
&hi-set
|
||||||
SWP POP #08 ADD ( nhi+8 )
|
SWP POP #08 ADD ( nhi+8 )
|
||||||
JMP2r
|
JMP2r
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
,&hi-set JCN ( xlo* nhi )
|
,&hi-set JCN ( xlo* nhi )
|
||||||
TOR ;bitcount16 JSR2 ADD JMP2r ( nhi+nlo )
|
TOR ;bitcount16 JSR2 ADD JMP2r ( nhi+nlo )
|
||||||
&hi-set
|
&hi-set
|
||||||
TOR POP2 #10 ADD ( nhi+16 )
|
TOR POP2 #10 ADD ( nhi+16 )
|
||||||
JMP2r
|
JMP2r
|
||||||
|
|
||||||
( equality )
|
( equality )
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
|
|
||||||
( shift right by 8-15 bits )
|
( shift right by 8-15 bits )
|
||||||
@rshift32-1 ( x** n^ -> x<<n )
|
@rshift32-1 ( x** n^ -> x<<n )
|
||||||
#08 SUB STH POP
|
#08 SUB STH POP
|
||||||
STHkr SFT ;m32/z3 STA ( write z3 )
|
STHkr SFT ;m32/z3 STA ( write z3 )
|
||||||
#00 STHkr SFT2 #00 ;m32/z3 LDA ORA2 ;m32/z2 STA2 ( write z2,z3 )
|
#00 STHkr SFT2 #00 ;m32/z3 LDA ORA2 ;m32/z2 STA2 ( write z2,z3 )
|
||||||
#00 STHr SFT2 #00 ;m32/z2 LDA ORA2 ( compute z1,z2 )
|
#00 STHr SFT2 #00 ;m32/z2 LDA ORA2 ( compute z1,z2 )
|
||||||
|
@ -325,7 +325,7 @@
|
||||||
;add32 JMP2
|
;add32 JMP2
|
||||||
|
|
||||||
( x * y )
|
( x * y )
|
||||||
@mul32 ( x** y** -> z** )
|
@mul32 ( x** y** -> z** )
|
||||||
,&y1 STR2 ,&y0 STR2 ( save ylo, yhi )
|
,&y1 STR2 ,&y0 STR2 ( save ylo, yhi )
|
||||||
,&x1 STR2 ,&x0 STR2 ( save xlo, xhi )
|
,&x1 STR2 ,&x0 STR2 ( save xlo, xhi )
|
||||||
,&y1 LDR2 ,&x1 LDR2 ;mul16 JSR2 ( [x1*y1] )
|
,&y1 LDR2 ,&x1 LDR2 ;mul16 JSR2 ( [x1*y1] )
|
||||||
|
@ -382,10 +382,10 @@
|
||||||
( 1<<shift -> cur )
|
( 1<<shift -> cur )
|
||||||
#0000 #0001 ROT2 POP
|
#0000 #0001 ROT2 POP
|
||||||
;lshift32 JSR2 ,&cur1 STR2 ,&cur0 STR2
|
;lshift32 JSR2 ,&cur1 STR2 ,&cur0 STR2
|
||||||
|
|
||||||
( div<<shift -> div )
|
( div<<shift -> div )
|
||||||
,&div0 LDR2 ,&div1 LDR2 ROT2 POP
|
,&div0 LDR2 ,&div1 LDR2 ROT2 POP
|
||||||
;lshift32 JSR2 ,&div1 STR2 ,&div0 STR2
|
;lshift32 JSR2 ,&div1 STR2 ,&div0 STR2
|
||||||
|
|
||||||
,&loop JMP
|
,&loop JMP
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue