Searching \ for 'assembler question??' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=assembler+question
Search entire site for: 'assembler question??'.

Truncated match.
PICList Thread
'assembler question??'
1999\02\12@184617 by Stewart Pye

flavicon
face
Hi All,

I'm new to the list and happy to be here. I just moved to the pic from 8051
and am excited by the economical versatility provided by the pic. My Question:

I've seen code for the pic that includes 8051 type instructions like cjne,
djnz, jnb. Would this be for a specific assembler?? If so, what one? Or
would they just use macros. There was no definition included in the source
code. I find cjne to be very usefull. How do I go about using these
instructions??

Also, would you reccomend MPLAB with MPASM or is there someting better.


Thanks....

StewartPye

1999\02\15@064553 by Caisson

flavicon
face
> Van: Stewart Pye <spam_OUTstewTakeThisOuTspamUQ.NET.AU>
> Aan: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
> Onderwerp: assembler question??
> Datum: vrijdag 12 februari 1999 23:27
>
> Hi All,

Hello Stewart,

> I'm new to the list and happy to be here. I just moved to the pic from
8051
> and am excited by the economical versatility provided by the pic. My
Question:
>
> I've seen code for the pic that includes 8051 type instructions like
cjne,
> djnz, jnb. Would this be for a specific assembler?? If so, what one? Or
> would they just use macros. There was no definition included in the
source
> code. I find cjne to be very usefull. How do I go about using these
> instructions??

Your right on the track.  In MPASM you'll be using Macros for that.  I
personally won't use any macro that includes more than one instruction :
PIC's only have SKIP instructions handling flags and it's too easy to
_think_ you are skiping the whole next command where you in effect are only
skipping the first command of a set grouped together by a Macro ....

Greetz,
 Rudy Wieser

1999\02\15@065550 by Dr. Imre Bartfai

flavicon
face
Hi,
welcome in PIC world.
The answer to your question:
there is a 3rd party firm, called Parallax, Inc (http://www.parallaxinc.com).
They created a dialect for PIC assembly resembling 8051. Former I
criticized it but I retired as I learned to enjoy it and avoid the (very
small number of) pitfalls. This dialect is thus supported by the Parallax
assembler. However, you can define them as macros for MPASM. Or, mElabs
(maker of PIC Basic Pro, which is also fine) provides own assembler
(PM.EXE) with their compiler, and this supports also the so-called
"Parallax Instruction Set".
I hope this helps.
Imre


On Sat, 13 Feb 1999, Stewart Pye wrote:

{Quote hidden}

1999\02\16@034502 by Stewart Pye

flavicon
face
Hi,
Thanks for the replies to my previous question. I just wrote a test program
for my first pic project. I was amazed when I had so many errors and it was
because the register addresses were not defined. I had included
"p16f84.inc" but I had to do equates to define the registers (eg portb). Is
there another file I should be including for all the register definitions.
I'm reading all the microchip literature but there's so much to wade
through. Thanks in advance.....

Stewart Pye


At 12:45 15/02/99 +0100, you wrote:
{Quote hidden}

1999\02\16@040145 by g.daniel.invent.design

flavicon
face
Stewart,
MPASM IS CASE SENSITIVE HA HA HA ha ha ha

ie you must either type all register names in upper case, or leave caps
lock on.

regards,
Graham.

       LIST    P=16F84 ; PIC16F84 IS THE TARGET PROCESSOR

       INCLUDE "P16F84.INC"

       __CONFIG        _WDT_ON & _XT_OSC & _PWRTE_ON & _CP_ON


;USER REGISTERS>>>>bb_v2.1
       CBLOCK  0C

               PERIOD,FLOOR_STATUS,TFLG,TONE

               THOLD,W3,DEL_1,DEL_A,W2
       ENDC



Stewart Pye wrote:
{Quote hidden}

--
Steam engines may be out of fashion, but when you consider that an
internal combustion engine would require recovery of waste heat by
transfer just before top dead centre then fashion becomes rather
redundant, USE STRATIFIED HEAT EXCHANGERS ! and external combustion.

You heard it first from: Graham Daniel, managing director of Electronic
Product Enhancements.
Phone NZ 04 387 4347, Fax NZ 04 3874348, Cellular NZ 021 954 196.

1999\02\16@141246 by Harold Hallikainen

picon face
       There's an option to disable case sensitivity (though it still
seems to be case sensitive in MPLAB debug stuff, like setting
breakpoints, etc.).  In MPLAB, go to the project menu, select add/modify
compiler, and set the "extra default options" to /q /c- where /q enables
quiet mode (which I think Microchip set) and /c- turns off case
sensitivity.
       Pretty much all my code is in lower case, though I mix case on
