summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/cube.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/samples/cube.s b/samples/cube.s
index 6da28e6..593bf79 100644
--- a/samples/cube.s
+++ b/samples/cube.s
@@ -28,8 +28,8 @@ Y0 DB 12; centre de l ecran
;
Mult: MUL R5, R6;
- SHR Rd, Rd, 16;
- SHL Rg, Rg, 16;
+ SHR Rd, 16;
+ SHL Rg, 16;
ADD R5, Rg, Rd;
RET;
@@ -300,7 +300,7 @@ BouclProj: MOV R5, Points3D[R3+0];
ADD R6, R6, R7;
DIV R5, R6;
MOV R5, Rg;
- SHR R5, R5, 16;
+ SHR R5, 16;
MOV R6, [X0];
ADD R5, R5, R6;
MOV Points2D[R2], R5;
@@ -314,7 +314,7 @@ BouclProj: MOV R5, Points3D[R3+0];
ADD R6, R6, R7;
DIV R5, R6;
MOV R5, Rg;
- SHR R5, R5, 16;
+ SHR R5, 16;
MOV R6, [Y0];
ADD R5, R5, R6;
MOV Points2D[R2+1], R5;