SEROUT without modedefs.bas possible?


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default SEROUT without modedefs.bas possible?

    Hello.
    I'm running low on memory, so inclusion of modedefs.bas is not possible.

    All I need to do is to have simple statement like this

    Code:
     serout buz,t9600, [$7e,$ff,$06,$03,$00,$00,$03,$ef]
    Can I do it without modedefs.bas ?

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,803


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    Code:
     serout buz,2, [$7e,$ff,$06,$03,$00,$00,$03,$ef]
    Ioannis

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    Including (or not including) modedefs.bas makes no difference what so ever to the size of the code.

  4. #4
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    serout buz,2, [$7e,$ff,$06,$06,$00,$00,$1e,$ef] increases code size from 6549 to 6639 bytes for my particular code.
    but after I uncomment include modedefs.bas
    I'm starting to get the following errors:

    Bad BANK statement
    Bad variable request address 0

    If I reduce my code in size, then these errors go away.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,803


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    That is strange as the modedefs.bas file is just an alias file for the text to numbers aliasing. It should not interfere with the code size.

    As is the case with the common alias you do in your program, e.g.

    myval var adresh

    does not change the code size by any means.

    Ioannis

  6. #6
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    Yes and also modedefs.bas does not like variable named BRIGHT. It gives error, when I try to include modedefs.bas and use that variable

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


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    There's something else going on. Can you post the code?

  8. #8
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: SEROUT without modedefs.bas possible?

    It is about 7K compiled, so lots of code in it...

Similar Threads

  1. Is modedefs.bas still required for pbp3 ?
    By longpole001 in forum FAQ - Frequently Asked Questions
    Replies: 7
    Last Post: - 20th July 2014, 23:24
  2. Modedefs.bas
    By mrpeja in forum mel PIC BASIC
    Replies: 9
    Last Post: - 24th March 2010, 11:56
  3. Modedefs.bas
    By Richardco in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th November 2005, 09:58
  4. modedefs.bas
    By jrudd in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2005, 17:16
  5. Modedefs.bas
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2004, 22:47

Members who have read this thread : 2

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