Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/17/01 10:10
Read: times


 
#10071 - RE: Software Interrupt instruction?
Hi Andy,

please can you explain, what the difference between a software interrupt and simple calling a subroutine.

I see no difference, except a call was more flexible, since it can be directed anywhere in the program space, not only to a defined vector.

But you can use any unused hardware interrupt. You must only set the appropriate interrupt pending flag.
E.g.:

setb ri ;using UART interrupt (0023h)
jb ri $ ;wait until interrupt serviced

org 0023h
clr ri
;... handle software interrupt
reti


Peter


List of 10 messages in thread
TopicAuthorDate
Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      
RE: Software Interrupt instruction?            01/01/70 00:00      

Back to Subject List