downloading to and debugging in target system

HEX programs are the ones which are to be downloaded
ensure the following steps


1. set the dip switch sw1's 1 & 6  switch  ON 
      switch sw1-4 is for serial mode of the kit(the other mode is
 keyboard)

2. set the dip switch sw1's 2,3,4,5,7,8 switch  OFF


3. switch on the 86 trainer kit
	The LED display will show    |  SeRIal  |
4. on the HOST machine (the PC) do the following

	a. goto the DOS prompt
	
b. change directory to XT86    c:\ cd xt86                         
c. execute the downloader program xt86.exe     c:\xt86    xt86



downloading processes

c:\xt86>xt86

set the switch sw1-4 on the kit to OFF
press the reset key in 8086 kit
see the display of ".ESA 86.."
PUT CAPSLOC ON COMPUTER KEY BOARD
press 
a dialog appeare asking for HEX File to down load
type the name of the file .HEX eg mfp.hex
while downloading the adderss is displayed
The xt86 returns to the . prompt after downloading.
press  ALT + X to exit
now the program is in the target system RAM (
The program is downloaded in the target kit)
This program is to be executed in the target kit 

ofter downloading  
1). put sw1,sw4,sw6 to ON
    sw2,sw3,sw5,sw7,sw8 - OFF 
2). Power in/reset
	[- E S A]  [  8 6  ]
3). Press  0		
	  EB/AX 
4). Enter starting address
	[2000]		
			[2000] [    ]
	[NEXT]		[2000] [ XX ]   X=Some random value
Enter program instruction byte by byte 
	[A1]	[2000] [ A1 ]
	[NEXT]	[2001] [ XX ]
	[00]	[2001] [ 00 ]
	[NEXT]	[2002] [ XX ]
	[28]	[2002] [ 28 ]
	[NEXT]	[2003] [ XX ]
	[8B]	[2003] [ 8B ]
	[NEXT]	[2004] [ XX ]
	[1E]	[2004] [ 1E ]
	[NEXT]	[2005] [ XX ]
	[02]	[2005] [ 02 ]
	[NEXT]	[2006] [ XX ]
	[28]	[2006] [ 28 ]
	[NEXT]	[2007] [ XX ]
	[01]	[2007] [ 01 ]
	[NEXT]	[2008] [ XX ]
	[D8]	[2008] [ D8 ]
	[NEXT]	[2009] [ XX ]
	[A3]	[2009] [ A3 ]
	[NEXT]	[200A] [ XX ]
	[04]	[200A] [ 04 ]
	[NEXT]	[200b] [ XX ]
	[28]	[200b] [ 28 ]
	[NEXT]	[200C] [ XX ]
	[CC]	[200C] [ CC ]
After entering the code and pressing the 
now the numbers 0045H & 0002 have to be entered, for entering data at 2800h do the following

press  EXEC 	[    ] [    ]
press  EB/AX 	[   .] [    ]
      <2800>	[2800] [    ]
      	[2800] [  XX]
      <45>	[2800] [  45]
      	[2801] [  XX]
      <00>	[2801] [  00]
      	[2802] [  XX]
      <02>	[2802] [  02]
      	[2803] [  XX]
      <00>	[2803] [  00]
      	[2804] [  XX]
      <00>	[2804] [  00]
      	[2805] [  XX]
      <00> 	[2805] [  00]
      	[-   ] [    ]

Single step register inspect.
	 	
press 	[   0.] [  FF]
      <2000>	[2000] [    ]
      	[2003] [  8b]
      	[2007] [  01]
      	[2009] [  A3]
      	[200C] [  CC]
      	[ 675] [  06]
      	[-   ] [    ]
      	[   .] [    ]
      <2804>	[2804] [    ]
          [2804] [  47]
you see the result and then again reset

enter new data , repeat and  check the result . try 0fff0H and 00010H as data , look for the flag register.
Proceed with other arithmetic operators  that is
		SUB
		DIV
		MUL	

 another program code

  
	
      		         			
		

	

		
 
 





Back to Main page