English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 01 February 2006, 18:29   #1
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
For my First ASM Prog

For my first ever asm prog I'm going to attempt to open a screen and have a nice copper on it

Can anyone give me some basic advice on starting this? what do I need to consider etc.. should I just poke the regs or do it the system way?
BippyM is offline  
Old 01 February 2006, 20:09   #2
bobbybearing
Zone Friend
 
bobbybearing's Avatar
 
Join Date: Oct 2003
Location: France
Age: 51
Posts: 161
see commented sources posted by Alpha One on http://www.flashtro.com !
1. copperlist
2. bitplan
3. text
4. copperbar
5. cpu scrolltext
bobbybearing is offline  
Old 01 February 2006, 20:32   #3
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
maybe this is helpful...

just change the copperlist to your choice...

Quote:
;
; Copper-Demo
;
;
s:
move.w #$4000,$dff09a ;disable Interrupts;

move #$0020,$dff096 ;disable Sprites
move.l #copperl,$dff084 ;activate Copperlist
;
loop: move.l $dff004,d0 ;wait for vertical blank
and.l #$fff00,d0
cmp.l #$00003000,d0
bne.s loop
btst #6,$bfe001 ;mousebutton ?
bne.s loop ;yes ?
;
ende: move #$c000,$dff09a ;enable Interrupts
e: rts ;End
;
copperl: dc.w $008e,$3081 ;DIWSTRT
dc.w $0090,$35c1 ;DIWSTOP
dc.w $0104,$0064 ;BPLCON2
dc.w $0092,$0038 ;DDFSTRT
dc.w $0094,$00d0 ;DDFSTOP
dc.w $0102,$0000 ;BPLCON1
dc.w $0108,$0000 ;BPL1MOD
dc.w $010a,$0000 ;BPL2MOD
dc.w $0100,$1200 ;BPLCON0
dc.w $00e0,$0005 ;BPL1PTH
dc.w $00e2,$0000 ;BPL1PTL
dc.w $0180,$0000 ;COLOR00
dc.w $ffff,$fffe ;Copperlist end
;
Joe Maroni is offline  
Old 01 February 2006, 21:57   #4
Alter
Oldskool
 
Join Date: Dec 2005
Location: Norway
Age: 51
Posts: 28
I put a copperlist source for you in the zone. I coded it in Asmone and you need Kickstart 1.3 . Try it !!!
Alter is offline  
Old 01 February 2006, 22:25   #5
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
ENDE DER KOMMUNIKATION (c) Tron :P

...anyways good luck bippym, hope to see something nice from you soon!
Photon is offline  
Old 02 February 2006, 01:03   #6
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,987
And on another note, when you assemble that little lot, the copperlist MUST be in chip ram or nothing will be displayed.

Program code, music replayer, music note data can all be run in fast ram, copperlists, pictures and sampledata MUST be in chipram.
Galahad/FLT is offline  
Old 02 February 2006, 13:22   #7
polish
Registered User
 
Join Date: Dec 2005
Location: Australia, Melbourne, Werribee
Age: 43
Posts: 42
Is ASM really hard to learn, i was thinking of trying it myself? I mean all the offsets and stuff look hard to understand but i think ill work it out

Galahad you must be one of the most looked up to people on this forum, i really admire you because of the fact that you were in fairlight (awesome group) and that you can code asm, and track mods if im right

as for bippym good luck on your first prog
polish is offline  
Old 02 February 2006, 16:32   #8
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
I find it hard just remembering everything.

How to assemble gthe actual program (structure) and what offsets are required. Which registers are to be poked with what info etc..

That is what I find hard.

I can read and follow asm to a certain degree.
BippyM is offline  
Old 02 February 2006, 18:06   #9
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
i think it would be better to start with no visual stuff...

its the hardest thing you can start without any knowledge...
a nice thing i remember was to write the current v-blank position to the backgroundcolor register every cycle...

the result is a screen with more than 32 colors...

i´ll try to find the source of this thing...
Joe Maroni is offline  
Old 03 February 2006, 16:59   #10
coze
hastala vista winny vista
 
coze's Avatar
 
