The Godfather talking
This is god damn my place! Capisci?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 28, 2024, 09:07:28 09:07


Login with username, password and session length


Pages: [1]
Print
Author Topic: how to compile  (Read 3458 times)
0 Members and 1 Guest are viewing this topic.
riteshjain_82
Junior Member
**
Offline Offline

Posts: 88

Thank You
-Given: 31
-Receive: 33


« on: June 22, 2006, 09:47:58 09:47 »

hi to all
ok
i am facing a silly problem
i have a ASM file of pic 16f877 processor
but when i compile it with metlab or other pic asm assambler it show larger errors.
after checking the asm there are some confusion that
it uses .EQU but normal asm uses only equ
is this require onother kind of complier or something else

please help me


;PIC16F877-4, 3.2768MHz, WDT OFF, POR ON, XTAL XS

;Config register bits
; CP1 CP0 DBG NIL WRT CPD LVP BOR CP1 CP0 POR WDT OS1 OS0
;  1   1   1   1   1   1   0   0   1   1   0   0   0   1
;N.B. Logic 1/0 do NOT necessarily mean that the function is On/Off
;respectively - refer to PIC '87 data sheet.

#DEFINE PAGE0   BCF $03,5
#DEFINE PAGE1   BSF $03,5

    List P = PIC16F877, R=DEC;
        __CONFIG   h'3F31'

INDF:    .EQU $00  ;page 0, 1, 2, 3
OPTION:  .EQU $01  ;page 1, 3
PCL:     .EQU $02  ;page 0, 1, 2, 3
STATUS:  .EQU $03  ;page 0, 1, 2, 3
FSR:     .EQU $04  ;page 0, 1, 2, 3

PORTA:   .EQU $05  ;page 0
TRISA:   .EQU $05  ;page 1
PORTB:   .EQU $06  ;page 0, 2
TRISB:   .EQU $06  ;page 1, 3
PORTC:   .EQU $07  ;page 0
TRISC:   .EQU $07  ;page 1
PORTD:   .EQU $08  ;page 0
TRISD:   .EQU $08  ;page 1
PORTE:   .EQU $09  ;page 0
TRISE:   .EQU $09  ;page 1
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #1 on: June 22, 2006, 04:53:00 16:53 »

Hi!
I don't recognize the assembler... Is it freestanding ASM code or is it intermediate product from a high-level compiler(like C or Basic)?. What does the program do?  What is 'metlab'? My guess is that you're trying to compile a program that you don't know the origin of...
Logged

Code Warrior
riteshjain_82
Junior Member
**
Offline Offline

Posts: 88

Thank You
-Given: 31
-Receive: 33


« Reply #2 on: June 23, 2006, 09:56:14 09:56 »

No, actually it is project of PIC-controlled  Intruder Alarm published on EPE Magazine April 2002.
and the source code are alos available on http://ftp://ftp.epemag.wimborne.co.uk/pub/PICS/PICalarm
i have both hex and asm...

 but when i load the hex file into programmer it  shows error " line no 240 : invalid checksum"
 and also i am failed to compile the asm file.kindly  tell me to which tool to be required  to compile the asm file because it  couldn't compile with microchip metlab.

but...after serching on net i found that it is a TASM stuff..
but i am unable to understand it how to do..
i also write mail to EPE support but they haven't reply
kindly help me

 thanking you
 Ritesh Jain
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #3 on: June 23, 2006, 12:20:27 12:20 »

OK. this is TASM stuff. There are conversions between TASM amd Yr. favourite assembler. The code was probable written i late 90's and You have to manually adjust Yr. code to suit TASM, as long as You give us the full code(we won't snatch it!)
A while ago I tried to port TASM code to DEVC++ and back to HI-TECH and MPLAB. The trick was to write contemporary C code from Borland's ancient TASM. This project cought one of the serial ports and connected it to a VB6 GUI on the PC to reflect the outcome. Let me know how You're doing...
Logged

Code Warrior
riteshjain_82
Junior Member
**
Offline Offline

Posts: 88

Thank You
-Given: 31
-Receive: 33


« Reply #4 on: June 23, 2006, 04:23:53 16:23 »

thank you for efforts sir,
the code are free on the epe site ftp://ftp.epemag.wimborne.co.uk/pub/PICS/PICalarm
i.e. "alarm415.asm"

but stilll i am posting the code kindly help me...


Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC