FoenixMCP/src/m68k
Peter Weingartner fbfd65a933 TESTMEM
Added a memory test command.
2021-10-31 20:29:47 -04:00
..
bios_m68k.c TESTMEM 2021-10-31 20:29:47 -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 More SYSCALLS, improved error handling 2021-10-29 18:45:58 -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.