Join Date: Feb 2006
Location: mt fuji
Age: 46
Posts: 1,335
Send a message via ICQ to coze Send a message via Yahoo to coze
hello x_to,
I just tried to compile your code above but it says illegal operator for the first move.w command. I'm running asmpro (1.16), under winuae with a1200/ks3.0 configuration. where could be the problem ?
hello, btw, this is my first post here. as you can guess, I'm pretty new to asm.
coze is offline  
Old 03 February 2006, 19:32   #11
NOB
Zone Friend
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 424
Code:
 
s:
		 move.w #$4000,$dff09a ;disable Interrupts;
		 move #$0020,$dff096 ;disable Sprites 
		 move.l #copperl,$dff084 ;activate Copperlist 
..........
.....
press the TAB key to format the asm-source.
NOB is offline  
Old 03 February 2006, 23:24   #12
Joe Maroni
Moderator
 
Joe Maroni's Avatar
 
Join Date: Feb 2003
Location: Germany
Age: 44
Posts: 1,303
Send a message via MSN to Joe Maroni
yes thats the problem of the EAB editor...it delete TABs..

otherwise it works fine
Joe Maroni is offline  
Old 07 February 2006, 01:03   #13
Ray Norrish
Registered User
 
Ray Norrish's Avatar
 
Join Date: May 2005
Location: Cheshire, UK
Age: 56
Posts: 322
If you like, I released an intro as a tutorial with extremely heavy comments. Let me know and I will send it to you as I still have it all
Ray Norrish is offline  
Old 07 February 2006, 01:14   #14
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,987
Ray, I still have your source that correctly shuts down the system that you gave me at the Digital party! I think you used it for Sonic Attack
Galahad/FLT is offline  
Old 07 February 2006, 01:41   #15
Ray Norrish
Registered User
 
Ray Norrish's Avatar
 
Join Date: May 2005
Location: Cheshire, UK
Age: 56
Posts: 322
You know, that code was probably the only true sysdown() sysup() around at the time that worked on every amiga/kick.
Might be worth posting

I hand a good hand with that from Randy/Comax for the a4000 compliance. Yes, it was in SA
Ray Norrish is offline  
Old 07 February 2006, 07:31   #16
Alter
Oldskool
 
Join Date: Dec 2005
Location: Norway
Age: 51
Posts: 28
Hi there Galahad/ray I would really appreciate it if one of you would post that code. I been looking for a startup code like that.....for some time now... :-)
Alter is offline  
Old 08 February 2006, 14:34   #17
nzo
WHD/oldskool maniac
 
Join Date: Dec 2003
Location: Pecs/Hungary
Age: 49
Posts: 99
Quote:
Originally Posted by Ray Norrish
If you like, I released an intro as a tutorial with extremely heavy comments.
I'm interested in it too! Please UL to the zone if you have useful sources (for educational purposes
nzo is offline  
Old 08 February 2006, 18:19   #18
NOB
Zone Friend
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 424
Quote:
Originally Posted by Ray Norrish
If you like, I released an intro as a tutorial with extremely heavy comments. Let me know and I will send it to you as I still have it all
Yes, release that intro it is interesting to read commented sources.But make sure it will run on my A500.
NOB is offline  
Old 08 February 2006, 23:05   #19
Ray Norrish
Registered User
 
Ray Norrish's Avatar
 
Join Date: May 2005
Location: Cheshire, UK
Age: 56
Posts: 322
System close/restore code in the zone

Quote:
Originally Posted by Alter
Hi there Galahad/ray I would really appreciate it if one of you would post that code. I been looking for a startup code like that.....for some time now... :-)
I`ve uploaded the System close / restore code into the zone. This works for all processors.
Ray Norrish is offline  
Old 08 February 2006, 23:15   #20
Ray Norrish
Registered User
 
Ray Norrish's Avatar
 
Join Date: May 2005
Location: Cheshire, UK
Age: 56
Posts: 322
ah..

I found the intro source, but not the extra commented version I made for tutorials. I`ll upload the code anyway.

Last edited by Ray Norrish; 08 February 2006 at 23:23.
Ray Norrish is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rainboot 2.9 prog Rod_cl request.Apps 4 26 February 2019 17:02
Viewer Prog AlfaRomeo request.Apps 4 24 August 2008 02:38
Best prog to scan floppys? Eny- support.Apps 10 04 August 2004 21:42
Snoopdos prog stainy request.Apps 3 04 April 2004 00:09
Need prog! Time Bandit Retrogaming General Discussion 6 20 November 2002 22:28

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:16.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.65765 seconds with 13 queries