From bc04f8913f205bbe0baafb6d286c8c569d1768cd Mon Sep 17 00:00:00 2001 From: biouman <> Date: Mon, 14 May 2001 08:45:32 +0000 Subject: *** empty log message *** --- samples/cube.s | 28 +++++++++++++++++----------- 1 file 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; -- cgit v1.2.3