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 > looking for a tool to split $d010 table
2012-08-06 13:58
Dr.j

Registered: Feb 2003
Posts: 277
looking for a tool to split $d010 table

Hey there everybody. i want to create old effect which is
sprite scoller with different horizontal and vertical values. seacrh for a tool to generate x,y and MSB table.
the code is quite simple look like that :

ldy index
ldx #$00
A: lda xtable,y
sta $d000,x
lda ytable,y
sta $d001,x
lda $d000,x
bne  !+
//check if we need to plot a new char to screen
!: 
tya
adc #$20
tay
inx
inx
cpx #$10
bne A
ldy index
lda msbtable,y
sta $d010

2012-08-06 15:20
Glasnost
Account closed

Registered: Aug 2011
Posts: 26
Use Kick Assembler, and you have a script language that can easily create these tables (and much more complex tables as well)

http://www.theweb.dk/KickAssembler/Main.php

I use it with Relaunch as editor, and Vice as emulator, its rather easy to set up.

Alternatively use the good old basic to create tables :)

Good Luck!

/Glasnost
2012-08-06 18:04
Dr.j

Registered: Feb 2003
Posts: 277
10x Glasnost but i am using Kick Asm. (great tool!) anyhow
don't really know to generate $d010 table which based
on the X-axis table (means on $d000,$d002..etc')
fop ex:lets say i generate this table for X sprites vals.
.for (var i = 0 ; i < 256;i++) {
.var val = [floor([80 + [80 * sin(toRadians(360/256*i))]])]
        .byte val
}
i want a smooth sprite scroller and i don't want
to use the Rol $XXX method.
2012-08-07 13:51
Danzig

Registered: Jun 2002
Posts: 440
so you just use a bigger radius (>256), store the value with and255 in the low table and shifted by 8 bit to the right in the high table.

low :fc fe ff ff 00 00 00 01 01 01 01 00 00 00 ff ff fe fc
high:00 00 00 00 01 01 01 01 01 01 01 01 01 01 00 00 00 00

that low is your sprite position / high is your msb table
for $d010
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
LordCrass
Darkflight
Freeze/Blazon
Didi/Laxity
Guests online: 83
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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