Mercurial > repos > tabletprog
annotate modules/vec.tp @ 353:95bc24c729e6
Move right hand parameter to cmp in _compileBinary to a temp reg if it is a constant since those are only supported in the left hand param currently
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 14 Apr 2015 19:54:03 -0700 |
parents | 860075fdc2d3 |
children |
rev | line source |
---|---|
327
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 x:y <- :_x :_y { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 x:y:z <- :_x :_y :_z { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
10 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
12 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
13 z <- _z |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
14 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
15 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
16 |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
17 x:y:z:w <- :_x :_y :_z :_w { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
18 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
19 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
20 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
21 z <- _z |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
22 w <- _w |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
23 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
24 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
25 } |