| |
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.... |
| |
Oswald
Registered: Apr 2002 Posts: 5095 |
specific site on coding: http://codebase64.org/doku.php
here you find many coding emags: http://codebase64.org/doku.php?id=magazines:start |
| |
bugjam
Registered: Apr 2003 Posts: 2594 |
Group-advertisement: dont forget this one -
http://the-dreams.de/aay.html
Cheers,
Bugjam |
| |
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 |
| |
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? |
| |
Mr. SID
Registered: Jan 2003 Posts: 424 |
exomizer sfx 0x4000 -t 64 -o scroller_packed.prg scroller_1000_5xxx.prg |
| |
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. |
| |
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. |
| |
Dr.j
Registered: Feb 2003 Posts: 277 |
@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 |
| |
Dr.j
Registered: Feb 2003 Posts: 277 |
@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) |
| |
Mr. SID
Registered: Jan 2003 Posts: 424 |
Quoting Technotronexomizer 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 |