How to avoid DIV32 command?


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: How to avoid DIV32 command?

    Quote Originally Posted by pxidr84 View Post
    Hi,

    I've PBP 2.60C, I didn't find any "long" variable. Where it is?
    Declare variables as so:
    MyByteVar Var Byte
    MyWordVar var WORD
    MyLongVar var Long

    Then in the view tab (of MCS) click compiler options and put a check in the checkbox marked use long.
    I think using LONG variables and compiler uses a bunch more memory though.
    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.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: How to avoid DIV32 command?

    Quote Originally Posted by Archangel View Post
    Declare variables as so:
    MyByteVar Var Byte
    MyWordVar var WORD
    MyLongVar var Long

    Then in the view tab (of MCS) click compiler options and put a check in the checkbox marked use long.
    I think using LONG variables and compiler uses a bunch more memory though.
    OUCH, I tested this, the program size passed from 8496 bytes to 10000 bytes.
    But I will try if it works.

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