Forgot the test2.asm file created with the testInstall sdcc

    - Don

;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.9.2 #11327 (Linux)
;--------------------------------------------------------
; PIC port for the 14-bit core
;--------------------------------------------------------
;       .file   "test2.c"
        list    p=16f1825
        radix dec
        include "p16f1825.inc"
;--------------------------------------------------------
; config word(s)
;--------------------------------------------------------
        __config _CONFIG1, 0x1
        __config _CONFIG2, 0x1
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
        extern  _INTCONbits
        extern  __sdcc_gsinit_startup
;--------------------------------------------------------
; global declarations
;--------------------------------------------------------
        global  _main

        global STK15
        global STK14
        global STK13
        global STK12
        global STK11
        global STK10
        global STK09
        global STK08
        global STK07
        global STK06
        global STK05
        global STK04
        global STK03
        global STK02
        global STK01
        global STK00

sharebank udata_ovr 0x0070
STK15   res 1
STK14   res 1
STK13   res 1
STK12   res 1
STK11   res 1
STK10   res 1
STK09   res 1
STK08   res 1
STK07   res 1
STK06   res 1
STK05   res 1
STK04   res 1
STK03   res 1
STK02   res 1
STK01   res 1
STK00   res 1

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------
;--------------------------------------------------------
; initialized absolute data
;--------------------------------------------------------
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;       udata_ovr
;--------------------------------------------------------
; reset vector 
;--------------------------------------------------------
STARTUP code 0x0000
        nop
        pagesel __sdcc_gsinit_startup
        goto    __sdcc_gsinit_startup
;--------------------------------------------------------
; code
;--------------------------------------------------------
code_test2      code
;***
;  pBlock Stats: dbName = M
;***
;has an exit
;; Starting pCode block
S_test2__main   code
_main:
; 2 exit points
        
        bcf     _INTCONbits,7 ; disableIntr() 
        btfsc   _INTCONbits,7 
        goto    $-2 
        
        
        bsf     _INTCONbits,7 ; enableIntr() 
        
;       .line   26; "test2.c"   }
        RETURN  
; exit point of _main


;       code size estimation:
;           1+    0 =     1 instructions (    2 byte)

        end



_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to