Dead Hackers Society
Other BBSes »
 
 

68k Inside

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

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]    [Start new 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:
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