Re: A86: Interrupt programming


[Prev][Next][Index][Thread]

Re: A86: Interrupt programming




#include "asm86.h"
#include "ti86asm.inc"

.org _asm_exec_ram
   res 2,(iy+$23)
   ld hl,int
   ld de,$d2fe
   ld bc,int_end-int+1
   ldir
   ld a,($d2fe)
   ld hl,$d325
   add a,(hl)
   ld hl,$d34d
   add a,(hl)
   ld hl,$d375
   add a,(hl)
   ld hl,$d39d
   add a,(hl)
   ld hl,$d3c5
   add a,(hl)
   ld ($d2fd),a
   set 2,(iy+$23)
   ret

int:
 push hl
 push de
 push bc

;put your code here

end:
 pop bc
 pop de
 pop hl
 ret
int_end:

.end


References: