A.D.A. Amiga Demoscene Archive

        Welcome guest!

  

  

  

log in with SceneID

  

Demos Amiga Demoscene Archive Forum / Coding / coding tutorial: lesson 1
 Page:  ««  1  2  
Author Message
noname
Member
#1 - Posted: 22 Nov 2004 14:58
Reply Quote
artpro or agaiff. i prefed artpro but agaiff has an arexx-port.
z5_
Member
#2 - Posted: 22 Nov 2004 19:45
Reply Quote
@noname:

thanks.

Another question: suppose that i want to setup a black screen (2 bitplanes for example) to test some things. I know how to setup the bitplane pointers, colors,... but the question is: where in memory am i allowed to setup this screen? (i have the impression that the dc.b 40*256 line i see somtimes has something to do with that :)).

Also, as the bitplane pointers have to be reset each vbl, is it enough to have them in my copperlist and put my copperlist address in dff080? (i don't need to write a vbl interrupt routine for that, right?)
Cyf
Member
#3 - Posted: 22 Nov 2004 20:41 - Edited
Reply Quote
Also, as the bitplane pointers have to be reset each vbl, is it enough to have them in my copperlist and put my copperlist address in dff080? (i don't need to write a vbl interrupt routine for that, right?)

no problem, all coplist registers are refresh each vbl

the question is: where in memory am i allowed to setup this screen? (i have the impression that the dc.b 40*256 line i see somtimes has something to do with that :)).

in chip mem, with
section screen,bss_c

myscreen ds.b 40*256*2 ; h*w*nb bitplan
or dcb.b 40*256*2,value ; to fill the bitplan. ex. : $ff or $0f ...
dalton
Member
#4 - Posted: 23 Nov 2004 12:38 - Edited
Reply Quote
What is the best program to convert pictures into asm data (aga-compatible)?


piccon, without doubt!
kufa
Member
#5 - Posted: 23 Nov 2004 22:48
Reply Quote
indeed
rload
Member
#6 - Posted: 24 Nov 2004 01:11
Reply Quote
anyone have a cracked version? I talked to the author, and he wondered if anyone had cracked it.. He left some devious devices in it he said..
z5_
Member
#7 - Posted: 24 Nov 2004 18:33
Reply Quote
I've got another question regarding the picture code. The bitplane pointers are changed automatically when building up the screen. So one has to repoint them to the startaddress of the picture during the vbl => copper does that because i have the bitplane pointers in my copperlist. So far, so good.

Suppose that i want to scroll a 640*256 from left to right. I do something like this:
- fill in my bitplane pointers (with the copperlist): point them to the start of my picture
- fill in BPLCON1 and set a delay for scroll
- adjust my modulo to 38 instead of 40 (which was used to show one half of my picture)
- adjust my dffstart to $30 instead of $38 (don't really understand the ddfstart and ddfstop stuff yet).

Still, my picture doesn't scroll. Is this because i am refreshing my bitplane pointers each vbl with the startaddress (because since filling in my bitplane copperlist once at the start, i'm not doing anything with that copperlist anymore, so the original startaddresses are still there and reput each vbl)? How do i solve this problem?
Cyf
Member
#8 - Posted: 24 Nov 2004 19:30 - Edited
Reply Quote
http://www.amigarealm.com/computing/knowledge/hardref/ch3.htm

(ddfstart and ddfstop : number of bus cycles which define the start and stop columns for displaying the bitplans - multiple 4 or 8 if hi or lores)

bplcon1 allow shift of 16 pix max. for more, add/sub 2 words (16 pix) to bitplan pointer.
for a scrolling, you must incr/decr bplcon1 during VBL/VBI.
z5_
Member
#9 - Posted: 24 Nov 2004 19:36
Reply Quote
@Cyf:
I have $0077 in my BPLCON1 (which i assume means 7 pixels for both playfields). I have this in my copperlist. What do i do with that? Do i have to change this value or are you saying that i should put this value in my BPLCON1 each vbl (which i do with my copperlist). And what do i do with my bitplane pointers? Do i keep them pointing at the startaddress of my picture???
Cyf
Member
#10 - Posted: 24 Nov 2004 19:44 - Edited
Reply Quote
bplcon1 allow shift of x pixels but not with "scroll", just a simple static shift of x pixels to the right.

ex.:
; VBL code
hscroll:
; decrement bplcon1
sub.w #$11,shift ; decr 1 pix
cmp.w #-$11,shift
bgt.s end
move.w #$ff,shift
; when 16 pix. shift done, move bitplan pointer to the next 16 pix.
addq.w #2,lo ; add 2 words (16 pix) to bitplane pointer (for each plane)

; test if middle of pic reached
addq.w #1,cptscroll
cmp.w #40,cptscroll ; 40 words ? (320 px)
bne.s end
move.w #0,cptscroll
sub.w #40,lo ; sub 40 words (320 pix) - reset bitplan pointer to the start (loop)
end:
rts

cptscroll dc.w 0

coplist:
dc.w $102
shift: dc.w $ff
dc.w $e0,0,$e2
lo: dc.w 0
dc.l -2

not clean routine, but just for explanation.
dalton
Member
#11 - Posted: 2 Dec 2004 10:58
Reply Quote
anyone have a cracked version? I talked to the author, and he wondered if anyone had cracked it.. He left some devious devices in it he said..

does anyone have a good disassambler? I'd really like to give piccon a try, those shareware requesters a driving me insane =)
TheDarkCoder
Member
#12 - Posted: 2 Dec 2004 11:23
Reply Quote
@dalton

no good disassembler but maybe I can help. How can I contact you in privite?
z5_
Member
#13 - Posted: 2 Dec 2004 11:59 - Edited by Admin
Reply Quote
I tried out piccon yesterday. Looks like a fantastic program... But these requesters about registering are indeed annoying (so they didn't miss their purpose :) )

I noticed that the program dates from 1994. Is there still a possibility to register somewhere? Maybe the author could be contacted (Loaderror seems to know the author?)
Anonymous
Member
#14 - Posted: 3 Dec 2004 09:27
Reply Quote
I noticed that the program dates from 1994. Is there still a possibility to register somewhere? Maybe the author could be contacted (Loaderror seems to know the author?)

I know many people who tried to get in touch with this man, and they all failed. I would gladly pay!

@tdc

komputer(at)tele2.se
dalton
Member
#15 - Posted: 3 Dec 2004 09:28
Reply Quote
i posted the message above...
dalton
Member
#16 - Posted: 14 Apr 2005 09:45
Reply Quote
I heard that there's a cracked version of piccon available now
bonkers
Member
#17 - Posted: 17 Apr 2005 12:07
Reply Quote
@dalton
Apperently some mad 1337 amiga cracker from russia released this at BP05.
d0DgE
Member
#18 - Posted: 24 Apr 2005 22:35
Reply Quote
I already have a "crack" of picCon 2.50
done by e0r/grg+rse way before bp05
bonkers
Member
#19 - Posted: 25 Apr 2005 21:08
Reply Quote
@d0Dge
But does that release include a cracktro? =)
rload
Member
#20 - Posted: 25 Apr 2005 22:13
Reply Quote
I have talked to the author of Piccon about the registered version. He didn't have it anymore. He was curious to know about if anyone had cracked it though as he included some nasty copy protection code according to himself :)
d0DgE
Member
#21 - Posted: 26 Apr 2005 11:13 - Edited
Reply Quote
bonkers...

nope :( ... but I don't mind for that ;D
rload
Member
#22 - Posted: 28 Apr 2005 00:59
Reply Quote
hurray for my short term memory
StingRay
Member
#23 - Posted: 20 Dec 2005 17:53
Reply Quote
About piccon: I am using my haxx0red version of it for years, yet I never released it. :) It was fun doing the haxx0ring due to reasons Loady already mentioned. :)
krabob
Member
#24 - Posted: 21 Dec 2005 12:05
Reply Quote
What is the best program to convert pictures into asm data (aga-compatible)? ...

Datatypes ?

Ok, i get laid.
 Page:  ««  1  2  

  Please log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0