millfork

Millfork: a middle-level programming language targeting 6502- and Z80-based microcomputers and home consoles

This project is maintained by KarolS

< back to index

Millfork calling convention

Note: all the info below may change without any warning and is given only for debugging purposes.

6502

Parameters:

Return values:

Register preservation:

Z80

Parameters:

Return values:

Register preservation:

8086

The Intel 8086 calling conventions is based on the Intel 8080 calling convention, plus it uses the BP register in the same role as the IX register of Z80. The DI register is not used.

Parameters:

Return values:

Register preservation:

6809

WARNING! Motorola 6809 support is not yet complete.

TODO: this convention may change

Parameters:

Return values:

Register preservation: