It is currently Sun Sep 24, 2017 5:14 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sat Feb 11, 2017 10:11 am 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3051
Location: Nacogdoches, Texas
tokumaru wrote:
6502 doesn't do that, you need to ASL twice.

It's the same with the 65816. It's a pseudo opcode. I've also seen him do "adx", which isn't a real instruction (you need to transfer the data from an index register, add, and then transfer it back).


Top
 Profile  
 
PostPosted: Sat Feb 11, 2017 10:19 am 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2265
I never used adx. Maybe you're thinking of inx #2.


I thought about another approach. If you're doing vertical RLE, you can designate 16 registers (32 in the case of the SNES), each with 1 bit. Update the bits when there is a vertical color change, and for every row (except for entire rows being copied) "asl" and "ora" with every bit (for SNES, 2 bits at once). Now that I think about it, you can do a hybrid of vertical and horizontal RLE, using this method too.


Top
 Profile  
 
PostPosted: Sat Feb 11, 2017 11:10 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10012
Location: Rio de Janeiro - Brazil
psycopathicteen wrote:
This takes 9.75 cycles per pixel, whereas doing the typical shifting takes 14 cycles per pixel.

I know it's faster, but that's assuming you're working with packed pixels in the first place. If the algorithm outputs bits that you can buffer in planar form right away, there's no need for any conversions at all.


Top
 Profile  
 
PostPosted: Sat Feb 11, 2017 3:10 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19004
Location: NE Indiana, USA (NTSC)
tokumaru wrote:
psycopathicteen wrote:
Code:
asl #2

6502 doesn't do that, you need to ASL twice.

I assume this assembler has a nonstandard feature to turn asl #2 into 0A 0A or asl #3 into 0A 0A 0A.


Top
 Profile  
 
PostPosted: Sun Feb 12, 2017 3:55 pm 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2265
I got started working on an RLE-based compression scheme for the SNES that would be fast enough but compact enough to run Darkstalkers on the SNES. Not sure if it's possible or not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group