summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiouman <>2001-05-14 08:45:32 +0000
committerbiouman <>2001-05-14 08:45:32 +0000
commitbc04f8913f205bbe0baafb6d286c8c569d1768cd (patch)
tree5400ab56a3cabcab4e70e72ee487533a8a03a08b
parent3e417659142c9df8ca2fc0a4fb260afa40a6c8ba (diff)
*** empty log message ***
-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;