This wiki is being migrated to http://www.github.com/z88dk/z88dk/wiki

 

This is an old revision of the document!


Old School Computer Architecture

Building applications

Command Line

zcc  +osca -lm -lndos program.c

– or –

zcc  +osca -lm -lflosdos program.c

– or –

zcc  +osca -subtype=ansi -lm -lflosdos 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.

Extra Options

The OSCA binary format permits to specify a different memory position and to do a memory bank switch before loading.

C source level

#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

compiler command line

  1. zorg=<location>

Permits to specify the program position

 
platform/osca.1401093315.txt.gz · Last modified: 2014/05/26 09:35 by stefano
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki