mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-16 16:31:04 +00:00
A8 horizontal stars done on one missile
This commit is contained in:
parent
9f40fc5066
commit
86ae6de325
@ -88,15 +88,17 @@ how to create a program made of multiple files loaded on demand
|
||||
|
||||
* [Vertical scroll example](a8/vertical_scroll.mfk) – simple vertical scroll example
|
||||
|
||||
* [System Off example](a8/systemoff_example.mfk) – Programming example with ROM off
|
||||
* [Horizontal stars example](a8/horizontal_stars.mfk) – horizontal stars done on one missile
|
||||
|
||||
* [GR.8 Chessboard Benchmark](a8/gr8_chessboard_benchmark.mfk) – Chessboard drawing benchmark in GR.8
|
||||
* [System Off example](a8/systemoff_example.mfk) – programming with ROM off
|
||||
|
||||
* [FOR Countdown Benchmark](a8/countdown_for_benchmark.mfk) – Countdown from 1,999,999 to 0 (FOR loop)
|
||||
* [GR.8 Chessboard Benchmark](a8/gr8_chessboard_benchmark.mfk) – chessboard drawing benchmark in GR.8
|
||||
|
||||
* [WHILE Countdown Benchmark](a8/countdown_while_benchmark.mfk) – Countdown from 1,999,999 to 0 (WHILE loop)
|
||||
* [FOR Countdown Benchmark](a8/countdown_for_benchmark.mfk) – countdown from 1,999,999 to 0 (FOR loop)
|
||||
|
||||
* [Sieve of Eratosthenes (1899) Benchmark](a8/sieve1899.mfk) – Sieve of Eratosthenes, 1899 primes algorithm
|
||||
* [WHILE Countdown Benchmark](a8/countdown_while_benchmark.mfk) – countdown from 1,999,999 to 0 (WHILE loop)
|
||||
|
||||
* [Sieve of Eratosthenes (1899) Benchmark](a8/sieve1899.mfk) – sieve of Eratosthenes, 1899 primes algorithm
|
||||
|
||||
* [Monte Carlo PI estimation Benchmark](a8/montecarlo_pi_benchmark.mfk) – measures the efficiency of multiplication
|
||||
|
||||
|
21
examples/a8/horizontal_stars.mfk
Normal file
21
examples/a8/horizontal_stars.mfk
Normal file
@ -0,0 +1,21 @@
|
||||
void main(){
|
||||
array(byte) stars[256] align(fast)
|
||||
byte i
|
||||
|
||||
os_PCOLR0 = $e
|
||||
gtia_grafm = $e
|
||||
|
||||
for i:stars {
|
||||
stars[i] = pokey_random
|
||||
}
|
||||
|
||||
while true {
|
||||
if antic_vcount == 0 {
|
||||
for i:stars {
|
||||
antic_wsync = 1
|
||||
gtia_hposm0 = stars[i]
|
||||
stars[i] += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user