File-Manager/SPEC/VECT.ASM
2025-04-04 00:37:36 +10:00

112 lines
1.4 KiB
NASM
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; rst 00h
jp $+3
db -1
db -1
db -1
db -1
db -1
; RST 08h. BIOS calls
push af
ld a,0 ; ¢ª«. <20>‡“ <20>¨®á  ¢ 0-¥ ®ª­®
out (7Ch),a
pop af
ret
db 0C9h
; RST 10h. DOS calls
jp alt10 ; fm.asm
db -1
db -1
db -1
db -1
db -1
; RST 18h
jp alt18 ; fm.asm
db -1
db -1
db -1
db -1
db -1
; rst 20h
jp $+3
db -1
db -1
db -1
db -1
db -1
; rst 28h
rst28: push af
ld a,0 ; á®åà. page_module0
out (82h),a
pop af
jr spec_interrupt
; rst 30h
jp $+3
db -1
db -1
db -1
db -1
db -1
;
; RST 38h. Main Interrupt
jp $+3
di
push iy
push ix
push hl
push de
push bc
push af
ex af,af'
exx
push hl
push de
push bc
push af
;call show_clock ; ®â®¡à ¦¥­¨¥ ç á®¢
;di
ds 4;
pop af
pop bc
pop de
pop hl
exx
ex af,af'
pop af
pop bc
pop de
pop hl
pop ix
pop iy
ei
reti
db -1,-1,-1,-1,-1 ; ­  £à ­¨æã 0064h
;0064h
retn
db 0 ; 0066h (®â ­¥¬ áª. ¯à¥à뢠­¨ï ¢ IM0)
db 0
db 0
jp $-5
;================ Š®­¥æ ¡«®ª  ‚¥ªâ®à®¢ à¥áâ à⮢ =====================
;-------------------------------------------------
; ‚ë§®¢ ®¡à ¡®â稪  #28 à¥áâ àâ .
; ˆá¯®«ì§®¢ âì ᢮© á⥪.
;-------------------------------------------------
spec_interrupt:
ld (spc_stk+1),sp
ld sp,spec_stack
call spec_funcs ; ®âà ¡®âª  ä㭪樨
spc_stk:ld sp,0
jp rst28 ; ¢ª«. 0-î áâà. ä¬
ds 64
spec_stack: ; á⥪ ¡ ­ª¨