Trying to make code smaller


Results 1 to 10 of 10

Threaded View

  1. #6


    Did you find this post helpful? Yes | No

    Default

    I've used this method. I used FINISHED instead of END just in case you want to add a line that begins the cycle over again with an input switch.


    X VAR BYTE
    CLEAR

    START:
    HIGH LED : PAUSEUS 50000 : LOW LED : PAUSEUS 50000 : LET X = (X + 1)
    IF X < 10 THEN START

    FINISHED:
    'IF PORTA.0 = 1 THEN CLEAR : GOTO START
    GOTO FINISHED
    Last edited by peterdeco1; - 2nd January 2009 at 14:53. Reason: GOOFED ON A LINE

Similar Threads

  1. Code doesn't work on 16F648A
    By Mr_Joe in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st September 2018, 22:09
  2. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  3. Can someone help me make a code for this:
    By joseph in forum mel PIC BASIC
    Replies: 0
    Last Post: - 29th April 2009, 18:58
  4. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26

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