Is modedefs.bas still required for pbp3 ?


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default Is modedefs.bas still required for pbp3 ?

    just looking to trim stuff from programs that may not have the need for the files and wondered if the modedefs.bas is required for pbp3 still ?

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,585


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    I'm still on 2.60C and haven't used it.

    Robert

    EDIT: When I use a segment of code that uses it, I just copy the specific variables in my program.

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


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    Modedefs.bas is just a file full of alias s and is not required at all. You could write the particular alias or just learn which mode to use, or look it up.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    i have included it for shiftin/out and some serial stuff , adding the alisis can be done in the program , but by including it does the same , but if pbp3 has these built in then i can drop the alias lists

  5. #5
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    Quote Originally Posted by longpole001 View Post
    i have included it for shiftin/out and some serial stuff , adding the alisis can be done in the program , but by including it does the same , but if pbp3 has these built in then i can drop the alias lists
    From the manual for PBP3

    The Mode names (e.g. MSBPRE) are defined in the file MODEDEFS.BAS. To use them, add the line:
    Include "modedefs.bas"
    to the top of the PICBASIC PRO program.
    which tells us that they are not included in PBP3. As Archangel said in #3 use the mode numbers instead of the mode alias to save space.

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


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    I am not certain using the mode numbers will change the size of the compiled code by much or any, it will reduce the source code size. I simply have not compared them.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    Hi,
    The file does not contain any runtime code what so ever. Including it does in no way change the size of generated .hex file so there's nothing to be gained by not including it if you're aiming to reduce the footprint of the actual .hex

    /Henrik.

  8. #8
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Is modedefs.bas still required for pbp3 ?

    thanks guys

Similar Threads

  1. Modedefs.bas
    By mrpeja in forum mel PIC BASIC
    Replies: 9
    Last Post: - 24th March 2010, 12:56
  2. Modedefs.bas
    By Richardco in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th November 2005, 10:58
  3. modedefs.bas
    By jrudd in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2005, 18:16
  4. Modedefs.bas
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2004, 23:47
  5. Help Required
    By lester in forum Forum Requests
    Replies: 2
    Last Post: - 19th July 2003, 23:16

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