Little grammer lesson needed


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default Little grammer lesson needed

    Greetings Everybody,
    Minor syntax issue, I wish to place this code in my program, it is 104 charactors long and the page is only 80 charactors. How do I continue a line of assembly code to wrap into the next line?
    @ __config _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF & _BODEN_OFF & _DATA_CP_OFF

    I RTFM but CFNA (can find no answer)
    thank you again
    Joe

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    unfortunatly, you'll have to live with it. I don't remeber there's a way to do it with MPASM __CONFIG... well directly...

    You can Still write the numeric value.. but it's unreadable and a pain to change later

    PBP @ DEVICE allow to use multiple lines.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Something like this might work
    Code:
    @MyConfig = _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _LVP_OFF 
    @MyConfig = MyConfig  & _CP_OFF & _BODEN_OFF & _DATA_CP_OFF
    @ __config  MyConfig
    DT

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Talking

    That's what i meant by 'I don't remember there's a way to do it with MPASM __CONFIG... well directly... "

    AND YES, i confirm IT'S working... Darrel beat me ... once again

    <img src="http://www.mister-e.org/Pics/RollinEyes.gif">
    Last edited by mister_e; - 23rd November 2006 at 08:12.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Coooool

    You Da Man Darrel !
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1213&stc=1&d=116427269 8">
    Attached Images Attached Images  

Similar Threads

  1. ASCII Viewer Needed
    By sougata in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th January 2008, 05:29
  2. Code space needed with MPASM??
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th September 2007, 10:24
  3. Programers Needed Still !
    By picawiner in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th June 2007, 13:51
  4. Newbee Hardware PWM clarification needed
    By emmett brown in forum General
    Replies: 3
    Last Post: - 9th July 2006, 09:18
  5. Circuit needed to allow a PIC to turn something on or off
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th October 2005, 21:17

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts