Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > FPP - flexible pixel position
2003-02-04 15:39
Dr. Jay
Account closed

Registered: Jan 2003
Posts: 32
FPP - flexible pixel position

Anyone have a commented source example?
 
... 27 posts hidden. Click here to view all posts....
 
2017-10-13 19:36
Oswald

Registered: Apr 2002
Posts: 5017
thats the problem with high level assemblers, ppl try to write their code with the scripting, instead of coding :P
2017-10-13 19:52
Smasher

Registered: Feb 2003
Posts: 512
thanks for the links, hollowman. I wish my fav painting tool pixcen had those features like convert studio!
2017-10-13 21:58
Compyx

Registered: Jan 2005
Posts: 631
Quoting Oswald
thats the problem with high level assemblers, ppl try to write their code with the scripting, instead of coding :P


High level assemblers make it possible to generate speedcode without the actual generator code, which makes quick testing/optimizing possible. Of course once the speedcode generation using the assembler's "scripting" works, it's time to write actual code generators in proper asm code.
2017-10-14 16:31
Oswald

Registered: Apr 2002
Posts: 5017
Quote: Quoting Oswald
thats the problem with high level assemblers, ppl try to write their code with the scripting, instead of coding :P


High level assemblers make it possible to generate speedcode without the actual generator code, which makes quick testing/optimizing possible. Of course once the speedcode generation using the assembler's "scripting" works, it's time to write actual code generators in proper asm code.


well, I am a native speedcode generator racist. altho I have 20 years of excersize so maybe its just me finding it just as easy as scripting :P and in the long run scriping+doing the native one too, its more work.

how about this instead ? about same nr of lines , 5 minutes more thinking :P

ldx #$00

-

ldy #$07

-

lda src,x
sta dst,x

txa
clc
adc #$08
tax
bne -

inc src+2 ;should be selfmod high byte both
inc dst+2

dey
bpl -

lda #>srcinit
sta src+2
lda #>dstinit
sta dst+2

inc src+1
lda src+1
cmp #$08
bne --
2017-10-14 19:31
lft

Registered: Jul 2007
Posts: 369
Oswald, I don't think that code is doing what you think it is doing. It is certainly not generating the speedcode from xIII's post.
2017-10-14 20:09
chatGPZ

Registered: Dec 2001
Posts: 11100
hey, atleast he didnt need a for-loop to generate the wrong code :)
2017-10-14 21:21
Oswald

Registered: Apr 2002
Posts: 5017
its meant to generate the fpp gfx. more readable version (I was lazy with the labels):


lda #<origcharset
sta srcs+1
lda #>origcharset
sta srcs+2

lda #<vicbank
sta dsts+1
lda #>vicbank
sta dsts+2


ldx #$00

-

ldy #$07

-
srcs lda src,x
dsts sta dst,x

txa
clc
adc #$08
tax
bne -

inc srcs+2 ;should be selfmod high byte both
inc dsts+2

dey
bpl -

lda #>origcharset
sta srcs+2
lda #>vicbank
sta dsts+2

inc srcs+1
lda srcs+1
cmp #$08
bne --

those 40 screen bytes should be simply left unused in the cset. feel free to debug.
2017-10-15 16:34
Cruzer

Registered: Dec 2001
Posts: 1048
I doubt that what xIII really needs is 12 K of speedcode for a setup routine. :)

@Oswald: Please consider putting your code in a code block to preserve indentation.
2017-10-15 16:39
Cruzer

Registered: Dec 2001
Posts: 1048
Quoting Compyx
High level assemblers make it possible to generate speedcode without the actual generator code, which makes quick testing/optimizing possible. Of course once the speedcode generation using the assembler's "scripting" works, it's time to write actual code generators in proper asm code.
Which is where my laziness kicks in and it suddenly becomes much more interesting to try out a new idea. I agree that this is a dangerous feature.
2017-10-15 16:46
chatGPZ

Registered: Dec 2001
Posts: 11100
this kind of stuff could already be done in good old TASS MAC ,and probably even older assemblers, btw :)
Previous - 1 | 2 | 3 | 4 - 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
Panther Modern
Flex/Artline Designs
iceout/Avatar/HF
apprentix
Guests online: 113
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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