Give Programs/ one rule: a directory per kind, nothing loose
Five .asm files sat at the top of Programs/ beside six directories, with
nothing to say which a new file should join - and hello.asm, which is the
native assembler's first target and named in sixteen places, looked like a
stray.
Programs/
Examples/ what you read to learn: hello, printHello, inputTest,
replCalculator, and Fibonacci, primeSieve and gameOfLife
as sets of their own
Libraries/ included by name, no entry point of their own
Loader/ loader.asm, and the loadable program it reads
CosmOS/ the system, its applications and its assembler
testPrograms/ what 'make test' drives
Loader/ is the one worth explaining. loader.asm is not a demonstration: it
reads a program off a disk, puts the two pieces where the header asks, and
jumps to the entry. CosmOS grew out of it and does the same thing as one of
its commands. It is kept because backward compatibility with the simplest
version of the system is a standing goal, and it was sitting loose next to
the demos as though it were one.
Programs/loadable/ was a directory holding one file called hello.asm - a
third thing of that name, and the name said nothing about why it was there.
It is Loader/loadable.asm now, beside the loader that reads it.
Every reference moved with them: the makefile's program list, twelve
manifest lines, makedisks.sh, native.sh, and four paths across the README
and both manuals. Verified by deleting both build directories and running
the whole suite from nothing.
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
6dbb38b209
commit
ccf4b384e1
+19
-15
@@ -16,23 +16,27 @@ BUILD ?= build
|
||||
# CosmOS owns the filesystem library and the service names, so it is a place to look too.
|
||||
INCLUDES = -I Libraries -I CosmOS/Source
|
||||
|
||||
# The programs worth building. Files in Libraries/ are left out because they have no
|
||||
# entry point of their own, and the ones in testPrograms/ are covered by 'make test'
|
||||
# in the parent directory.
|
||||
# The programs worth building. Every one lives in a directory that says what kind it is:
|
||||
# Examples/ is what you read to learn, Loader/ is the standalone loader CosmOS grew out of,
|
||||
# CosmOS/ is the system. Files in Libraries/ are left out because they have no entry point
|
||||
# of their own, and the ones in testPrograms/ are covered by 'make test' in the parent
|
||||
# directory.
|
||||
PROGRAMS = \
|
||||
CosmOS/Source/cosmos.asm \
|
||||
hello.asm \
|
||||
printHello.asm \
|
||||
inputTest.asm \
|
||||
replCalculator.asm \
|
||||
Fibonacci/8bitFibonacci.asm \
|
||||
Fibonacci/16bitFibonacci.asm \
|
||||
Fibonacci/32bitFibonacci.asm \
|
||||
primeSieve/8bitSieve.asm \
|
||||
primeSieve/16bitSegmentedSieve.asm \
|
||||
primeSieve/16bitSegmentedSieveModern.asm \
|
||||
gameOfLife/16x16Life.asm \
|
||||
gameOfLife/16x16LifeModern.asm
|
||||
Examples/hello.asm \
|
||||
Examples/printHello.asm \
|
||||
Examples/inputTest.asm \
|
||||
Examples/replCalculator.asm \
|
||||
Examples/Fibonacci/8bitFibonacci.asm \
|
||||
Examples/Fibonacci/16bitFibonacci.asm \
|
||||
Examples/Fibonacci/32bitFibonacci.asm \
|
||||
Examples/primeSieve/8bitSieve.asm \
|
||||
Examples/primeSieve/16bitSegmentedSieve.asm \
|
||||
Examples/primeSieve/16bitSegmentedSieveModern.asm \
|
||||
Examples/gameOfLife/16x16Life.asm \
|
||||
Examples/gameOfLife/16x16LifeModern.asm \
|
||||
Loader/loader.asm \
|
||||
Loader/loadable.asm
|
||||
|
||||
BINARIES = $(PROGRAMS:%.asm=$(BUILD)/%.bin)
|
||||
DEPENDENCIES = $(BINARIES:.bin=.d)
|
||||
|
||||
Reference in New Issue
Block a user