Search found 3 matches

by Optimax
Mon Jun 11, 2018 12:59 pm
Forum: General Board
Topic: LBB Downloads
Replies: 2
Views: 6893

Re: LBB Downloads

I can see here some bad will and some hinder against LBB. For years. I dislike this. I was self banned from the French LB-site (now disappearing) for mentionning LBB. Why ? How ? Shame on them ! LBB is the best basic language for hobbyists, and I tried others which failed to work properly. Thus I'll...
by Optimax
Sun Jun 10, 2018 11:26 am
Forum: BASIC code examples
Topic: Some benchmarking about swapping two variables
Replies: 2
Views: 9027

Re: Some benchmarking about swapping two variables

Yet another swapping method, using XOR, used for decades, not very fast, but odd enough. x = 2 y = 3 PRINT "let x = "; x PRINT "let y = "; y PRINT '--- using < XOR > PRINT "now XOR-SWAP" PRINT t1 = TIME$("ms") FOR n = 1 TO 10001 x = x XOR y y = y XOR x x = x X...
by Optimax
Sat Jun 09, 2018 11:46 am
Forum: BASIC code examples
Topic: Some benchmarking about swapping two variables
Replies: 2
Views: 9027

Some benchmarking about swapping two variables

As I am not an api-coder nor a C nor ASM fanatic, I post this small code only for the fun and for basic-hobbyists's entertainment. I've read the arithmetic method somewhere, I can't remember where. Every better (basic) method of swapping is welcome, don't hesitate to post it, I'll be happy to add it...