Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: HEXhacker; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrik,

    That was it! I had my GOTO Mainloop after the dat: subroutine. I moved it up like you
    mentioned and it works.

    GOSUB dat 'last gosub dat

    GOTO MAINLOOP
    dat:
    RD =...
  2. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrick,

    Just saw your last post about the GOTO MAINLOOP
    You're saying to put it above the dat: subroutine and not below it like I
    have it now. I'll try it out.
    Thanks,
    Jim
  3. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrick,

    I see what you mean, I took the wrong example for what I wanted, messed with it and by pure luck
    it worked if I used it where/when I needed it and not used in a GOSUB!

    I tried your...
  4. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrick,

    I tried your suggestion and it still vapour locks after the fifth "play" start button push.

    This is from the PBPro manual:

    i = 0 They don't tell you "i" needs...
  5. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrick,

    Yes, sorry, RD is variable of pin PORTA.3
    The "RD[i] = 1" is from the PBP manual where I subbed RD for a PORTx.x pin in the original.
    I'll try your suggested change.
    Thanks,
    Jim
  6. Replies
    16
    Views
    8,264

    Re: Help with GOSUB

    Henrik, thanks for your reply.
    Yes, I am getting all of the 16bit data out of the CF card. With the REPEAT....UNTIL after each block data call (4x256)
    and with the GOSUB dat....RETURN used only...
  7. Replies
    16
    Views
    8,264

    Help with GOSUB

    Hi. First time post here. I'm using PIC Basic Pro, MPLAB ASSEM and a PIC16F870.
    Need some help with the GOSUB in my code.

    I'm telling a Compact Flash card that I want to read 256 sectors and then...
Results 1 to 7 of 7