Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: clear pixel
Posted by: Leonard Nov,13.2013-02:30 

Hi,

You should replace clr.b opcode by move.b with a empty register, 4 cycles faster!

Btw the CPU only option with the move.l trick is never win. Move.l solution is 8 nops;

move.l (a0)+,d0 3nops
clr.b 0(a1,d0.w) 5nops

you can improve this using move.b instead of CLR

move.l (a0)+,d0 3nops
move.b d1,0(a1,d0.w) 4nops (d1=0)

But better use two patches. When you first patch the or.b, you can patch the clear instruction with a simple:

move.w dn,x(an) ; 3nops, patch the clr.b x(an)
move.b d1,n(an) ; 3nops (d1=0)









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

Topic Posted by  Date 
clear pixel gloky Oct,20.2013-11:44
  Re: clear pixel specter Oct,24.2013-04:19
    Re: clear pixel evil Oct,24.2013-16:58
      Re: clear pixel nerve Oct,25.2013-18:18
        Re: clear pixel gwEm Oct,27.2013-22:57
          Re: clear pixel gloky Nov,05.2013-09:29
  Re: clear pixel Leonard Nov,13.2013-02:30
    Re: clear pixel gloky Nov,16.2013-12:54
      Re: clear pixel gloky Nov,27.2013-00:44
  Re: clear pixel RA/pdx Nov,13.2013-10:27
    Re: clear pixel leonard Nov,14.2013-01:15
      Re: clear pixel RA/pdx Nov,14.2013-10:01
        Re: clear pixel leonard Nov,16.2013-11:49


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