Files
news.gitea.happylizard.me/bin/gems/rouge-4.7.0/lib/rouge/demos/nasm
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

27 lines
572 B
Plaintext

%macro IRQ 2
global irq%1
irq%1:
cli
push byte 0 ; push a dummy error code
push byte %2 ; push the IRQ number
jmp irq_common_stub
%endmacro
extern irq_handler
irq_common_stub:
pusha ; push all general-purpose registers
mov ax, ds ; lower 16-bits of eax = ds
push eax ; save the data segment descriptor
mov ax, 0x10 ; load the kernel data segment descriptor
mov edx, eax
call irq_handler
%assign i 0
%rep 8
ISR_NOERRCODE i
%assign i i+1
%endrep
ISR_NOERRCODE 9