macros tutoria


Closed Thread
Results 1 to 2 of 2

Thread: macros tutoria

  1. #1
    asterix's Avatar
    asterix Guest

    Default macros tutoria

    Hi,

    Thanks for read my question. I want to program some macros for mi own picbasic programs, but I don't know how to declare it an in which types of files included (*.INC; *.ASM; *.BAS), if anyone knows some tutorial o where get some information, i will be very gracefull.

    Thanks

  2. #2
    EDWARD's Avatar
    EDWARD Guest


    Did you find this post helpful? Yes | No

    Default macro

    what do you mean macro?

    you can use subroutines to execute differnt things.

    program code idea *this is not a program
    '---------------------------------------------------
    GOSUB light
    PAUSE 1000 '1 sec

    GOSUB motor
    PAUSE 1000

    END


    light:
    high portb.0 'energize LED on pin portb.0
    RETURN 'go back to line just below GOSUB light

    motor:
    high portb.1 ' energize MOTOR on pin portb.1
    RETURN 'go back to line just below GOSUB motor

    '--------------------------------------------------------

    or do you mean like the configuration file?

Similar Threads

  1. macro's
    By tiger_bel in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th October 2007, 22:40
  2. Schematic Drawing Programs
    By fowardbias in forum Off Topic
    Replies: 4
    Last Post: - 3rd April 2007, 15:38
  3. Assembly Macros
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th March 2006, 21:02
  4. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

Members who have read this thread : 1

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