

HI-TECH Software PIC PRO Macro Assembler V9.83 build 10920 
                                                                                               Wed Jun 12 19:41:52 2024

HI-TECH Software Omniscient Code Generator (PRO mode) build 10920
     1  0000                     opt subtitle "HI-TECH Software Omniscient Code Generator (PRO mode) build 10920"
     2                           
     3                           opt pagewidth 120
     4                           
     5                           	opt pm
     6                           
     7                           	processor	16F685
     8                           clrc	macro
     9                           	bcf	3,0
    10  0000                     	endm
    11                           clrz	macro
    12                           	bcf	3,2
    13  0000                     	endm
    14                           setc	macro
    15                           	bsf	3,0
    16  0000                     	endm
    17                           setz	macro
    18                           	bsf	3,2
    19  0000                     	endm
    20                           skipc	macro
    21                           	btfss	3,0
    22  0000                     	endm
    23                           skipz	macro
    24                           	btfss	3,2
    25  0000                     	endm
    26                           skipnc	macro
    27                           	btfsc	3,0
    28  0000                     	endm
    29                           skipnz	macro
    30                           	btfsc	3,2
    31  0000                     	endm
    32  0000                     indf	equ	0
    33  0000                     indf0	equ	0
    34  0002                     pc	equ	2
    35  0002                     pcl	equ	2
    36  0003                     status	equ	3
    37  0004                     fsr	equ	4
    38  0004                     fsr0	equ	4
    39  0001                     c	equ	1
    40  0000                     z	equ	0
    41  000A                     pclath	equ	10
    42                           	FNCALL	_main,_GPIO_Init
    43                           	FNCALL	_main,_CLR_BANK0_RAM
    44                           	FNCALL	_main,_CLR_BANK1_RAM
    45                           	FNCALL	_main,_WDT_Init
    46                           	FNCALL	_main,_DelayUs
    47                           	FNROOT	_main
    48                           	FNCALL	intlevel1,_myIsr
    49                           	global	intlevel1
    50                           	FNROOT	intlevel1
    51                           	global	_temp
    52                           psect	nvCOMMON,class=COMMON,space=1
    53                           global __pnvCOMMON
    54  0073                     __pnvCOMMON:
    55  0073                     _temp:
    56  0073                            ds      1
    57                           
    58                           	global	_FSR
    59  0004                     _FSR	set	4
    60                           	global	_INDF
    61  0000                     _INDF	set	0
    62                           	global	_ODCON
    63  000F                     _ODCON	set	15
    64                           	global	_PDCON
    65  000E                     _PDCON	set	14
    66                           	global	_PHCON
    67  0010                     _PHCON	set	16
    68                           	global	_PORTA
    69  0005                     _PORTA	set	5
    70                           	global	_PORTB
    71  0006                     _PORTB	set	6
    72                           	global	_FT0IF
    73  0060                     _FT0IF	set	96
    74                           	global	_OPTION_REG
    75  0081                     _OPTION_REG	set	129
    76                           	global	_PADCON
    77  0093                     _PADCON	set	147
    78                           	global	_PAHCON
    79  0092                     _PAHCON	set	146
    80                           	global	_PAIC0
    81  0090                     _PAIC0	set	144
    82                           	global	_PBIC0
    83  0091                     _PBIC0	set	145
    84                           	global	_PCON
    85  008E                     _PCON	set	142
    86                           	global	_PDCON2
    87  0093                     _PDCON2	set	147
    88                           	global	_TRISA
    89  0085                     _TRISA	set	133
    90                           	global	_TRISB
    91  0086                     _TRISB	set	134
    92                           	global	_WUCON
    93  008F                     _WUCON	set	143
    94                           	file	"HS16F1211_wdt.as"
    95                           	line	#
    96                           psect cinit,class=CODE,delta=2
    97                           global start_initialization
    98  0077                     start_initialization:
    99                           
   100                           psect cinit,class=CODE,delta=2
   101                           global end_of_initialization
   102                           
   103                           ;End of C runtime variable initialization code
   104                           
   105  0077                     end_of_initialization:
   106  0077  0183               clrf status
   107  0078  2829               ljmp _main	;jump to C main() function
   108                           psect	cstackCOMMON,class=COMMON,space=1
   109                           global __pcstackCOMMON
   110  0070                     __pcstackCOMMON:
   111                           	global	?_GPIO_Init
   112  0070                     ?_GPIO_Init:	; 0 bytes @ 0x0
   113                           	global	?_CLR_BANK0_RAM
   114  0070                     ?_CLR_BANK0_RAM:	; 0 bytes @ 0x0
   115                           	global	?_CLR_BANK1_RAM
   116  0070                     ?_CLR_BANK1_RAM:	; 0 bytes @ 0x0
   117                           	global	?_WDT_Init
   118  0070                     ?_WDT_Init:	; 0 bytes @ 0x0
   119                           	global	?_DelayUs
   120  0070                     ?_DelayUs:	; 0 bytes @ 0x0
   121                           	global	?_myIsr
   122  0070                     ?_myIsr:	; 0 bytes @ 0x0
   123                           	global	??_myIsr
   124  0070                     ??_myIsr:	; 0 bytes @ 0x0
   125                           	global	?_main
   126  0070                     ?_main:	; 0 bytes @ 0x0
   127  0070                     	ds	2
   128                           	global	??_GPIO_Init
   129  0072                     ??_GPIO_Init:	; 0 bytes @ 0x2
   130                           	global	??_CLR_BANK0_RAM
   131  0072                     ??_CLR_BANK0_RAM:	; 0 bytes @ 0x2
   132                           	global	??_CLR_BANK1_RAM
   133  0072                     ??_CLR_BANK1_RAM:	; 0 bytes @ 0x2
   134                           	global	??_WDT_Init
   135  0072                     ??_WDT_Init:	; 0 bytes @ 0x2
   136                           	global	??_DelayUs
   137  0072                     ??_DelayUs:	; 0 bytes @ 0x2
   138                           	global	DelayUs@delayUs
   139  0072                     DelayUs@delayUs:	; 1 bytes @ 0x2
   140  0072                     	ds	1
   141                           	global	??_main
   142  0073                     ??_main:	; 0 bytes @ 0x3
   143 ;;Data sizes: Strings 0, constant 0, data 0, bss 0, persistent 1 stack 0
   144 ;;Auto spaces:   Size  Autos    Used
   145 ;; COMMON          14      3       4
   146 ;; BANK0           48      0       0
   147                           
   148 ;;
   149 ;; Pointer list with targets:
   150                           
   151                           
   152                           
   153 ;;
   154 ;; Critical Paths under _main in COMMON
   155 ;;
   156 ;;   _main->_DelayUs
   157 ;;
   158 ;; Critical Paths under _myIsr in COMMON
   159 ;;
   160 ;;   None.
   161 ;;
   162 ;; Critical Paths under _main in BANK0
   163 ;;
   164 ;;   None.
   165 ;;
   166 ;; Critical Paths under _myIsr in BANK0
   167 ;;
   168 ;;   None.
   169                           
   170 ;;
   171 ;;Main: autosize = 0, tempsize = 0, incstack = 0, save=0
   172 ;;
   173                           
   174 ;;
   175 ;;Call Graph Tables:
   176 ;;
   177 ;; ---------------------------------------------------------------------------------
   178 ;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
   179 ;; ---------------------------------------------------------------------------------
   180 ;; (0) _main                                                 0     0      0      15
   181 ;;                          _GPIO_Init
   182 ;;                      _CLR_BANK0_RAM
   183 ;;                      _CLR_BANK1_RAM
   184 ;;                           _WDT_Init
   185 ;;                            _DelayUs
   186 ;; ---------------------------------------------------------------------------------
   187 ;; (1) _DelayUs                                              1     1      0      15
   188 ;;                                              2 COMMON     1     1      0
   189 ;; ---------------------------------------------------------------------------------
   190 ;; (1) _WDT_Init                                             0     0      0       0
   191 ;; ---------------------------------------------------------------------------------
   192 ;; (1) _CLR_BANK1_RAM                                        0     0      0       0
   193 ;; ---------------------------------------------------------------------------------
   194 ;; (1) _CLR_BANK0_RAM                                        0     0      0       0
   195 ;; ---------------------------------------------------------------------------------
   196 ;; (1) _GPIO_Init                                            0     0      0       0
   197 ;; ---------------------------------------------------------------------------------
   198 ;; Estimated maximum stack depth 1
   199 ;; ---------------------------------------------------------------------------------
   200 ;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
   201 ;; ---------------------------------------------------------------------------------
   202 ;; (2) _myIsr                                                2     2      0       0
   203 ;;                                              0 COMMON     2     2      0
   204 ;; ---------------------------------------------------------------------------------
   205 ;; Estimated maximum stack depth 2
   206 ;; ---------------------------------------------------------------------------------
   207                           
   208 ;; Call Graph Graphs:
   209                           
   210 ;; _main (ROOT)
   211 ;;   _GPIO_Init
   212 ;;   _CLR_BANK0_RAM
   213 ;;   _CLR_BANK1_RAM
   214 ;;   _WDT_Init
   215 ;;   _DelayUs
   216 ;;
   217 ;; _myIsr (ROOT)
   218 ;;
   219                           
   220 ;; Address spaces:
   221                           
   222 ;;Name               Size   Autos  Total    Cost      Usage
   223 ;;BITCOMMON            E      0       0       0        0.0%
   224 ;;NULL                 0      0       0       0        0.0%
   225 ;;CODE                 0      0       0       0        0.0%
   226 ;;COMMON               E      3       4       1       28.6%
   227 ;;BITSFR0              0      0       0       1        0.0%
   228 ;;SFR0                 0      0       0       1        0.0%
   229 ;;BITSFR1              0      0       0       2        0.0%
   230 ;;SFR1                 0      0       0       2        0.0%
   231 ;;STACK                0      0       1       2        0.0%
   232 ;;ABS                  0      0       4       3        0.0%
   233 ;;BITSFR3              0      0       0       4        0.0%
   234 ;;SFR3                 0      0       0       4        0.0%
   235 ;;DATA                 0      0       5       4        0.0%
   236 ;;BITBANK0            30      0       0       5        0.0%
   237 ;;BITSFR2              0      0       0       5        0.0%
   238 ;;SFR2                 0      0       0       5        0.0%
   239 ;;BANK0               30      0       0       6        0.0%
   240                           
   241                           	global	_main
   242                           psect	maintext,global,class=CODE,delta=2
   243                           global __pmaintext
   244  0029                     __pmaintext:
   245                           
   246 ;; *************** function _main *****************
   247 ;; Defined at:
   248 ;;		line 30 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   249 ;; Parameters:    Size  Location     Type
   250 ;;		None
   251 ;; Auto vars:     Size  Location     Type
   252 ;;		None
   253 ;; Return value:  Size  Location     Type
   254 ;;		None               void
   255 ;; Registers used:
   256 ;;		wreg, status,2, status,0, pclath, cstack
   257 ;; Tracked objects:
   258 ;;		On entry : 17F/0
   259 ;;		On exit  : 60/0
   260 ;;		Unchanged: FFE00/0
   261 ;; Data sizes:     COMMON   BANK0
   262 ;;      Params:         0       0
   263 ;;      Locals:         0       0
   264 ;;      Temps:          0       0
   265 ;;      Totals:         0       0
   266 ;;Total ram usage:        0 bytes
   267 ;; Hardware stack levels required when called:    2
   268 ;; This function calls:
   269 ;;		_GPIO_Init
   270 ;;		_CLR_BANK0_RAM
   271 ;;		_CLR_BANK1_RAM
   272 ;;		_WDT_Init
   273 ;;		_DelayUs
   274 ;; This function is called by:
   275 ;;		Startup code after reset
   276 ;; This function uses a non-reentrant model
   277 ;;
   278                           psect	maintext
   279                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   280                           	line	30
   281                           	global	__size_of_main
   282  001B                     	__size_of_main	equ	__end_of_main-_main
   283                           	
   284  0029                     _main:	
   285                           	opt	stack 6
   286                           ; Regs used in _main: [wreg+status,2+status,0+pclath+cstack]
   287                           	line	31
   288                           	
   289  0029                     l1280:	
   290                           ;main.c: 31: GPIO_Init();
   291  0029  200B               	fcall	_GPIO_Init
   292                           	line	32
   293                           	
   294  002A                     l1282:	
   295                           ;main.c: 32: CLR_BANK0_RAM();
   296  002A  2066               	fcall	_CLR_BANK0_RAM
   297                           	line	33
   298                           	
   299  002B                     l1284:	
   300                           ;main.c: 33: CLR_BANK1_RAM();
   301  002B  2053               	fcall	_CLR_BANK1_RAM
   302                           	line	34
   303                           ;main.c: 34: WDT_Init();
   304  002C  206F               	fcall	_WDT_Init
   305                           	line	36
   306                           	
   307  002D                     l1286:	
   308                           ;main.c: 36: temp = 200;
   309  002D  30C8               	movlw	(0C8h)
   310  002E  00F3               	movwf	(_temp)
   311                           	line	37
   312                           ;main.c: 37: while(temp--)
   313  002F  2835               	goto	l845
   314                           	line	39
   315                           	
   316  0030                     l1288:	
   317                           ;main.c: 38: {
   318                           ;main.c: 39: PORTA = PORTA^0x0f;
   319  0030  300F               	movlw	(0Fh)
   320  0031  1283               	bcf	status, 5	;RP0=0, select bank0
   321  0032  1303               	bcf	status, 6	;RP1=0, select bank0
   322  0033  0685               	xorwf	(5),f	;volatile
   323                           	line	40
   324                           	
   325  0034                     l1290:	
   326                           # 40 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   327  0034  0064               clrwdt ;#
   328                           psect	maintext
   329                           	line	41
   330                           	
   331  0035                     l845:	
   332                           	line	37
   333  0035  03F3               	decf	(_temp),f
   334  0036  0873               	movf	((_temp)),w
   335  0037  3AFF               	xorlw	0FFh
   336  0038  1D03               	skipz
   337  0039  283B               	goto	u31
   338  003A  283C               	goto	u30
   339  003B                     u31:
   340  003B  2830               	goto	l1288
   341  003C                     u30:
   342                           	line	47
   343                           	
   344  003C                     l1292:	
   345                           ;main.c: 43: {
   346                           ;main.c: 47: PORTA = PORTA^0xf0;
   347  003C  30F0               	movlw	(0F0h)
   348  003D  1283               	bcf	status, 5	;RP0=0, select bank0
   349  003E  1303               	bcf	status, 6	;RP1=0, select bank0
   350  003F  0685               	xorwf	(5),f	;volatile
   351                           	line	49
   352                           	
   353  0040                     l1294:	
   354                           ;main.c: 49: DelayUs(1);
   355  0040  3001               	movlw	(01h)
   356  0041  205D               	fcall	_DelayUs
   357  0042  283C               	goto	l1292
   358                           	global	start
   359  0043  280A               	ljmp	start
   360                           	opt stack 0
   361                           psect	maintext
   362                           	line	51
   363                           GLOBAL	__end_of_main
   364  0044                     	__end_of_main:
   365 ;; =============== function _main ends ============
   366                           
   367                           	signat	_main,88
   368                           	global	_DelayUs
   369                           psect	text78,local,class=CODE,delta=2
   370                           global __ptext78
   371  005D                     __ptext78:
   372                           
   373 ;; *************** function _DelayUs *****************
   374 ;; Defined at:
   375 ;;		line 169 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   376 ;; Parameters:    Size  Location     Type
   377 ;;  delayUs         1    wreg     unsigned char 
   378 ;; Auto vars:     Size  Location     Type
   379 ;;  delayUs         1    2[COMMON] unsigned char 
   380 ;; Return value:  Size  Location     Type
   381 ;;		None               void
   382 ;; Registers used:
   383 ;;		wreg, status,2, status,0
   384 ;; Tracked objects:
   385 ;;		On entry : 60/0
   386 ;;		On exit  : 60/0
   387 ;;		Unchanged: FFF9F/0
   388 ;; Data sizes:     COMMON   BANK0
   389 ;;      Params:         0       0
   390 ;;      Locals:         1       0
   391 ;;      Temps:          0       0
   392 ;;      Totals:         1       0
   393 ;;Total ram usage:        1 bytes
   394 ;; Hardware stack levels used:    1
   395 ;; Hardware stack levels required when called:    1
   396 ;; This function calls:
   397 ;;		Nothing
   398 ;; This function is called by:
   399 ;;		_main
   400 ;; This function uses a non-reentrant model
   401 ;;
   402                           psect	text78
   403                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   404                           	line	169
   405                           	global	__size_of_DelayUs
   406  0009                     	__size_of_DelayUs	equ	__end_of_DelayUs-_DelayUs
   407                           	
   408  005D                     _DelayUs:	
   409                           	opt	stack 6
   410                           ; Regs used in _DelayUs: [wreg+status,2+status,0]
   411                           ;DelayUs@delayUs stored from wreg
   412  005D  00F2               	movwf	(DelayUs@delayUs)
   413                           	line	170
   414                           	
   415  005E                     l1276:	
   416                           ;main.c: 170: while(delayUs--);
   417                           	
   418  005E                     l1278:	
   419  005E  03F2               	decf	(DelayUs@delayUs),f
   420  005F  0872               	movf	((DelayUs@delayUs)),w
   421  0060  3AFF               	xorlw	0FFh
   422  0061  1D03               	skipz
   423  0062  2864               	goto	u21
   424  0063  2865               	goto	u20
   425  0064                     u21:
   426  0064  285E               	goto	l1278
   427  0065                     u20:
   428                           	line	171
   429                           	
   430  0065                     l869:	
   431  0065  0008               	return
   432                           	opt stack 0
   433                           GLOBAL	__end_of_DelayUs
   434  0066                     	__end_of_DelayUs:
   435 ;; =============== function _DelayUs ends ============
   436                           
   437                           	signat	_DelayUs,4216
   438                           	global	_WDT_Init
   439                           psect	text79,local,class=CODE,delta=2
   440                           global __ptext79
   441  006F                     __ptext79:
   442                           
   443 ;; *************** function _WDT_Init *****************
   444 ;; Defined at:
   445 ;;		line 69 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   446 ;; Parameters:    Size  Location     Type
   447 ;;		None
   448 ;; Auto vars:     Size  Location     Type
   449 ;;		None
   450 ;; Return value:  Size  Location     Type
   451 ;;		None               void
   452 ;; Registers used:
   453 ;;		wreg
   454 ;; Tracked objects:
   455 ;;		On entry : 0/0
   456 ;;		On exit  : 60/20
   457 ;;		Unchanged: FFE00/0
   458 ;; Data sizes:     COMMON   BANK0
   459 ;;      Params:         0       0
   460 ;;      Locals:         0       0
   461 ;;      Temps:          0       0
   462 ;;      Totals:         0       0
   463 ;;Total ram usage:        0 bytes
   464 ;; Hardware stack levels used:    1
   465 ;; Hardware stack levels required when called:    1
   466 ;; This function calls:
   467 ;;		Nothing
   468 ;; This function is called by:
   469 ;;		_main
   470 ;; This function uses a non-reentrant model
   471 ;;
   472                           psect	text79
   473                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   474                           	line	69
   475                           	global	__size_of_WDT_Init
   476  0008                     	__size_of_WDT_Init	equ	__end_of_WDT_Init-_WDT_Init
   477                           	
   478  006F                     _WDT_Init:	
   479                           	opt	stack 6
   480                           ; Regs used in _WDT_Init: [wreg]
   481                           	line	70
   482                           	
   483  006F                     l1272:	
   484                           # 70 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   485  006F  0064               clrwdt ;#
   486                           psect	text79
   487                           	line	73
   488                           	
   489  0070                     l1274:	
   490                           ;main.c: 73: OPTION_REG= 0b00001000;
   491  0070  3008               	movlw	(08h)
   492  0071  1683               	bsf	status, 5	;RP0=1, select bank1
   493  0072  1303               	bcf	status, 6	;RP1=0, select bank1
   494  0073  0081               	movwf	(129)^080h	;volatile
   495                           	line	82
   496                           ;main.c: 82: PCON = 0b10000000;
   497  0074  3080               	movlw	(080h)
   498  0075  008E               	movwf	(142)^080h	;volatile
   499                           	line	86
   500                           	
   501  0076                     l854:	
   502  0076  0008               	return
   503                           	opt stack 0
   504                           GLOBAL	__end_of_WDT_Init
   505  0077                     	__end_of_WDT_Init:
   506 ;; =============== function _WDT_Init ends ============
   507                           
   508                           	signat	_WDT_Init,88
   509                           	global	_CLR_BANK1_RAM
   510                           psect	text80,local,class=CODE,delta=2
   511                           global __ptext80
   512  0053                     __ptext80:
   513                           
   514 ;; *************** function _CLR_BANK1_RAM *****************
   515 ;; Defined at:
   516 ;;		line 150 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   517 ;; Parameters:    Size  Location     Type
   518 ;;		None
   519 ;; Auto vars:     Size  Location     Type
   520 ;;		None
   521 ;; Return value:  Size  Location     Type
   522 ;;		None               void
   523 ;; Registers used:
   524 ;;		None
   525 ;; Tracked objects:
   526 ;;		On entry : 0/0
   527 ;;		On exit  : 0/0
   528 ;;		Unchanged: FFE00/0
   529 ;; Data sizes:     COMMON   BANK0
   530 ;;      Params:         0       0
   531 ;;      Locals:         0       0
   532 ;;      Temps:          0       0
   533 ;;      Totals:         0       0
   534 ;;Total ram usage:        0 bytes
   535 ;; Hardware stack levels used:    1
   536 ;; Hardware stack levels required when called:    1
   537 ;; This function calls:
   538 ;;		Nothing
   539 ;; This function is called by:
   540 ;;		_main
   541 ;; This function uses a non-reentrant model
   542 ;;
   543                           psect	text80
   544                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   545                           	line	150
   546                           	global	__size_of_CLR_BANK1_RAM
   547  000A                     	__size_of_CLR_BANK1_RAM	equ	__end_of_CLR_BANK1_RAM-_CLR_BANK1_RAM
   548                           	
   549  0053                     _CLR_BANK1_RAM:	
   550                           	opt	stack 6
   551                           ; Regs used in _CLR_BANK1_RAM: []
   552                           	line	152
   553                           	
   554  0053                     l1270:	
   555                           # 152 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   556  0053  30BF                MOVLW (0x80 | 03FH) ;#
   557                           	line	153
   558                           # 153 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   559  0054  0084                MOVWF _FSR ;#
   560                           	line	154
   561                           # 154 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   562  0055  3020                MOVLW 020H ;#
   563                           	line	155
   564                           # 155 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   565  0056  00A0                MOVWF 020H ;#
   566                           	line	157
   567                           # 157 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   568  0057                      BANK1_RAM_CLR_LOOP: ;#
   569                           	line	158
   570                           # 158 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   571  0057  0180                CLRF _INDF ;#
   572                           	line	159
   573                           # 159 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   574  0058  0384                DECF _FSR,F ;#
   575                           	line	160
   576                           # 160 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   577  0059  0BA0                DECFSZ 020H,F ;#
   578                           	line	161
   579                           # 161 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   580  005A  2857                GOTO BANK1_RAM_CLR_LOOP ;#
   581                           	line	162
   582                           # 162 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   583  005B  0008                RETURN ;#
   584                           psect	text80
   585                           	line	164
   586                           	
   587  005C                     l863:	
   588  005C  0008               	return
   589                           	opt stack 0
   590                           GLOBAL	__end_of_CLR_BANK1_RAM
   591  005D                     	__end_of_CLR_BANK1_RAM:
   592 ;; =============== function _CLR_BANK1_RAM ends ============
   593                           
   594                           	signat	_CLR_BANK1_RAM,88
   595                           	global	_CLR_BANK0_RAM
   596                           psect	text81,local,class=CODE,delta=2
   597                           global __ptext81
   598  0066                     __ptext81:
   599                           
   600 ;; *************** function _CLR_BANK0_RAM *****************
   601 ;; Defined at:
   602 ;;		line 129 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   603 ;; Parameters:    Size  Location     Type
   604 ;;		None
   605 ;; Auto vars:     Size  Location     Type
   606 ;;		None
   607 ;; Return value:  Size  Location     Type
   608 ;;		None               void
   609 ;; Registers used:
   610 ;;		None
   611 ;; Tracked objects:
   612 ;;		On entry : 17F/0
   613 ;;		On exit  : 0/0
   614 ;;		Unchanged: FFE00/0
   615 ;; Data sizes:     COMMON   BANK0
   616 ;;      Params:         0       0
   617 ;;      Locals:         0       0
   618 ;;      Temps:          0       0
   619 ;;      Totals:         0       0
   620 ;;Total ram usage:        0 bytes
   621 ;; Hardware stack levels used:    1
   622 ;; Hardware stack levels required when called:    1
   623 ;; This function calls:
   624 ;;		Nothing
   625 ;; This function is called by:
   626 ;;		_main
   627 ;; This function uses a non-reentrant model
   628 ;;
   629                           psect	text81
   630                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   631                           	line	129
   632                           	global	__size_of_CLR_BANK0_RAM
   633  0009                     	__size_of_CLR_BANK0_RAM	equ	__end_of_CLR_BANK0_RAM-_CLR_BANK0_RAM
   634                           	
   635  0066                     _CLR_BANK0_RAM:	
   636                           	opt	stack 6
   637                           ; Regs used in _CLR_BANK0_RAM: []
   638                           	line	131
   639                           	
   640  0066                     l1268:	
   641                           # 131 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   642  0066  305F                MOVLW 0X5F ;#
   643                           	line	132
   644                           # 132 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   645  0067  00A0                MOVWF 020H ;#
   646                           	line	133
   647                           # 133 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   648  0068  307F                MOVLW 0X7F ;#
   649                           	line	134
   650                           # 134 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   651  0069  0084                MOVWF _FSR ;#
   652                           	line	136
   653                           # 136 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   654  006A                      BANK0_RAM_CLR_LOOP: ;#
   655                           	line	137
   656                           # 137 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   657  006A  0180                CLRF _INDF ;#
   658                           	line	138
   659                           # 138 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   660  006B  0384                DECF _FSR,F ;#
   661                           	line	139
   662                           # 139 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   663  006C  0BA0                DECFSZ 020H,F ;#
   664                           	line	140
   665                           # 140 "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   666  006D  286A                GOTO BANK0_RAM_CLR_LOOP ;#
   667                           psect	text81
   668                           	line	142
   669                           	
   670  006E                     l860:	
   671  006E  0008               	return
   672                           	opt stack 0
   673                           GLOBAL	__end_of_CLR_BANK0_RAM
   674  006F                     	__end_of_CLR_BANK0_RAM:
   675 ;; =============== function _CLR_BANK0_RAM ends ============
   676                           
   677                           	signat	_CLR_BANK0_RAM,88
   678                           	global	_GPIO_Init
   679                           psect	text82,local,class=CODE,delta=2
   680                           global __ptext82
   681  000B                     __ptext82:
   682                           
   683 ;; *************** function _GPIO_Init *****************
   684 ;; Defined at:
   685 ;;		line 90 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   686 ;; Parameters:    Size  Location     Type
   687 ;;		None
   688 ;; Auto vars:     Size  Location     Type
   689 ;;		None
   690 ;; Return value:  Size  Location     Type
   691 ;;		None               void
   692 ;; Registers used:
   693 ;;		wreg, status,2
   694 ;; Tracked objects:
   695 ;;		On entry : 17F/0
   696 ;;		On exit  : 17F/0
   697 ;;		Unchanged: FFE80/0
   698 ;; Data sizes:     COMMON   BANK0
   699 ;;      Params:         0       0
   700 ;;      Locals:         0       0
   701 ;;      Temps:          0       0
   702 ;;      Totals:         0       0
   703 ;;Total ram usage:        0 bytes
   704 ;; Hardware stack levels used:    1
   705 ;; Hardware stack levels required when called:    1
   706 ;; This function calls:
   707 ;;		Nothing
   708 ;; This function is called by:
   709 ;;		_main
   710 ;; This function uses a non-reentrant model
   711 ;;
   712                           psect	text82
   713                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   714                           	line	90
   715                           	global	__size_of_GPIO_Init
   716  001E                     	__size_of_GPIO_Init	equ	__end_of_GPIO_Init-_GPIO_Init
   717                           	
   718  000B                     _GPIO_Init:	
   719                           	opt	stack 6
   720                           ; Regs used in _GPIO_Init: [wreg+status,2]
   721                           	line	91
   722                           	
   723  000B                     l1242:	
   724                           ;main.c: 91: OPTION_REG= 0b000000000;
   725  000B  1683               	bsf	status, 5	;RP0=1, select bank1
   726  000C  0181               	clrf	(129)^080h	;volatile
   727                           	line	99
   728                           	
   729  000D                     l1244:	
   730                           ;main.c: 99: PCON = 0b00100000;
   731  000D  3020               	movlw	(020h)
   732  000E  008E               	movwf	(142)^080h	;volatile
   733                           	line	105
   734                           	
   735  000F                     l1246:	
   736                           ;main.c: 105: PORTA = 0b00000000;
   737  000F  1283               	bcf	status, 5	;RP0=0, select bank0
   738  0010  0185               	clrf	(5)	;volatile
   739                           	line	106
   740                           	
   741  0011                     l1248:	
   742                           ;main.c: 106: TRISA = 0b00000000;
   743  0011  1683               	bsf	status, 5	;RP0=1, select bank1
   744  0012  0185               	clrf	(133)^080h	;volatile
   745                           	line	107
   746                           	
   747  0013                     l1250:	
   748                           ;main.c: 107: PAHCON= 0b11111111;
   749  0013  30FF               	movlw	(0FFh)
   750  0014  0092               	movwf	(146)^080h	;volatile
   751                           	line	108
   752                           	
   753  0015                     l1252:	
   754                           ;main.c: 108: PADCON= 0b11111111;
   755  0015  30FF               	movlw	(0FFh)
   756  0016  0093               	movwf	(147)^080h	;volatile
   757                           	line	109
   758                           	
   759  0017                     l1254:	
   760                           ;main.c: 109: PAIC0 = 0b00000000;
   761  0017  0190               	clrf	(144)^080h	;volatile
   762                           	line	111
   763                           ;main.c: 111: PDCON = 0b11111111;
   764  0018  30FF               	movlw	(0FFh)
   765  0019  1283               	bcf	status, 5	;RP0=0, select bank0
   766  001A  008E               	movwf	(14)	;volatile
   767                           	line	112
   768                           ;main.c: 112: PDCON2= 0b11111111;
   769  001B  30FF               	movlw	(0FFh)
   770  001C  1683               	bsf	status, 5	;RP0=1, select bank1
   771  001D  0093               	movwf	(147)^080h	;volatile
   772                           	line	114
   773                           	
   774  001E                     l1256:	
   775                           ;main.c: 114: PORTB = 0b00000000;
   776  001E  1283               	bcf	status, 5	;RP0=0, select bank0
   777  001F  0186               	clrf	(6)	;volatile
   778                           	line	115
   779                           	
   780  0020                     l1258:	
   781                           ;main.c: 115: TRISB = 0b00000000;
   782  0020  1683               	bsf	status, 5	;RP0=1, select bank1
   783  0021  0186               	clrf	(134)^080h	;volatile
   784                           	line	116
   785                           	
   786  0022                     l1260:	
   787                           ;main.c: 116: PBIC0 = 0b00000000;
   788  0022  0191               	clrf	(145)^080h	;volatile
   789                           	line	117
   790                           	
   791  0023                     l1262:	
   792                           ;main.c: 117: WUCON = 0b00000000;
   793  0023  018F               	clrf	(143)^080h	;volatile
   794                           	line	118
   795                           	
   796  0024                     l1264:	
   797                           ;main.c: 118: ODCON = 0b00000000;
   798  0024  1283               	bcf	status, 5	;RP0=0, select bank0
   799  0025  018F               	clrf	(15)	;volatile
   800                           	line	119
   801                           	
   802  0026                     l1266:	
   803                           ;main.c: 119: PHCON = 0b11111111;
   804  0026  30FF               	movlw	(0FFh)
   805  0027  0090               	movwf	(16)	;volatile
   806                           	line	121
   807                           	
   808  0028                     l857:	
   809  0028  0008               	return
   810                           	opt stack 0
   811                           GLOBAL	__end_of_GPIO_Init
   812  0029                     	__end_of_GPIO_Init:
   813 ;; =============== function _GPIO_Init ends ============
   814                           
   815                           	signat	_GPIO_Init,88
   816                           	global	_myIsr
   817                           psect	text83,local,class=CODE,delta=2
   818                           global __ptext83
   819  0044                     __ptext83:
   820                           
   821 ;; *************** function _myIsr *****************
   822 ;; Defined at:
   823 ;;		line 19 in file "E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   824 ;; Parameters:    Size  Location     Type
   825 ;;		None
   826 ;; Auto vars:     Size  Location     Type
   827 ;;		None
   828 ;; Return value:  Size  Location     Type
   829 ;;		None               void
   830 ;; Registers used:
   831 ;;		None
   832 ;; Tracked objects:
   833 ;;		On entry : 0/0
   834 ;;		On exit  : 60/0
   835 ;;		Unchanged: FFF9F/0
   836 ;; Data sizes:     COMMON   BANK0
   837 ;;      Params:         0       0
   838 ;;      Locals:         0       0
   839 ;;      Temps:          2       0
   840 ;;      Totals:         2       0
   841 ;;Total ram usage:        2 bytes
   842 ;; Hardware stack levels used:    1
   843 ;; This function calls:
   844 ;;		Nothing
   845 ;; This function is called by:
   846 ;;		Interrupt level 1
   847 ;; This function uses a non-reentrant model
   848 ;;
   849                           psect	text83
   850                           	file	"E:\02-HS-DemoCode-Every\C_Code\HS16F1211_cCode\HS16F1211_WDT\main.c"
   851                           	line	19
   852                           	global	__size_of_myIsr
   853  000F                     	__size_of_myIsr	equ	__end_of_myIsr-_myIsr
   854                           	
   855  0044                     _myIsr:	
   856                           	opt	stack 6
   857                           ; Regs used in _myIsr: []
   858                           psect	intentry,class=CODE,delta=2
   859                           global __pintentry
   860  0004                     __pintentry:
   861                           global interrupt_function
   862  0004                     interrupt_function:
   863                           	global saved_w
   864  007E                     	saved_w	set	btemp+0
   865  0004  00FE               	movwf	saved_w
   866  0005  0E03               	swapf	status,w
   867  0006  00F0               	movwf	(??_myIsr+0)
   868  0007  080A               	movf	pclath,w
   869  0008  00F1               	movwf	(??_myIsr+1)
   870  0009  2844               	ljmp	_myIsr
   871                           psect	text83
   872                           	line	20
   873                           	
   874  0044                     i1l1238:	
   875                           ;main.c: 20: if(FT0IF)
   876  0044  1283               	bcf	status, 5	;RP0=0, select bank0
   877  0045  1303               	bcf	status, 6	;RP1=0, select bank0
   878  0046  1C0C               	btfss	(96/8),(96)&7
   879  0047  2849               	goto	u1_21
   880  0048  284A               	goto	u1_20
   881  0049                     u1_21:
   882  0049  284C               	goto	i1l842
   883  004A                     u1_20:
   884                           	line	22
   885                           	
   886  004A                     i1l1240:	
   887                           ;main.c: 21: {
   888                           ;main.c: 22: FT0IF = 0;
   889  004A  100C               	bcf	(96/8),(96)&7
   890                           	line	23
   891                           ;main.c: 23: PORTB = PORTB^0xff;
   892  004B  0986               	comf	(6),f	;volatile
   893                           	line	25
   894                           	
   895  004C                     i1l842:	
   896  004C  0871               	movf	(??_myIsr+1),w
   897  004D  008A               	movwf	pclath
   898  004E  0E70               	swapf	(??_myIsr+0)^0FFFFFF80h,w
   899  004F  0083               	movwf	status
   900  0050  0EFE               	swapf	saved_w,f
   901  0051  0E7E               	swapf	saved_w,w
   902  0052  0009               	retfie
   903                           	opt stack 0
   904                           GLOBAL	__end_of_myIsr
   905  0053                     	__end_of_myIsr:
   906 ;; =============== function _myIsr ends ============
   907                           
   908                           	signat	_myIsr,88
   909                           psect	text84,local,class=CODE,delta=2
   910                           global __ptext84
   911  0000                     __ptext84:
   912                           	global	btemp
   913  007E                     	btemp set 07Eh
   914                           
   915                           	DABS	1,126,2	;btemp
   916                           	global	wtemp0
   917  007E                     	wtemp0 set btemp


HI-TECH Software PICC Macro Assembler V9.83 build 10920 
Symbol Table                                                                                   Wed Jun 12 19:41:52 2024

                    u20 0065                      u21 0064                      u30 003C                      u31 003B  
                   l860 006E                     l845 0035                     l854 0076                     l863 005C  
                   l857 0028                     l869 0065                     _FSR 0004                    l1250 0013  
                  l1242 000B                    l1260 0022                    l1252 0015                    l1244 000D  
                  l1262 0023                    l1254 0017                    l1246 000F                    l1270 0053  
                  l1264 0024                    l1256 001E                    l1248 0011                    l1272 006F  
                  l1280 0029                    l1266 0026                    l1258 0020                    l1274 0070  
                  l1290 0034                    l1282 002A                    l1268 0066                    l1276 005E  
                  l1292 003C                    l1284 002B                    l1278 005E                    l1294 0040  
                  l1286 002D                    l1288 0030                    _INDF 0000                    _PCON 008E  
                  u1_20 004A                    u1_21 0049                    _main 0029                    _temp 0073  
                  btemp 007E                    start 000A      __size_of_GPIO_Init 001E         __end_of_DelayUs 0066  
                 ?_main 0070                   _FT0IF 0060                   _PAIC0 0090                   _PBIC0 0091  
                 _ODCON 000F                   _PDCON 000E                   i1l842 004C                   _PHCON 0010  
                 _PORTA 0005                   _PORTB 0006                   _TRISA 0085                   _TRISB 0086  
                 _WUCON 008F                   _myIsr 0044        __end_of_WDT_Init 0077                   pclath 000A  
                 status 0003                   wtemp0 007E            __end_of_main 0044                  ??_main 0073  
     BANK0_RAM_CLR_LOOP 006A       __end_of_GPIO_Init 0029                  ?_myIsr 0070                  _PADCON 0093  
                i1l1240 004A                  _PAHCON 0092                  i1l1238 0044                  _PDCON2 0093  
             ??_DelayUs 0072                  saved_w 007E          __pcstackCOMMON 0070   __end_of_CLR_BANK0_RAM 006F  
 __end_of_CLR_BANK1_RAM 005D           __end_of_myIsr 0053               ?_WDT_Init 0070          DelayUs@delayUs 0072  
     BANK1_RAM_CLR_LOOP 0057                 ??_myIsr 0070              __pnvCOMMON 0073              __pmaintext 0029  
            __pintentry 0004              ??_WDT_Init 0072                 _DelayUs 005D               _GPIO_Init 000B  
  end_of_initialization 0077              ?_GPIO_Init 0070       __size_of_WDT_Init 0008     start_initialization 0077  
           ??_GPIO_Init 0072  __size_of_CLR_BANK0_RAM 0009  __size_of_CLR_BANK1_RAM 000A                ?_DelayUs 0070  
        __size_of_myIsr 000F       interrupt_function 0004           _CLR_BANK0_RAM 0066           _CLR_BANK1_RAM 0053  
              _WDT_Init 006F        __size_of_DelayUs 0009          ?_CLR_BANK0_RAM 0070          ?_CLR_BANK1_RAM 0070  
              __ptext80 0053                __ptext81 0066                __ptext82 000B                __ptext83 0044  
              __ptext84 0000                __ptext78 005D                __ptext79 006F           __size_of_main 001B  
              intlevel1 0000         ??_CLR_BANK0_RAM 0072         ??_CLR_BANK1_RAM 0072              _OPTION_REG 0081  
