Finish making the tune a program
The user's conversion, which I reverted while I was working out whether it was half done or broken. It was half done: an sbx application wants its #Include above #Program, because services.asm ends in a #Vectors block and a #Base written after that has no segment to be the base of. So the include moves up, the bases move a page with everything else, and the test starts it from the shell instead of booting it. It plays for 9,469,987 cycles, 9,423,527 of them waiting, which is the same 567 frames of music it played as a boot image. BEING A PROGRAM MEANS ITS VECTOR IS THE SYSTEM'S TO INSTALL. It brings the screen's, so that it has a beat to play to, and CosmOS puts it in when the tune starts and takes it back out when it stops - a thing a boot image never had to have right, and the second program here to exercise the version two format at all. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
This commit is contained in:
co-authored by
Claude Opus 5
parent
3449405b18
commit
b04e4b7d1c
+6
-1
@@ -61,7 +61,12 @@ picture | Examples/picture.asm | run | -
|
||||
# music at 16,667 cycles a frame is 9.45 million, so twelve leaves room to lengthen the tune
|
||||
# without coming back here - and a failure saying "cycle limit reached" means somebody added
|
||||
# bars, not that anything broke.
|
||||
tune | Examples/tune.asm | run | - | 12000000
|
||||
#
|
||||
# IT IS A PROGRAM NOW rather than a boot image, so the shell starts it and the machine it
|
||||
# plays on is the one somebody would really be sitting at. That also means its vector is
|
||||
# INSTALLED BY THE SYSTEM and taken back out when it stops, which is a thing a boot image
|
||||
# never had to have right.
|
||||
tune | CosmOS/Source/cosmos.asm | run | tune.in | 12000000 | disks/cosmos.img
|
||||
8bitSieve | Examples/primeSieve/8bitSieve.asm | run | - | -
|
||||
16bitSegmentedSieve | Examples/primeSieve/16bitSieve.asm | run | - | -
|
||||
# The four pointer rewrite. It emits exactly the same primes as the line above, which
|
||||
|
||||
Reference in New Issue
Block a user