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 > CSDb Entries > Event id #2417 : First CSDb "Unintended OpCode coding challenge"
2015-10-11 07:18
Monte Carlos

Registered: Jun 2004
Posts: 351
Event id #2417 : First CSDb "Unintended OpCode coding challenge"

So here it is. The First CSDb "Unintended OpCode coding challenge" starts over.

First CSDb "Unintended OpCode Coding Challenge"

Please give some feedback about your interest in this compo.
For those who have been part of the discussion
http://csdb.dk/forums/?roomid=12&topicid=112819#112927
please let me know if you are in better agreement with the reworked rules than before.
However, there will not be a rule change anymore.
 
... 44 posts hidden. Click here to view all posts....
 
2015-10-25 12:50
Monte Carlos

Registered: Jun 2004
Posts: 351
lax blabla,x (y)
sbx #..

should emulate cpx,y or cpx,x
2015-10-25 16:19
chatGPZ

Registered: Dec 2001
Posts: 11157
but since that destroys akku, you can just aswell use
txa
cmp bla,y 

:)
2015-10-25 21:17
Oswald

Registered: Apr 2002
Posts: 5032
yeah I wanted to keep A intact :)
2015-10-25 21:31
Rastah Bar

Registered: Oct 2012
Posts: 336
In the special case that 'bla' is on a page boundary (for example $1f00):

sty label+1
label:
cpx $1f00
2015-10-25 21:49
Oswald

Registered: Apr 2002
Posts: 5032
yup that would work, but probably also be slower or on par with what I wanted to optimize.
2015-10-26 18:34
Rastah Bar

Registered: Oct 2012
Posts: 336
Code optimization is hard ...
2015-10-26 21:35
Oswald

Registered: Apr 2002
Posts: 5032
yeah, well often it is good to try to find a better solution instead of fucking the illegals :)
2015-10-27 20:32
Monte Carlos

Registered: Jun 2004
Posts: 351
let's JAM
2015-10-29 09:31
Rastah Bar

Registered: Oct 2012
Posts: 336
One potential use of SAX, SHA, SHX, and SHY could be in border graphics ($d020, $3fff, $39ff).

With something like
lda #value1
ldy #value2
ldx #value3

sta $d020 ;or $3fff or $39ff when the ECM bit is on
stx $d020
sty $d020
sta $d020
stx $d020
sty $d020
... ; repeat the above

the result will be columns of 4 characters wide, but only three different values are used. If you want to change a color with an lda #value4, for example, one column will become 6 characters wide. But with the mentioned UOCs you can change the color/value to create a column of only 5 characters wide (4 even with SAX), although the range of value4 may be very limited.
2015-10-31 15:22
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
Yays, i was the first entry! Now watch everyone else turn up and completely nuke mine! =-)
Previous - 1 | 2 | 3 | 4 | 5 | 6 - 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
nurd
Hok/Remember
Flexman
jmin
ArturoDente
-trb-
WVL/Xenon
Marco/DDM
Vent
CA$H/TRiAD
Guests online: 90
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Aliens in Wonderland  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Dawnfall V1.1  (9.5)
8 Daah, Those Acid Pil..  (9.5)
9 Birth of a Flower  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Offence  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Stinsen  (9.7)
3 Jeroen Tel  (9.6)
4 Linus  (9.6)
5 psych858o  (9.6)

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