Author Topic: Basic coding ide  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

Offline tjohnson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 988
  • Country: gb
    • index.php?action=treasury
  • Liked: 310
  • Likes Given: 281
Basic coding ide
« on: 17:26, 19 August 17 »
Hi all i was coding a simple game in loco basic yesterday on winape.  It now probably runs to a hundred or so lines and quite difficult to edit and follow being basic and unstructured.  Are there any simple tools or ide to make coding faster and easier?  In winape it seemed possible to bring the basic into the assembler view but not edit and run.  I will share my creation when finished even though its pretty basic and a bit rubbish!  Cheers all Trevor

Sent from my E5823 using Tapatalk


Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 634
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 634
  • Likes Given: 368
Re: Basic coding ide
« Reply #1 on: 23:01, 19 August 17 »
you may have a look at http://cpcbasic.webcindario.com/CPCBasicEn.html

I did most of  my adventure conversions in "notepad++" with some "basic" highlighting, and dtehn coyp paste it to winape with "autotpye" in "fast emulation mode"

ctrl-f5 or ctrl-f11 with shift-f4 activated

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1157
  • Likes Given: 1924
Re: Basic coding ide
« Reply #2 on: 00:52, 20 August 17 »
I try and make my programs look as readable as possible with single commands per line unless they relate.

I also:
  • use mostly loops and indent those lines to reflect what's happening within them (I find it makes a big difference to the programs readability).
  • avoid using GOTO as much as possible.
  • Print the entire program out onto an old tree (if I have scrap paper I use it), because I find having the entire program in front on me on paper makes a difference instead of trying to read a program by scrolling up and down all the time, though the way I go about printing the program out is truly unconventional and I don't expect anyone to follow it.

* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline tjohnson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 988
  • Country: gb
    • index.php?action=treasury
  • Liked: 310
  • Likes Given: 281
Re: Basic coding ide
« Reply #3 on: 01:05, 21 August 17 »
Thanks chaps that was pretty much my thoughts about the best way to code.  Printing is definitely an option, I even have a nice 9 pin dot matrix and some continuous paper to keep it old skool.
« Last Edit: 01:08, 21 August 17 by tjohnson »

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1157
  • Likes Given: 1924
Re: Basic coding ide
« Reply #4 on: 12:54, 21 August 17 »
I envy you! All printers should be made to sound like a Dot-matrix.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 634
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 634
  • Likes Given: 368
Re: Basic coding ide
« Reply #5 on: 23:04, 21 August 17 »
Thanks chaps that was pretty much my thoughts about the best way to code.  Printing is definitely an option, I even have a nice 9 pin dot matrix and some continuous paper to keep it old skool.

I still have my DMP2000 around and  a lot of endless paper - but no more ink for it and dunno how to use it with my modern pc :)

Offline Sykobee (Briggsy)

  • 6128 Plus
  • ******
  • Posts: 821
  • Country: gb
  • Liked: 313
  • Likes Given: 480
Re: Basic coding ide
« Reply #6 on: 23:43, 21 August 17 »
Well it's a standard parallel port ... and maybe somewhere you can get one of those ribbon re-inker sprays?

Offline EgoTrip

  • 6128 Plus
  • ******
  • Posts: 1.058
  • Country: gl
    • http://egochip.blogspot.co.uk/
  • Liked: 704
  • Likes Given: 304
Re: Basic coding ide
« Reply #7 on: 00:55, 22 August 17 »
I try and make my programs look as readable as possible with single commands per line unless they relate.

I also:
  • use mostly loops and indent those lines to reflect what's happening within them (I find it makes a big difference to the programs readability).
  • avoid using GOTO as much as possible.
  • Print the entire program out onto an old tree (if I have scrap paper I use it), because I find having the entire program in front on me on paper makes a difference instead of trying to read a program by scrolling up and down all the time, though the way I go about printing the program out is truly unconventional and I don't expect anyone to follow it.


Doesn't using spaces to indent lines eat up memory though? With long programs, every byte counts.
EgoTrip's Stuff
EgoTrip's Stuff

Offline tjohnson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 988
  • Country: gb
    • index.php?action=treasury
  • Liked: 310
  • Likes Given: 281
Re: Basic coding ide
« Reply #8 on: 11:00, 22 August 17 »

Doesn't using spaces to indent lines eat up memory though? With long programs, every byte counts.
That's a good question my program is 6k on disk at they moment,  i have put a number of contents into the program Rem which i would assume uses some memory even if the interpreter ignores them.  i also moved the code out to notepad ++ and edited in there before autotyping back into winape which worked quite well.   Spent over an hour trying to fix a bug but can't work out why a piece of course isn't working but have given up a slept on it.

Sent from my E5823 using Tapatalk


Offline tjohnson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 988
  • Country: gb
    • index.php?action=treasury
  • Liked: 310
  • Likes Given: 281
Re: Basic coding ide
« Reply #9 on: 11:08, 22 August 17 »
I still have my DMP2000 around and  a lot of endless paper - but no more ink for it and dunno how to use it with my modern pc :)
Get a usb to parallel port cable if your computer doesn't have a parallel port, ribbons are probably easily available on ebay or Amazon and i expect an Epson driver in windows will work, assuming you are on Windows

Sent from my E5823 using Tapatalk


Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1157
  • Likes Given: 1924
Re: Basic coding ide
« Reply #10 on: 13:12, 22 August 17 »

Doesn't using spaces to indent lines eat up memory though? With long programs, every byte counts.


Unsure, after reading the BASIC Tokens Table, it appears it &20 or 32 is used for a space. Hisoft Pascal overcomes the spacing issue by reserving a byte following the Line Number with a number which represents the number of spaces, though Hisoft Pascal only allows 19Kb of space to work with for your program as opposed to the 42k BASIC gives you. However, I was mainly writing regarding how it would help to make a BASIC program become more readable. The Winape Assembler can simply be used to transfer a BASIC program to it, which could then be edited that way, transferred to a program for Printing, but could see how my dot-points could be seen as points I apply while coding and have applied those things while presenting short BASIC snippets. I was just trying to make the code readable.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1157
  • Likes Given: 1924
Re: Basic coding ide
« Reply #11 on: 13:26, 31 August 17 »
I had a look at one of my BASIC examples with the Indented Spaces on the lines in-between a Loop, what I noticed was the initial space following Line Number  doesn't get counted in Memory as a space, though for every additional space added byte &20 is used. It's probably not a big deal using that with a single loop, though it helps when dealing in Nested Loops, just to show which code is being handled in which Loop.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3