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 > 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: 5094
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: 520
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: 5094
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: 11386
hey, atleast he didnt need a for-loop to generate the wrong code :)
2017-10-14 21:21
Oswald

Registered: Apr 2002
Posts: 5094
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: 11386
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
Flex/Artline Designs
csabanw
Magic/Nah-Kolor
psych
Guests online: 111
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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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