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 > help needed for simple demo
2014-09-29 07:46
Technotron

Registered: Sep 2014
Posts: 23
help needed for simple demo

hi all,

first of all I have to tell that I'm pretty newbie in the scene, so bear with me.

I have coded a simple scroller in assembler located at $c000 and it works. now I would like to add some music located at $1003 but I don't know how to proceed. I need a small routine that could be called with JSR and that returns to the scroller after some bits of music is played.


I have tried with the following routine but it doesn't work since it continues playing without returning to the scroller:

c010 lda $d012
cmp #$80
bne $c010
inc $d020
jsr $1003
dec $d020
rts

can anybody help me?
 
... 29 posts hidden. Click here to view all posts....
 
2014-09-30 18:37
Oswald

Registered: Apr 2002
Posts: 5017
specific site on coding: http://codebase64.org/doku.php

here you find many coding emags: http://codebase64.org/doku.php?id=magazines:start
2014-09-30 19:51
bugjam

Registered: Apr 2003
Posts: 2482
Group-advertisement: dont forget this one -
http://the-dreams.de/aay.html
Cheers,

Bugjam
2014-10-01 00:48
The Phantom

Registered: Jan 2004
Posts: 360
@ Technotron : You are very welcome. I do hope to see you finish the project you've started. PM me if you EVER need help, I can help a little bit, show you some turbo sources and even have some text file sources.

Isn't CSDb great? I love how everyone helps...

Good luck, and have fun :D
2014-10-01 18:04
Technotron

Registered: Sep 2014
Posts: 23
@BugJam

your advertisement is welcome too!



@ The Phantom

Quote:
Isn't CSDb great? I love how everyone helps...


I love it too. Finally Testa had kindly offered to code the scroller for me, and it works right. But now I've got another problem.

I've got the scroller routine at $4000, the text starting at $5000 and the music starting at $1000.

The question is how do I pack all together? I don't want to save the memory from $1000 to $5000 and over, as it looks like a waste of memory to me. How can I pack different part of the memory into one single file?
2014-10-01 18:34
Mr. SID

Registered: Jan 2003
Posts: 421
exomizer sfx 0x4000 -t 64 -o scroller_packed.prg scroller_1000_5xxx.prg
2014-10-01 21:26
The Phantom

Registered: Jan 2004
Posts: 360
Exomizer is likely the best packer you could use, but I personally think it's a bit confusing for someone new. I know I was confused when I first used it and DP had to help me use the program.

I'd suggest something easy to start packing your file. ECA is likely the easiest packer to use.. ECA Compactor V4+

Save EVERYTHING in memory... For instance: S "filename" 08 1000 5300

I'm not sure how hexmon saves, but think it's pretty standard for everything, no?

08 is the device you want to save to.
1000 5300 is how much memory will be saved.

Load ECA.

Low mem should be where you started to save, in this case, $1000

Hit enter on "skip"..

Type in the file you want to "pack".

When finished loading, type @, then enter.

You'll be asked for the starting address next. This means, what SYS will run your code, enter that in hex (ie. $1000=4096). In a monitor, you can type #$1000, enter and you should get that numbers value.

A command prompt comes when packing is finished, enter a SAVE name, then enter. Your file should now "run".

Grab Dirmaster (DirMaster V3.0.0) to make .d64's. Multiple windows can be used in the program, so you can swap files from one .d64 to another without issue.
2014-10-02 09:02
Technotron

Registered: Sep 2014
Posts: 23
@ The Phantom

Yes, I did it !!!!!!!!! Thanks :D


I've managed to pack everything but I have to tell that the version of ECA Compactor V. 4.0+ doesn't work. When I load it I've got a File not found error. The guys who uploaded the file should be informed of this. Then I have used this version ECA Compactor/Linker v4/DD (Dolphin DOS Version) and the trick was done.

@ Mr. SID

Quote:
exomizer sfx 0x4000 -t 64 -o scroller_packed.prg scroller_1000_5xxx.prg


exomizer looks pretty cool but the info that you have posted looks quite cryptic to me. I see in your line that there are two output files but no input file is mentioned. How does it work? Could you explain further? I think many people here would like to know how exomizer works.
2014-10-02 11:40
Dr.j

Registered: Feb 2003
Posts: 276
@Technotron: for learning ML language i recommend to
read all "coders world" as The Phantom mentioned before
and also a nice website which i find it handy for
beginers: http://tnd64.unikat.sk/ (go to Assemble it click)
about : exomizer , its great for commandline but if
you seeking for alternative and much easier go and use
this great tool: Bongo Cruncher
its win based and *very* good to pack progys
2014-10-02 11:49
Dr.j

Registered: Feb 2003
Posts: 276
@Technotron: one more thing mate , if you like send me your scroller or program (music/text) and i try to help you and make it working . and do yourself a big favor: consider using cross development tools like: Kick Assembler or others , all are very good and make life much easier
(maybe decrease a little the feeling of a "real" c64 ) but i don't find any other good way to code today. 95% of the
coders are cross developers (or at least using turbo
assembler)
2014-10-02 12:24
Mr. SID

Registered: Jan 2003
Posts: 421
Quoting Technotron
exomizer looks pretty cool but the info that you have posted looks quite cryptic to me. I see in your line that there are two output files but no input file is mentioned. How does it work? Could you explain further? I think many people here would like to know how exomizer works.

It's quite simple actually, the -o denotes the output file, but the filename after that is the input file.
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
Mason/Unicess
Viti/Hokuto Force
Martin Piper
Guests online: 101
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 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (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.048 sec.