Work on memory map

This commit is contained in:
Kyle Cardoza 2024-03-30 07:50:54 -04:00
parent 2fc46e1021
commit 607674ff8d
1 changed files with 0 additions and 46 deletions

View File

@ -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