This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt 1 - problem

I am getting this message on INT1 trigger - Why?
*** error 65: access violation at C:0x0013 : no 'execute/read' permission

;----------------------------------
CSEG AT 0
ljmp start

CSEG AT 3
ljmp int_0_trigger

CSEG AT 13
ljmp int_1_trigger

stack equ 30H

;------------------------------------
main SEGMENT CODE
RSEG main

start: mov sp, #stack-1 mov IE, #10000101B ; EA=1, EX1=1, EX0=1 mov TCON, #00000101B ; 1T1=1, 1T0=1 mov p0, #0 ; reset counter P0 setb p1.0 ; P1_0 = 1 = ON mov p2, #0 ; reset counter P2
loop: inc p2 sjmp loop
;--------------------------------------------------
int_0 segment code
rseg int_0

int_0_trigger: clr p1.0 inc p0 reti
;--------------------------------------------------
int_1 segment code
rseg int_1

int_1_trigger: setb p1.0 inc p2 reti

END