# Veal Mode IDT builder. PE=1, use16. 8-byte interrupt/trap gates in IDT,
#  which point at use16-CS reflexes. Code for those in 16/PE1. Which 
#   reflexes have otheroperandsize'd dismiss'es.


	# set up Interrupt Descriptor Table.
	# to be INLINE in flow of control during setup

L defaultVealvectors
zero DI				# for DI = 0 to 127
L perVealIDTvector
	pushcore
	  = Vealtwitch to A		# install twitch to vector DI 		
          call install
	pullcore
        1+ DI
        -test 127 with DI
when    not     zero   short  	perVealIDTvector


L defaultVealIRQs
= 0x20 to DI			# for DI = 0 to 127
L perVealIRQvector
	pushcore
	  = VealIRQtwitch to A		# install IRQtwitch to vector DI
          call install
	pullcore
        1+ DI
        -test 0x30 with DI
when    not     zero    short	perVealIRQvector

#
#= 0x20 to DI
#pushcore
#= IRQ0twitch to A
#call install
#pullcore
#

setIDT $IDT16Ppointer			# in 16/PE1 routines.
					# in IPL physically.

