Jump to content

BASIC Tenliners Contest 2016


Recommended Posts

Guys, it's time for "the most wonderful time of the year" (Kevin Savetz in ANTIC) again!


This year's BASIC Tenliners Contest is starting now!

The rules changed slightly: now every 8 bit computer platform is allowed and every basic dialect is also allowed (but the authors may help us running their programs on an emulator). For details please look at the contest site: http://gkanold.wix.com/homeputerium#!basic-tenliners-2016/c450


  • Like 8
Link to comment
Share on other sites

Also, I found a bug in TBXL 1.5: certain long program lines crash it (lock up, or fill the listing with junk)


Just entering any one of these lines guarantees a crash for me. Any hints on avoiding this?


15 RN(1,0)=1:RN(1,1)=10:RN(2,0)=11:RN(2,1)=20:IN$="WolfGoatCabbage":IN(1,1)=1:IN(1,2)=4:IN(2,1)=5:IN(2,2)=8:IN(3,1)=9
15 RN(1,0)=1:RN(1,1)=10:RN(2,0)=11:RN(2,1)=20:IN$="WolfGoatCabbage":IN(1,1)=1:IN(1,2)=4:IN(2,1)=5:IN(2,2)=8
Link to comment
Share on other sites

Maybe define a variable for 0. e.g. 15 Z=0 : RN(1,Z)=1 ...


I'm not aware of a bug list for TBXL, might be worth a look around for one. The old Atari Basic move bug would manifest during program entry as well. A workaround is to change the order a bit or make the line different so as to not use the same amount of memory.

  • Like 1
Link to comment
Share on other sites

Hi Savetz,

This is quite annoying indeed. I suppose the tokenizer goes awry with too many bytes in line. Using %0 -- %3 in place of 0 - 3 helps a lot. For higher integers you can try using hex (10 A=$4), it takes more bytes though. The reason why it works better is "%1" takes much less bytes than "1" in a tokenized line.

Too bad it takes more characters than just "1", so it is not good for "PUR" categories.


This exact problem was my reason to scribble TBXL tokenizer. But mine is nothing in comparison to dmsc http://atariage.com/forums/topic/243394-basic-parsing-and-transformation-tool-new-version/?hl=%2Btbxl&do=findComment&comment=3352277. Go for it and destroy the contest this year :]

  • Like 1
Link to comment
Share on other sites

Unfortunately length is limited by characters entered rather than tokenized lines so the %1 saving doesn't help but means an extra character.

Yes, but it helps when TBXL generates broken lines - this is obviously a bug in TBXL.


Anyway, dmsc tool is the answer to this problem.

Edited by pirx
Link to comment
Share on other sites

Also, I forgot how to make a .atr rom. Can someone post directions on how to do that with Atari800WinPlus?


Do you want to program in Turbo BASIC XL or in ATARI BASIC?


Take this atr from archive.org: https://archive.org/download/a8b_Turbo_Basic_XL_1.5_1985_Ostrowski_Frank_a2


You can also use it if you want to program in ATARI BASIC. Then you only have to mount it and make a cold boot (Cold Reset).

If you want to use Turbo, you have to go to DOS with typing in "DOS" in the editor and then pressing "L" and entering "TURBOBAS.COM".

Link to comment
Share on other sites

I'm programming using Turbo Basic. Don't I have to save my program to the "computer" first?


If you are using TurboBASIC XL, you are already using an ATR image in the emulator. You can SAVE (or LIST) your program to that disk, or you can do it over a new disk. In ATARI80WinPLus you can "create" a new disk using the the Drive Selection popup. Activate it using Alt-D, then create a Single Density disk, naming it as the ATR you want. Then you have to mount it as drive D2: and format it using DOS from the same disk you've already booted.


Hope this helps...


I think it's nice that the people going to the event get to see them first - might encourage more to go ;)


I agree... The screenshots already published by Bunsen is enougth to give an idea of them. The rest should be a surprise!!!


.... or not? :?

Link to comment
Share on other sites

I disagree — I think positing code now can inspire and/or teach others before the end of the contest, encouraging other programmers to do more and better entries. You do what you want; I'm going to publicly post my programs and programming notes as I submit them.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...