-
Notifications
You must be signed in to change notification settings - Fork 171
Platform OSCA
Stefano edited this page Jul 21, 2017
·
3 revisions
zcc +osca -lm -lndos -o program.exe program.c
-- or --
zcc +osca -lm -lflosdos -o program.exe program.c
-- or --
zcc +osca -subtype=ansi -lm -lflosdos -o program.exe program.c
The resulting 'a.bin' program can then be renamed to 'application.exe'. Optionally the code can be relocated as specified in the more recent FLOS version by using the '-zorg' parameter.
The OSCA binary format permits to specify a different memory position and to do a memory bank switch before loading.
#pragma output osca_bank=(0..14)
Set the memory bank for locations > 32768 before loading program
#pragma output osca_stack=`<value>`
Put the stack in a differen place, i.e. 32767
zorg=<location>
-> Permits to specify the program position
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage