Search site Dead Hackers Society
Other BBSes »
 
 

Outline 2017
 

Sommarhack 2017
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

Atari coding BBS
 
5 instr mapper
Posted by: MKM/Lamers Sep,09.2016-21:40 

Hi,
I have a question about famous "5 instr texture mapper". It is described often on both atari and amiga sites... and I almost got it working, but have one doubt. If we have standart:

move.w d0,d1
move.b d2,d1
move.w (a0,d1.l*2),(a1)+
add.l d3,d0
addx.b d4,d2

with layout:
uu__VVvv (d0 - current value, d3 - step)
______UU (d2 - current value, d4 - step)

(I guess I don't need to describe more as it is common pattern)
I obviously works when UUuu step is positive. But for me it seems not to be working when UUuu step is negavite. All values will be computed correctly appart of the fact that Extend flag will be added to d2 when it should be substracted in negative case.
So, it seems for me I need separate code path with subx.b for negative case, but on the other hand fact that all "5 instr mapper" posts I found does not mention it, seems to get me wonder that I am missing something there. Am I?




[All messages in this thread]

Topic Posted by  Date 
5 instr mapper MKM/Lamers Sep,09.2016-21:40
  Re: 5 instr mapper mikro Sep,12.2016-04:41
  Re: 5 instr mapper mikro Sep,12.2016-05:18
    Re: 5 instr mapper MKM/Lamers Sep,12.2016-08:48
      Re: 5 instr mapper dml Sep,12.2016-11:41
        Re: 5 instr mapper MKM/Lamers Sep,12.2016-13:08
          DSP coding dml Sep,12.2016-23:55
            Re: DSP coding mikro Sep,13.2016-00:44
              Re: DSP coding MKM/Lamers Sep,13.2016-09:19


Reply to this message
Name:
Topic:
Human verification (enter the text of the ASCII-art below):

       _       _ _             _   
 _____|_|___ _| | |_ ___ _____| |_ 
|     | |   | . | . | . |     | . |
|_|_|_|_|_|_|___|___|___|_|_|_|___|
Message:




© 1994-2016 Dead Hackers Society Contact: Anders Eriksson