Files
stc32g128k/App/isr_jump.asm
2026-07-15 15:57:37 +08:00

18 lines
688 B
NASM
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; 端口中断 0 / 2 的硬件中转绝对定位汇编 (A251)
; 目的Keil C251 编译器只支持 interrupt 0~31
; 而 STC32G 的端口中断硬件向量号为 37(Port0) 和 39(Port2)
; 超出范围无法用 C 直接声明。
; 本文件在绝对地址处放置 LJMP 指令,将硬件向量重定向到
; Keil 可以生成的 13 号和 15 号中断服务函数入口。
NAME ISR_JUMP
; 端口 0 中断 (向量 37, 硬件绝对地址 00012BH) 跳转到 13 号中断 (地址 00006BH)
CSEG AT 00012BH
LJMP 00006BH
; 端口 2 中断 (向量 39, 硬件绝对地址 00013BH) 跳转到 15 号中断 (地址 00007BH)
CSEG AT 00013BH
LJMP 00007BH
END