summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/cube.s28
1 files changed, 17 insertions, 11 deletions
diff --git a/samples/cube.s b/samples/cube.s
index 37430bf..6da28e6 100644
--- a/samples/cube.s
+++ b/samples/cube.s
@@ -409,15 +409,21 @@ Draw: MOV R7, Points2D[0];
IncrAngl: MOV R5, [T1];
MOV R6, 56;
ADD R5, R5, R6;
- MOV, [T1], R5;
+ MOV R6, 4096;
+ DIV R5, R6;
+ MOV, [T1], Rd;
MOV R5, [T2];
MOV R6, 30;
ADD R5, R5, R6;
- MOV, [T2], R5;
+ MOV R6, 4096;
+ DIV R5, R6;
+ MOV, [T2], Rd;
MOV R5, [T3];
MOV R6, 80;
ADD R5, R5, R6;
- MOV, [T3], R5;
+ MOV R6, 4096;
+ DIV R5, R6;
+ MOV, [T3], Rd;
RET;
;
@@ -426,11 +432,11 @@ IncrAngl: MOV R5, [T1];
;
;
.start
- CALL InitCube
-Main: CALL IncrAngl
- CALL MajMatr
- CALL RotCube
- CALL Proj
- CALL ClrScr
- CALL Draw
- JMP Main
+ CALL InitCube;
+Main: CALL IncrAngl;
+ CALL MajMatr;
+ CALL RotCube;
+ CALL Proj;
+ CALL ClrScr;
+ CALL Draw;
+ JMP Main;