mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-01 06:29:53 +00:00
A8 CMC Player with sample music
This commit is contained in:
parent
838ef0d1eb
commit
8a4e65b365
@ -92,6 +92,12 @@ how to create a program made of multiple files loaded on demand
|
||||
|
||||
* [Horizontal stars example](a8/horizontal_stars.mfk) – horizontal stars done on one missile
|
||||
|
||||
### Music
|
||||
|
||||
* [CMC Player](a8/cmcplayer.mfk) – CMC player with sample music
|
||||
|
||||
* [MPT Player](a8/mptplayer.mfk) – MPT player with sample music
|
||||
|
||||
### Benchmarks
|
||||
|
||||
* [Grand Theft Antic](a8/grand_theft_antic.mfk) – ANTIC impact on CPU depending on the used graphic mode
|
||||
|
24
examples/a8/cmcplayer.mfk
Normal file
24
examples/a8/cmcplayer.mfk
Normal file
@ -0,0 +1,24 @@
|
||||
const word ADDRMUS = $a000
|
||||
const word ADDRPLA = $b000
|
||||
|
||||
byte stop @ ADDRPLA + $62d
|
||||
|
||||
asm void comm(byte register(a) a, byte register(x) x, byte register(y) y) @ ADDRPLA+3 extern
|
||||
asm void takt() @ ADDRPLA+6 extern
|
||||
|
||||
void main(){
|
||||
comm($70,0,ADDRMUS.hi)
|
||||
comm(0,0,0)
|
||||
while os_CH == $ff {
|
||||
if antic_vcount == $10 {
|
||||
antic_wsync = $e
|
||||
gtia_colbk = $e
|
||||
takt()
|
||||
gtia_colbk = 0
|
||||
}
|
||||
}
|
||||
comm($40,0,0)
|
||||
}
|
||||
|
||||
const array player @ ADDRPLA = file("data/cmc_player.rep", 6)
|
||||
const array music @ ADDRMUS = file("data/echo.cmc", 6)
|
BIN
examples/a8/data/cmc_player.rep
Normal file
BIN
examples/a8/data/cmc_player.rep
Normal file
Binary file not shown.
BIN
examples/a8/data/echo.cmc
Normal file
BIN
examples/a8/data/echo.cmc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user