52636a5d6e
Графика вынесена из libc/ в новую библиотеку libbgi/:
- common/ — mode-agnostic математика и состояние (один исходник,
.rel попадает в оба driver-архива);
- bgi256/ + bgi16/ — mode-specific leaf'ы (raw-плот/чтение/спаны);
- include/ — graphics.h + gfx.h; _bgi.h — внутренний заголовок.
Собираются lib/bgi256.lib (и bgi16.lib в Фазе 2); выбор режима
линковкой через sprinter-cc --gfx 256|16. libc/ теперь без графики.
tests/bgi_img — тест спрайтов getimage/putimage/imagesize (5 операций
COPY/XOR/OR/AND/NOT + XOR-round-trip + self-check imagesize).
Проверен автотестом в MAME.
Примечание: make size-check пока красный (gfx_dbuf/gfx_demo выросли
после реорга) — закрыть по завершении миграции libbgi.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
92 lines
2.0 KiB
Plaintext
92 lines
2.0 KiB
Plaintext
# ===========================================================================
|
|
# Build outputs
|
|
# ===========================================================================
|
|
|
|
# `build/` directories anywhere in the tree
|
|
# (top-level build/, libc/build/, libbgi/build/, toolchain/*/build/, ...)
|
|
build/
|
|
|
|
# sprinter-cc per-example intermediate directory
|
|
.sprinter-cc-*/
|
|
|
|
# Per-program final/intermediate outputs landing alongside the source
|
|
# (real apps under examples/ and libc feature tests under tests/).
|
|
examples/*/*.exe
|
|
examples/*/*.asm
|
|
examples/*/*.lst
|
|
examples/*/*.lk
|
|
examples/*/*.ihx
|
|
examples/*/*.noi
|
|
examples/*/*.sym
|
|
examples/*/*.map
|
|
examples/*/*.rel
|
|
examples/*/*.cdb
|
|
examples/*/*.mem
|
|
examples/*/*.rst
|
|
|
|
# Temporary build directory for floppy disk image preparation
|
|
examples/*/.disk_tmp/
|
|
|
|
tests/*/*.exe
|
|
tests/*/*.asm
|
|
tests/*/*.lst
|
|
tests/*/*.lk
|
|
tests/*/*.ihx
|
|
tests/*/*.noi
|
|
tests/*/*.sym
|
|
tests/*/*.map
|
|
tests/*/*.rel
|
|
tests/*/*.cdb
|
|
tests/*/*.mem
|
|
tests/*/*.rst
|
|
|
|
# libc + libbgi archives (built by libc/Makefile + libbgi/Makefile)
|
|
lib/*.lib
|
|
|
|
# Host-built mkexe binary + test outputs (input fixtures *.bin/*.ihx kept)
|
|
toolchain/mkexe/mkexe
|
|
toolchain/mkexe/tests/*.exe
|
|
toolchain/mkexe/tests/*.actual
|
|
|
|
# Host-C build artifacts (mkexe and similar tools compiled with native cc)
|
|
*.o
|
|
*.obj
|
|
*.dSYM/
|
|
|
|
# ===========================================================================
|
|
# Vendored / downloaded
|
|
# ===========================================================================
|
|
|
|
# SDCC: extracted source tree + download tarballs
|
|
# (only third_party/setup-sdcc.sh tracked)
|
|
third_party/sdcc/
|
|
third_party/sdcc-*/
|
|
third_party/*.tar.bz2
|
|
third_party/*.tar.gz
|
|
|
|
# MAME emulator install — ~1 GB binary + ROMs + CHDs
|
|
mame/
|
|
|
|
# ===========================================================================
|
|
# OS / editor / AI assistant
|
|
# ===========================================================================
|
|
|
|
# macOS
|
|
.DS_Store
|
|
._*
|
|
|
|
# Editor swap / backup
|
|
*~
|
|
*.swp
|
|
*.bak
|
|
*.orig
|
|
*.rej
|
|
|
|
# IDEs
|
|
.vscode/
|
|
.idea/
|
|
.kilo/
|
|
|
|
# Claude Code local settings (per-machine, not for the repo)
|
|
.claude/
|