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

Atari coding BBS
 
Re: p2c routine?
Posted by: earx Mar,22.2005-19:48 

for 060 you can do it much like the usual amiga c2p: shifts with orring.

for older processors you can use look-up tables: check out your planar bits:

aa......bb.....cc......dd.....

|
v

now the first 4 planar pixels are shifted + orred into a 16 bit word:

aaaabbbbccccdddd

|
v

and this we run through the look-up table to get the first four chunky pixels (4 bit)

abcdabcdabcdabcd.. repeat this shifted to get the full 16 pixels..

i think paranoid also did a p2c. you might be able to get some info from him too.








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

Topic Posted by  Date 
p2c routine? Peter Mar,22.2005-18:40
  Re: p2c routine? earx Mar,22.2005-19:48
    Re: p2c routine? Peter Mar,23.2005-10:37
      Re: p2c routine? earx Mar,23.2005-15:45
  Re: p2c routine? p01 Mar,24.2005-02:33
    Re: p2c routine? Peter Mar,24.2005-09:25


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