Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Make this faster??
2007-09-26 17:00
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
 
... 10 posts hidden. Click here to view all posts....
 
2007-09-26 21:11
Fungus

Registered: Sep 2002
Posts: 686
lda tiletable,x
sta whereever
ora #$40
sta whereever
eor #$c0
sta whereever
ora #$40
sta whereever

etc...

2007-09-27 02:09
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
2007-09-27 05:32
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"...
2007-09-27 05:43
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
2007-10-21 09:32
Richard

Registered: Dec 2001
Posts: 621
Lol, that picture still makes me laugh :)
2007-10-21 09:47
Conrad

Registered: Nov 2006
Posts: 849
2007-10-21 12:17
Richard

Registered: Dec 2001
Posts: 621
Nice one ;)
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
danikAdmiral
Sulevi/Virtual Dreams
MWR/Visdom
iAN CooG/HVSC
The Syndrom/TIA/Pret..
Guests online: 116
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.