| |
cbmeeks
Registered: Oct 2005 Posts: 78 |
Make this faster??
I'm at work doing some paper coding (using a pen and paper) and was wondering if this snippet could be made faster.
What it does is grab the left side of a 2x2 char tile and blit it on the screen.
IE:
AB
CD
This would grab "AC" because my data is laid out like: "ACBD"
LDA #1 // tile number
ROL // multiply by 4 to get the starting addr
TAX
LDA (TILES),X
STA SCREEN
INX // get the next char
LDA (TILES),X
STA SCREEN + 40
Thanks for any tips!
cbmeeks
METROID
http://www.metroidclassic.com |
|
... 7 posts hidden. Click here to view all posts.... |
| |
Fungus
Registered: Sep 2002 Posts: 686 |
lda tiletable,x
sta whereever
ora #$40
sta whereever
eor #$c0
sta whereever
ora #$40
sta whereever
etc...
|
| |
cbmeeks
Registered: Oct 2005 Posts: 78 |
Quote: <Post censored by CSDb staff>
lol.
Well, I'm the new kid in town so I will take Oswald's help with great appreciation. :-)
METROID
http://www.metroidclassic.com |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
Quote: lol.
Well, I'm the new kid in town so I will take Oswald's help with great appreciation. :-)
METROID
http://www.metroidclassic.com
Just for the record: "Oswald is NOT crappy coder"... |
| |
null Account closed
Registered: Jun 2006 Posts: 645 |
During daytime, Oswald is just a simple 6510 programmer.. but on CSDb, he transforms into...:
:_D :_D :_D
------------------------------------
Knoeki/DigitalSoundsSystem/GheyMaidInc/SwappersWithAttitude
http://hardwarehacks.untergrund.net/zomgwtfbbq/index.php |
| |
Richard
Registered: Dec 2001 Posts: 621 |
Lol, that picture still makes me laugh :)
|
| |
Conrad
Registered: Nov 2006 Posts: 849 |
|
| |
Richard
Registered: Dec 2001 Posts: 621 |
Nice one ;) |
Previous - 1 | 2 - Next |