Basic variable and @ASM command


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Location
    France
    Posts
    97

    Default Basic variable and @ASM command

    Hello
    Hope that this question is not already covered in this nice forum !
    I've made some search without succes !
    question:
    Is there a way to "pass" a variable between a basic process
    ex : TOTO var byte
    and a @asm process that will get a byte from a DTMF integrated circuit
    ex : get DTMF_IN ...
    thanks in advance
    Francois

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink Reuteu ... etc.

    Hi, François

    Sorry, ... but it's worse !!! ... and an example is given in the Holy Bible ( the manual ...)

    see p. 180-181 $ 8.2 of the latest release ( or 177-178 of the "pbpm 304" )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default Oupps ....I forgot the book !

    Did I find the right sentence ?

    All symbol names defined in a PBC program are similarly defined in
    assembly, but with the name preceded with an underscore ( _ ). This
    allows access to user variables, constants, and even labeled locations, in
    assembly. Similarly, system variable (such as W0) names are also
    preceded by underscores (such as _W0).

    so my wonderfull TOTO var byte
    will be known by my ASM code as _TOTO ?

    life is wonderfull

    RTFM you said ! you are right !
    Francois

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Hi, François

    Just read a bit further ... the MOST important thing is HOW to define variables that can be used either by MPasm or PbP ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Hi F1CHF,
    in your PBP directory where you store your programs (the ones you have written and compiled) there will be files with the suffix .asm and the names of those programs, open one and compare to the basic versions, and see the answer to your question. A great way to learn assembly too . . .
    js
    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.

Members who have read this thread : 3

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