long labels (instead of using an underscore to separate words in a
label).

Harold



Harold Hallikainen
haroldspamKILLspamhallikainen.com
Hallikainen & Friends, Inc.
See the FCC Rules at http://hallikainen.com/FccRules and comments filed
in LPFM proceeding at http://hallikainen.com/lpfm

On Tue, 16 Feb 1999 21:49:35 +1300 Graham Daniel <.....epeKILLspamspam.....PARADISE.NET.NZ>
writes:
{Quote hidden}

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

1999\02\17@004450 by Graeme Smith

flavicon
face
GRAEME SMITH                         email: EraseMEgrysmithspam_OUTspamTakeThisOuTfreenet.edmonton.ab.ca
YMCA Edmonton

Address has changed with little warning!
(I moved across the hall! :) )

Email will remain constant... at least for now.


On Tue, 16 Feb 1999, Stewart Pye wrote:

{Quote hidden}

The include file, does equates, for the ports, but, because the assembler
defaults to case-sensitive mode, the assembler doesn't recognize the port
names, when they are printed in a different case. try PORTA instead of
porta.

                               GREY

1999\02\17@071347 by Stewart Pye

flavicon
face
hi....

Thanks everyone for the help. I've figured out how to make mpasm and mplab
non case sensitive and some other "quirks" mplab has.

Regards
Stewart Pye




>The include file, does equates, for the ports, but, because the assembler
>defaults to case-sensitive mode, the assembler doesn't recognize the port
>names, when they are printed in a different case. try PORTA instead of
>porta.
>
>                                GREY
>

1999\02\17@085159 by hmiller

picon face
Stewart Pye wrote:
>
> hi....
>
> Thanks everyone for the help. I've figured out how to make mpasm and mplab
> non case sensitive and some other "quirks" mplab has.
>
> Regards
> Stewart Pye
>
> >The include file, does equates, for the ports, but, because the assembler
> >defaults to case-sensitive mode, the assembler doesn't recognize the port
> >names, when they are printed in a different case. try PORTA instead of
> >porta.
> >
> >                                GREY
> >
============================

Would you please pass on this 'how to'? I tried the disable option
suggested by Harold Hallikainen, but found no 'select add/modify
compiler' under the 'project' menu.

Harley L. Miller     hmillerspamspam_OUTsound.net

1999\02\17@092936 by John

flavicon
face
Hello PIC.ers,

erm, esp. actually Graham & Stewart.


{Quote hidden}

etc.

Usefully, it IS possible to disable case sensitivity.

This is my default editing mode, as I use casing conventions throughout the
source to help me with housekeeping.
Of course, these private rules of mine are completely at variance with
MPASM's whims, so I looked for, and eventually found the way to kill it.
It is obscurely detailed in my copy of the `MPASM User's Guide'  DS22014F
page14 `command line interface' defaults  chapter2.


in MPLAB,


<project>
<make setup>
in the `Extra Assembler Options' checkbox put        /c-
ok


happy PIC.ing

Best regards,   John

e-mail from the desk of John Sanderson, JS Controls.
Snailmail:          PO Box 1887, Boksburg 1460, Rep. of South Africa.
Tel/fax:            Johannesburg  893 4154
Cellphone no:   082 469 0446
email:                @spam@jsandKILLspamspampixie.co.za
Manufacturer & purveyor of laboratory force testing apparatus, and related
products and services.

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...