Skip to main content

Herramienta CLI para compilar proyectos 8BP (8 Bits de Poder) con Abasm para Amstrad CPC

Project description

build8bp

Herramienta CLI para compilar proyectos 8BP (8 Bits de Poder) para Amstrad CPC usando ABASM.

Instalación

cd build8bp
poetry install

Configuración

Define las variables de entorno (opcional):

export BP8_ASM_PATH="/ruta/a/8BP_V43/ASM"
export ABASM_PATH="/ruta/a/abasm/src/abasm.py"

O usa los parámetros --asm-path y --abasm-path en cada comando.

Uso

Compilar proyecto

# Con variables de entorno configuradas
build8bp compile --build 0

# Con rutas explícitas
build8bp compile --build 1 \
  --asm-path "/Users/destroyer/Downloads/8BP-master 2/8BP_V43/ASM" \
  --abasm-path "/Users/destroyer/Downloads/8BP-master 2/abasm/src/abasm.py"

Niveles de build:

  • 0: Todas las funcionalidades (MEMORY 23600)
  • 1: Juegos de laberintos - |LAYOUT, |COLAY (MEMORY 25000)
  • 2: Juegos con scroll - |MAP2SP, |UMA (MEMORY 24800)
  • 3: Juegos pseudo-3D - |3D (MEMORY 24000)
  • 4: Sin scroll/layout, +500 bytes sprites (MEMORY 25500)

Aplicar parches

Corrige la sintaxis de los archivos ASM para compatibilidad con ABASM:

build8bp patch --asm-path "/ruta/a/8BP_V43/ASM"

Correcciones aplicadas:

  • and a,and
  • or a,or
  • xor a,xor
  • djnz,djnz
  • ifnot X = Yif X != Y

Restaurar originales

Restaura los archivos desde los backups creados por patch:

build8bp rollback --asm-path "/ruta/a/8BP_V43/ASM"

Ejemplo completo

# 1. Aplicar parches
build8bp patch --asm-path "./8BP_V43/ASM"

# 2. Compilar opción 1 (laberintos)
build8bp compile --build 1 \
  --asm-path "./8BP_V43/ASM" \
  --abasm-path "./abasm/src/abasm.py"

# 3. Si necesitas revertir cambios
build8bp rollback --asm-path "./8BP_V43/ASM"

Desarrollo

# Instalar dependencias
poetry install

# Ejecutar en modo desarrollo
poetry run build8bp --help

# Construir distribución
poetry build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

build8bp-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

build8bp-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file build8bp-0.1.0.tar.gz.

File metadata

  • Download URL: build8bp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for build8bp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d2fe9ad1e30c7feace2dee05aae37f666595a2a2b4f8ea8ef582f85b061aca12
MD5 0bc5dbd9bc043a7ccccd14d5badf8c38
BLAKE2b-256 bd7b2cd911156a68abf93def05dffbafc8ef9f4e6aa9d6dbea82ac9b11bf5667

See more details on using hashes here.

File details

Details for the file build8bp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: build8bp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for build8bp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2d8f863d3f839e7f88aa4ef13af35fff5405afa73bbc17a41e845bc3f6dad2
MD5 b43c1f46524ed0e37c49bef8c988577e
BLAKE2b-256 833892396aa3bc8b07c26d4e271d92712a070d68b38d6d6d40913f09d7f57419

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page