FoenixMCP/src/m68k
Peter Weingartner 3509e83475 Interrupt & Sound Fixes
Fixes to issues with interrupts. Added more support for exceptions going to the panic screen. Test commands for PSG and OPL3 now work.
2021-10-26 15:46:40 -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 Interrupt & Sound Fixes 2021-10-26 15:46:40 -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.