diff --git a/src/cop_handler.s b/src/cop_handler.s deleted file mode 100644 index 25adab0..0000000 --- a/src/cop_handler.s +++ /dev/null @@ -1,46 +0,0 @@ -;;***************************************************************************** -;; Sentinel 65X Kernel -;; -;; src/cop_handler.s -;;***************************************************************************** - -#include "macros.h" - - .section code - - .public cop_handler_native - -cop_handler_native: - phb - phd - rep #0b00110000 - sta long:tmp_register_a - tsc - sta long:external_stack_pointer - lda long:internal_stack_pointer - tcs - lda long:tmp_register_a - - ; When we get here, the X register contains the function number. - ; A and Y may or may not contain parameters. None of those are - ; expected to be preserved. The job here is to ID the function - ; being called, marshall any parameters, and call it. - - tsc - sta long:internal_stack_pointer - lda long:external_stack_pointer - tcs - pld - plb - rti - - .section near - -tmp_register_a: - .space 2 - -external_stack_pointer: - .space 2 - -internal_stack_pointer: - .space 2