MCS 3.0.0.5 'bytes used' report sometimes inaccurate.


Results 1 to 9 of 9

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Can't say if it's just you or not, but ...

    I get the exact opposite.

    Whatever I do, everything compiles to an Even number of bytes.
    The number is reported by MPASM. MCS just passes it along.

    Thought maybe there could be a problem when things go over 65535, so I made a quick test program that just uses however many NOP's you want to suck up program space.

    It always reports the correct number of bytes, +4-6 that PBP adds.
    Code:
    ASM
    UseSpace  macro Words
         variable HighLoop = high(Words)
         while HighLoop > 0
             variable LowLoop = 255
             while LowLoop > 0
                 nop
                 variable LowLoop = LowLoop - 1
             endw
             nop
             variable HighLoop = HighLoop - 1
         endw
         variable LowLoop = low(Words)
         while LowLoop > 0
             nop
             variable LowLoop = LowLoop - 1
         endw
      endm
    ENDASM
    
    @  UseSpace  33000
    Maybe you can try it to see if the results are different.

    Are you using an @ db xx anywhere?
    <br>
    Last edited by Darrel Taylor; - 12th April 2008 at 02:20.
    DT

Similar Threads

  1. bytes compressed and encrypted
    By RAYMON in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd March 2009, 11:24

Members who have read this thread : 0

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