<--  back   Last regenerated: 2017-03-05 16:56:38 kio

zasm - Z80 Assembler – Version 4.0

Including C Source Files

This is a summary page for all the c source related information otherwise spread over the zasm documentation.

Related Differences from v3 to v4: Command line options
Command Line Options
Command Line Options: Command line options
command line options

-Command Line Options: -c /path/to/cc
Command line options for C compiler: -c /path/to/cc
c path/to/cc Pseudo instructions: defl, set and '='
Labels: SET
set path to c compiler (default: sdcc in $PATH) -Command Line Options: -t /path/to/dir
Command line options for C compiler: -t /path/to/dir
t path/to/dir Pseudo instructions: defl, set and '='
Labels: SET
set path to temp dir for c compiler (default: output dir) -Command Line Options: -I /path/to/dir
Command line options for C compiler: -I /path/to/dir
I path/to/dir Pseudo instructions: defl, set and '='
Labels: SET
set path to c system header dir (default: sdcc default) -Command Line Options: -L path/to/dir
Command line options for C compiler: -L path/to/dir
L path/to/dir Pseudo instructions: defl, set and '='
Labels: SET
set path to standard library dir (default: none)

Related assembler directives

Assembler directives: #include
Including C Source Files: #include
#include #include: #include library
#include: #include library
#include library Assembler directives: #cpath
Including C Source Files: #cpath
#cpath Assembler directives: #cflags
Including C Source Files: #cflags
#cflags Assembler directives: #target
Including C Source Files: #target
#target, #code and #data Assembler directives: #local and #endlocal
Including C Source Files: #local and #endlocal
#local and #endlocal

#insert: Examples:
#assert: Example:
incbin: Examples:
Example sources:

Examples/template_rom_with_c_code.asm
Test/test-tap.asm

include/ and lib/ directory
Note: the supplied sdcc/lib/ directory requires sdcc 3.4.1.

sdcc/include/
sdcc/lib/

Interesting reading

sdcc_info.txt
sdcc manual.pdf

Valid HTML   Valid CSS