Search results

  1. B

    Clear screen cls

    In gw basic, cls does exactly that. Picaxe basic doesn't seem to support cls, although cr and lf are supported. Is there a work around?
  2. B

    Recursion

    Inglewoodpete - now I see your point. My code was extremely clumsy, and I now see why it increments by 2. I guess I was trying to come to grips with recursion and overlooked the obvious. Tks.
  3. B

    Recursion

    Howdy inglewoodpete. Your last paragraph confuses me. I ran it again on the simulator and watched b1 increment by 1 each loop to 11dec, whereby the flash jump occurred. Am I missing a point here? I.e. b1=b1+1.
  4. B

    Recursion

    Thanks guys. As 'recursion' from its Latin root seems to mean 'to go back', then as far as a Picaxe program is concerned, and taking into account the replies above, I guess I'll have to content myself with my second example above, which bpowell seemed to think met the criterion for recursion...
  5. B

    Recursion

    Thanks bpowell. Yeah, I figured it' a loop, but I thought it's also recursive. I understand Fibonacci sequence, but not c++.. So if I reformat my previous code to: B1=0 Begin: B1=b1+1 If b1=<10 then GOTO begin If b1>10 then GOTO flash (followed by the 'flash' routine) Does this then...
  6. B

    Recursion

    Hi Folks. I want to come to grips with recursion, but I am unable to find a clear explanation. The best I have been able to come up with, as applied to programming, is "a program that calls itself". So is the following code an example of recursion? B1=0 Begin: For b1=1 to 10...
  7. B

    'BRANCH' COMMAND

    Hi Guys... In attempting to come to grips with the BRANCH function (Pt 2, P42), I'm having problems with the example listed. 1. It appears to me that as b1 is initially set to 0 in 'reset1' and is incremented in 'main', then b.0 can never go high, as on the first pass, b1 will inc to 1...
  8. B

    Opening PE6 Full Screen

    Another thought. I suppose you are set up as Administrator on your machine? Won't allow you to change settings unless you are. Bit obvious, I suppose. Ben Baker
  9. B

    Opening PE6 Full Screen

    Hello Micrometal. Your results are most strange. I set my shortcut to minimise and got the expected reduced size screen (subjectively 80%), then set it to maximise and got a full screen opening, so everything works as expected. Sorry, can't help anymore. See if you can illicit a...
  10. B

    The mystery of "bit banging"

    Hiya Gramps. Try wading through the Wikipedia results relating to 'bitbanging'... When read in conjunction with the foregoing, you'll probably see how it fits in, particularly with Hippy's comments above. Ben Baker .
  11. B

    Opening PE6 Full Screen

    Hello Micrometal. Hippy's suggestion (worked for me) was to click on the Picaxe icon on the desktop, select 'properites', click on the 'short cut' tab at the top, select 'run' then 'maximise', then 'apply' (lower right of the screen) then 'ok'. Whilst I haven't had the necessity to try it...
  12. B

    Opening PE6 Full Screen

    Don't worry about it guys. Thanks for reading anyway. The solution was provided some years ago by, of course, Hippy. Strange I couldn't find it in a search. Ben Baker
  13. B

    Opening PE6 Full Screen

    Hi Folks.. Seem to recall there was an easy fix to open PE6 in full screen mode in a previous thread, but a search didn't reveal it. My problem is that no matter what I try, including shutting down from full screen, reloading the editor still comes up as a reduced size. Nor does there...
  14. B

    For AllyCat - Code Snippet

    Papa of 2 ..... With some trepidation I applied your technique to WordPad rather than Notepad and after some adjustment to margins etc, it worked a treat, so thankyou. Alleycat, if you're reading this, please disregard my last. Ben Baker
  15. B

    For AllyCat - Code Snippet

    Hi AllyCat. You were kind enough to send (me) a dissertation on PE5/6 random number generation. My problem now is trying to print it - my equipt (XP) only seems to want to print page 1 of a 2 page doc - page 2 is blank. I can produce it all on one page only by reducing to 45%, which is...
  16. B

    Random Number Generation

    Hello again Flenser. Used PE6 and modified the action line to >50 and got exactly the same results as you. I don't like PE6, but it seems that I'll have to us it from here on in (I also prefer carburetted engines rather than fuel injected). Alley Cat sent me a snippet which explains a lot...
  17. B

    Random Number Generation

    Hi Flenser. I'm not doing anything clever with the code - just testing it out. I ran it 3 times and got - 137,15 (stopped), 111,43 (stopped) and 185,197,30 (stopped). I also modified the code using sertxd and got similar results on the output screen(of course). Also checked an...
  18. B

    Random Number Generation

    Hi Folks. In tinkering with the RANDOM function, I have found that the results I've produced with the simulator seem to be at variance with the detail on p.177 of the Manual. I used the following listing : main: ;08M2, Editor 5.5.5, XP platform ( I'm more comfortable with PE5 than...
  19. B

    'RANDOM' Problem

    Hmmm. That did it . Thanks again Ben Baker
  20. B

    'RANDOM' Problem

    Thankyou. One should always be specific! I should have said 'no specific mention of TIME or TIMER in the Contents'. I take the mild rebuke re number of mentions of time/timer in the spirit it was intended! So did your boilerplate search also indicate page nos, and if so, how did you...
Top