Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Mapping question
Posted by: Laurent / Thadoss May,08.2014-16:22 

Hi all,

I've just found some old lame code of mine written 20 years ago ;) that I manages to compile.

It was a 3d texture mapping code (68030).

I gave a quick look at the pixel rendering part, and I think there are possibilities to do faster than what I did (8 instructions per pixel :/ )


MOVE D2,D0 ; YT
LSL #8,D0 ; YT*256
ADD D1,D0 ; +XT
MOVE (A6,D0.L*2),(A2)+ ; display the pixel on screen
ADD.L D4,D1 ; XT+DXT/DX
ADDX D6,D1 ; +CARRY
ADD.L D5,D2 ; YT+DYT/DX
ADDX D6,D2 ; +CARRY

Can you point me on a better algo (less instructions per point) ?

Ps: It's just for my culture ;)

Thanks
Laurent








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Mapping question Laurent / Thadoss May,08.2014-16:22
  Re: Mapping question dml May,08.2014-19:04
    Re: Mapping question Laurent / Thadoss May,08.2014-20:39
      Re: Mapping question dml May,09.2014-00:27
    Re: Mapping question Laurent / Thadoss May,08.2014-22:24
      Re: Mapping question Defjam May,12.2014-16:57
        Re: Mapping question dml May,13.2014-10:41
          Re: Mapping question p01 Jan,06.2015-00:01
            Re: Mapping question evil Jan,06.2015-18:36
              Re: Mapping question Laurent / Thadoss Jan,06.2015-21:58
                Re: Mapping question p01 Jan,06.2015-23:17
              Re: Mapping question p01 Jan,09.2015-13:46
                Re: Mapping question Orion_ Jan,09.2015-17:15
            Re: Mapping question Cyg Jan,09.2015-23:34
    Re: Mapping question Patrice Mandin May,13.2014-21:44
      Re: Mapping question Laurent / Thadoss May,14.2014-22:08


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson