Hilfe bei Picbasic


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    zugvogel1's Avatar
    zugvogel1 Guest

    Exclamation Hilfe bei Picbasic

    Habe folgendes Problem....

    Kann ich diese daten die im ASM......ENDASM stehen auch gleich zeitig noch in anderen Basicvariablen speichern zur weiteren Verarbeitung.

    ASM
    R_PORTA equ 20h
    R_DATEN equ 22h
    R_DATA equ 24h
    ENDASM

    z.B in

    S_PORTA var Byte
    S_DATEN var Byte
    S_DATA var Byte

    Also die sollen dann gleich sein...

    R_DATEN = S_DATEN

    usw

    vielen Dank im Voraus
    Frank

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Read chapter 8 of the PicBasic Pro manual. (PDF file).
    Chapter 8 = Assembly Language Programming

    From the manual:

    "If variables are to be shared between assembly and PBP, you must define
    the variables in PBP".

    Luciano

  3. #3
    zugvogel1's Avatar
    zugvogel1 Guest


    Did you find this post helpful? Yes | No

    Exclamation

    Danke

    hat alles soweit funktioniert außer bei den Port zuweisungen.
    z.b.....
    ASM

    A_X1 equ d'1' ; Port A0, X1
    A_X2 equ d'0' ; Port A1, X2
    A_X3 equ d'7' ; Port A7, X3
    A_X4 equ d'6' ; Port A6, X4
    A_X5 equ d'5' ; Port A5, X5
    A_X6 equ d'4' ; Port A4, X6
    A_X7 equ d'3' ; Port A3, X7
    A_X8 equ d'2' ; Port A2, X8

    ENDASM

    Gibts dafür wieder einen anderen Befehl als DEFINE

    dank schon mal im vorraus
    Frank

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Have have I missed an announcement, is the the new forum language german ?
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  5. #5
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    OK,

    just define your variables in PBP !!!!!!!!!!!!!!!!!!!!!!!!!

    You can access them inside the ASM-ENDASM-Part by using a _ in front of the names !
    Or you define the variables in PBP with the option "system" to adress the variables without _ in ASM-ENDASM-Parts.

    Mayby it is helpful to read the sample-programs in this forum or to use the search-function !

    BTW: Use english language in this forum, so you can achieve better support by the MODs!
    I'm from German too !

Similar Threads

  1. Replies: 22
    Last Post: - 12th July 2005, 17:39
  2. help
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th February 2005, 20:42
  3. Need once your help one please
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th February 2005, 20:33
  4. PicBasic Fundamentals
    By Billyc in forum General
    Replies: 9
    Last Post: - 4th May 2004, 10:04
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

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