FoenixMCP/src/m68k
2023-11-12 18:30:11 +01:00
..
bios_m68k.c Try make logging more stable 2023-11-12 18:30:11 +01:00
Makefile Added Linux/Mac build support 2021-11-06 11:28:34 -04:00
README.md More system calls 2021-09-21 19:07:45 -04:00
startup_m68k.s Fix copy/paste error, A2560U only has one channel 2023-11-01 00:03:50 +01: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.