Hallo Besucher, der Thread wurde 5,3k mal aufgerufen und enthält 30 Antworten
letzter Beitrag von M. J. am
scroll asm routine need help
- simun9
- Erledigt
-
-
Here is the result (border ate little of "K" so I have to open border or reset to 40 columns?) But that is I wan to acheive Thanks M.J. Ill back to sid routine tomorrow its enough for today:
-
Ah, my bad. I had a custom binary font file, that did have letters there
-
Easy Sunday morning, perfect to start with some code (problem) and solution....
So I returned to main problem: playing sid file. I found sid file which is playing perfectly sidplay2w (init 1000 play 1003) but again no music. What now?
-
Most sid inits the subtune with x. Try a LDX #$00 before JSR $1000
I found a few player are out there who are extreme "picky" so before init and play I had to LDA #$00, LDX #$00 and LDY #$00 .
-
Well done,
Little tricky advice always result with victory.
Thank you all.
Now, I can go on with new ideas and elements of my little intro.
Probably in the evening.
-
If you're doing stuff where you need every byte, you shouldn't waste any, sometimes all is done in $Init.
But the normal way of inititalising is
to cover virtually all kinds of players out there after 30+x years
Of course you could also look into disassembly of $InitAddress in monitor to find out what's needed, e.g. often you find some JMP $???? (otherwise Init $1000 / Play $1003 wouldn't make much sense, right?) and at $???? (real init code) you find TAX TAY or TXA TAY or anything like that.
-
Well, here we go with more elemets of new intro.
a friend of mine gave me small raster routine (thank you reto coder - fantastic old school coding from Finland).
So I admit its better to use separate code and put togheter at the end of work.
So if I wanna make it together what shall I do? Do I have to rebuild original main or to link all parts to make one ?
He put rasters also in the upper screen (maybe we can put somewhere else or?)
-
Once your program reaches a code size of 10.000 lines of code, you can start thinking about splitting your program into modules. Until then there is no need to worry about it. Just copy and paste the parts you want and adjust them to your needs.
In your case note that the irq handling is different and copy the part after "irq1" and drop the "JMP $ea81" at the end.If you want the raster bars to start at a different line, all you have to do is change the $d012 line for the raster interrupt or put a wait in front:
-
It was busy week.
I found an old routine fro raster bars and it appears on the bottom of the screen.
Can you please tell me can I use it as standalone and even better for to put in the main.asm file togheter to work correctly? -
1.) The code you posted was disassembled from its load address not where it is executed ($9000..). It's tedious to follow the jumps that way.
2.) You can't tell just by looking at the code what the screen will look like. "It appears on the bottom of the screen" is a vague description.
3.) Sure, you can always reuse code written by other people in your program. Copy the interrupt routine, change the interrupt line $d012, and there you go. But... if you really want to learn how to program, it is not a good idea just to copy tons of code without understanding how it actually works. Why not write an interrupt routine of your own and see what you can achieve?