Image Map Image Map
Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: LDOS (LBASIC) Help

  1. #1

    Default LDOS (LBASIC) Help

    Hi Guys:

    I am beginning the process of converting one of my QuickBasic programs (this was DOS on a later Tandy 1000 machine) to LBASIC.

    Some of the commands that I am sure are going to be unecessary are 'KEY OFF" since that dealt with the function key map on the QB editor and screens. But there are few that might need a BASIC to BASIC translation... here is a list of a few that I know I need to find equivalent commands for:

    LOCATE -- used to position a string on the screen given the line number and column number (eg LOCATE 1, 25 yeilds the start character is at ROW 1 and COL 25 on the screen.)

    CHR$(x) gives the character that X represents (eg on QB CHR$(205) yeilds a "-" on the screen)

    Need to generate a random number, in QB RANDOMIZE TIMER and then a statement like I= INT(15 * RND) +1 gives us a number between 1 and 15.

    There may be others as I get into it, but those are the "biggies" for now.

    Help is appreciated, as always.

    Mike

    ALSO: How do I save the BASIC file to my :1 drive. I have a data disk on that place and tried SAVE":1 EXAMPLE/BAS", A and it did not like the file name.
    Last edited by irishmike; August 17th, 2010 at 11:16 AM. Reason: Forgot to ask a silly question
    --
    Seeking models for vintage collection always.

  2. #2
    Join Date
    Sep 2008
    Location
    SE MI
    Posts
    3,970
    Blog Entries
    6

    Default

    Mike:


    Try this link - http://www.fileguru.com/apps/q_basic_software. There's a lot of stuff here so you might get lucky.

  3. #3

    Default

    I suppose I should be very specific, I am trying to go from QBASIC to BASIC under LDOS. I appreciate the reply, but not L-BASIC, This is the version that comes with LDOS 5.1.3 that I am working with. It is possible that I want to use another flavor of BASIC, but I figure it should have some equivalences for positioning things on the screen at least.
    --
    Seeking models for vintage collection always.

  4. #4

    Default

    Check out Tim Mann's site:

    http://www.tim-mann.org/misosys.html

    Scroll down about half-way and you should see some information on LDOS 5.3.1. The BASIC manual should be in there. Sorry I can't be more helpful, I've never worked with LDOS 5.3.1 before. Hope this helps!
    Remember, no matter where you go... there you are!

  5. #5

    Default

    Hello guys. It looks like the BASIC that comes with LDOS is quite limited. Maybe there is another better BASIC out there for the TRS-80? I mean no support for TAB() even... I guess that screen placement was not important in LBASIC. So I am open for suggestions on what BASIC to use and naturally where to get it.

    Thanks,

    Mike
    --
    Seeking models for vintage collection always.

  6. #6

    Default

    I believe there is either locate or print @ in lbasic. I just need to boot up one of the machines and check it out. There are also basic compilers (bascom) for the model 4.

  7. #7

    Default

    @kb2syd: If they are in there, they are not documented well. Both the LBASIC manual and the LDOS manual and the online help on the LDOS bootable disk don't cover the variations at all. So if you find them, I would like to know how the syntax looks.

    Thanks.
    --
    Seeking models for vintage collection always.

  8. #8

    Default

    Assuming the BASIC in LDOS BASIC is a superset of the original Tandy/Microsoft Level II BASIC, then PRINT@ is used instead of LOCATE. I'd be suprised if PRINT TAB is missing as this is a part of Level II BASIC?

    Tez
    ------------------------------------------------
    My vintage collection: https://classic-computers.org.nz/collection/
    My vintage activities blog: https://www.classic-computers.org.nz/blog/
    Twitter: @classiccomputNZ ; YouTube Videos: (click here)


  9. #9

    Default

    Hi Tez:

    I tried PRINT @X; "statement" and got a syntax error. tried tab, not print tab... same thing... so not sure on that. Does the syntax need to be PRINT@ X instead and how would one format the number... I read that the it is something like 64*row + column.

    Thanks,

    Mike
    --
    Seeking models for vintage collection always.

  10. #10

    Default

    As a follow up to my previous post see
    http://www.trs-80.com/wordpress/info...anguage/#PRINT@
    ------------------------------------------------
    My vintage collection: https://classic-computers.org.nz/collection/
    My vintage activities blog: https://www.classic-computers.org.nz/blog/
    Twitter: @classiccomputNZ ; YouTube Videos: (click here)


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •