From 0c70ce500935d3f400a83877f6133241182cc324 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 18 May 2018 10:13:47 +0000 Subject: [PATCH] View3DS 0.68b: fix SSE build by Maciej Guba git-svn-id: svn://kolibrios.org@7280 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/demos/3DS/B_PROCS.INC | 7 +++++-- programs/demos/3DS/History.txt | 8 ++++++++ programs/demos/3DS/README.TXT | 7 +------ programs/demos/3DS/VIEW3DS.ASM | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/programs/demos/3DS/B_PROCS.INC b/programs/demos/3DS/B_PROCS.INC index 1e50ace04c..006419ef88 100644 --- a/programs/demos/3DS/B_PROCS.INC +++ b/programs/demos/3DS/B_PROCS.INC @@ -824,8 +824,11 @@ if Ext=SSE ; mov ecx,(SIZE_X*(SIZE_Y-3))*3/8 .blr: @@: + push ecx + mov ecx,edi + sub ecx,ebx movq mm0,[edi+ebx] - movq mm1,[edi-ebx] + movq mm1,[ecx] movq mm2,[edi-3] movq mm3,[edi+3] @@ -838,7 +841,7 @@ if Ext=SSE movq [edi],mm0 add edi,8 add esi,8 - + pop ecx loop .blr xor eax,eax diff --git a/programs/demos/3DS/History.txt b/programs/demos/3DS/History.txt index 572836c0c3..f603898e62 100644 --- a/programs/demos/3DS/History.txt +++ b/programs/demos/3DS/History.txt @@ -1,3 +1,11 @@ +View3ds 0.068b - V 2018 +1. Fixed SSE build. +----------------------------------------------------------------------------------- +View3ds 0.068 - XI 2016 +1. Editing option - new 'editor' button. +2. For now I disable perspective correction, to make implemtation of editing option easier. +----------------------------------------------------------------------------------- + View3ds 0.067 - XI 2016 1. Sizable app window. ----------------------------------------------------------------------------------- diff --git a/programs/demos/3DS/README.TXT b/programs/demos/3DS/README.TXT index c08ca694ab..f472b839c0 100644 --- a/programs/demos/3DS/README.TXT +++ b/programs/demos/3DS/README.TXT @@ -1,11 +1,6 @@ -View3ds 0.068 - tiny viewer to .3ds and .asc files with several graphics +View3ds 0.068b - tiny viewer to .3ds and .asc files with several graphics effects implementation. - -What's new? -1. Editing option - new 'editor' button. -2. For now I disable perspective correction, to make implemtation of editing option easier. - Buttons description: 1. rotary: choosing rotary axle: x, y, x+y. 2. shd. model: choosing shading model: flat, grd (smooth), env (spherical diff --git a/programs/demos/3DS/VIEW3DS.ASM b/programs/demos/3DS/VIEW3DS.ASM index 49aed9a1e7..ec8588e7d1 100644 --- a/programs/demos/3DS/VIEW3DS.ASM +++ b/programs/demos/3DS/VIEW3DS.ASM @@ -1,5 +1,5 @@ -; application : View3ds ver. 0.068 - tiny .3ds and .asc files viewer +; application : View3ds ver. 0.068b - tiny .3ds and .asc files viewer ; with a few graphics effects demonstration. ; compiler : FASM ; system : KolibriOS