FoenixMCP/src/m68k
Peter Weingartner e0e900e56d RUN Changes
Made RUN an implied command that can pass parameters to the called program.
2021-10-26 19:43:17 -04:00
..
bios_m68k.c SYS_EXIT, RUN command 2021-09-30 13:39:39 -04:00
Makefile SYS_EXIT, RUN command 2021-09-30 13:39:39 -04:00
README.md More system calls 2021-09-21 19:07:45 -04:00
startup_m68k.s RUN Changes 2021-10-26 19:43:17 -04:00

m68k

This folder contains the various source files needed to compile Foenix/MCP for the Motorola 68000 series processors.

System Call Convention

System calls will be made through the TRAP instruction.

  • Stack pointer is A7
  • Registers D1 - D7, and A0 - A6 will be preserved by the kernel.
  • First parameter is in D1, second in D2, and so on.
  • The caller places the function number in D0.
  • All BIOS calls are issued through a TRAP #15 instruction.
  • Results are returned in D0.