I want to program in BASIC, where do I start?

Page 1/2
| 2

By AxelStone

Prophet (3199)

AxelStone's picture

03-01-2015, 12:28

Hi everybody, finally I wear to work on MSX. I opted for the BASIC for 2 weight reasons:

  1. I really like language. I have programmed many versions of Basic (CPC Basic, GW Basic, Dark Basic, Blitz Basic) and is easy to learn.
  2. It seems that the compilers have come a long way and offer good performance.

I see that I need 2 things:

  1. MSX-Basic Learning from the beginning. I know the generic Basic but not the peculiarities of MSX-Basic. Where is a good tutorial from scratch?
  2. Learn some version of Basic compiled. I had noticed in the Nestor Basic, what do you think? Would I recomendáis other? Just as before, a good tutorial from scratch?

Thank You.

Login or register to post comments

By jltursan

Prophet (2619)

jltursan's picture

03-01-2015, 12:49

Are you going to remangarte? LOL!

Well, seriously, cool initiative!. Of course the best source of info about NestorBasic is the Konamiman's page itself: http://www.konamiman.com/msx/msx-e.html#nestorbasic

And about MSX-BASIC is dead easy if you already know any other BASIC dialect, especially if it's a 8bit Microsoft BASIC. Any user manual is a good source of info; Sony ones are nice, check HansO manuals page for "MSX-2 Basic Userguide, english version" for example.

Check also NestorPreter, seems that a combination of NestorBasic + NestorPreter is a really powerful developing tool!

By AxelStone

Prophet (3199)

AxelStone's picture

03-01-2015, 12:50

jltursan wrote:

Are you going to remangarte? LOL!

La madre que parió al translate. Gracias por avisar Smile . Pues nada empezaremos a leer MSX-Basic Smile

By CX5Mer

Champion (327)

CX5Mer's picture

03-01-2015, 19:05

You should also look around for copies of MSX magazines with type in listings. These include the magazines "MSX User" and "MSX Computing" from the UK, and "MSX Computer Magazine" from the Netherlands. There are also some Japanese MSX magazines somewhere which contain type in listings, but everything else is in Japanese with a few English words here and there.

I've recently been doing some programming in MSX BASIC on my new/old Philips VG8235 MSX2 and trying to use some MSX BASIC 2.0 commands I never learnt or used before. I think that most MSX BASIC 1.0 commands are also found in GW-BASIC, and Tandy Extended Color BASIC, but I first learnt these commands from MSX magazines. Some MSX BASIC 1.0 commands which I think are specific to MSX are SPRITE$(1)=[definition], ON SPRITE GOSUB [line], SPRITE ON, PUT SPRITE [number],(x,y),colour , ON INTERVAL= GOSUB , INTERVAL ON/OFF/STOP, BASE(x), VPEEK(number), VPOKE(number). A list of MSX BASIC commands is here on http://www.msx.org/wiki/Category:MSX-BASIC_COMMANDS , but this doesn't include TRON, TROFF, VPEEK, or VPOKE, so seems to be incomplete.

Some links to MSX magazine downloads are below.

http://www.msx.org/forum/msx-talk/general-discussion/english...

http://www.msxcomputermagazine.nl/

By theNestruo

Champion (428)

theNestruo's picture

03-01-2015, 19:36

This superb blog: http://msxbasic.blogspot.com.es/ has almost every listing in Spanish MSX Magazines already typed. As CX5Mer suggested, studying them can provide you lots of information :)
Have fun!

By AxelStone

Prophet (3199)

AxelStone's picture

03-01-2015, 19:53

Thanks for all urls, I've started to read and learn Wink

By NYYRIKKI

Enlighted (6088)

NYYRIKKI's picture

03-01-2015, 20:54

RuMSX as emulator is outdated long time ago, but it comes with wonderful BASIC-help files... Easy to browse and very complete.

By AxelStone

Prophet (3199)

AxelStone's picture

04-01-2015, 10:36

NYYRIKKI wrote:

RuMSX as emulator is outdated long time ago, but it comes with wonderful BASIC-help files... Easy to browse and very complete.

Wow I didn't know, I'll take a look. Thanks.

By Pac

Scribe (7103)

Pac's picture

04-01-2015, 10:54

From the Konamiman site:

- MSX2 Technical Handbook. Chapter 2, MSX-BASIC.
- MSX-BASIC-KUN manual. Very useful if you want to know which commands and functions are supported in turbo blocks and/or their limitations.

By CX5Mer

Champion (327)

CX5Mer's picture

06-01-2015, 11:19

That MSX2 Technical Handbook is great! I finally changed the boot screen colour and added a start up message with SET TITLE "Hello",3 where the number at the end specifies the boot screen colour, set the date with SET DATE "05/01/15" (which had to be in DD/MM/YY format, but there's no Millennium bug at least) and time with SET TIME "18:05:00", and after making changes, I used SET SCREEN to save the parameters for what type of screen to boot into. I thought I may have read all this information before, but not all in one place, or before I got my new/old Philips VG8235 MSX2. It doesn't seem possible to save any redefined function keys to battery backed RAM, but I tried redefining some of them in an MSX BASIC program, then saved it to disk as AUTOEXEC.BAS, rebooted with that disk in my drive and it worked! A more technical thing is that it gave the location &HFAFC (named MODE) to PEEK to find out how much VRAM is fitted. It said bits 1 and 2 would indicate this. On boot, my 8235 says 128K VRAM, but the result of the PEEK was 4 or &B00000100, so I'm not sure what this means. The seller told me 256K VRAM and 256K system RAM, so perhaps that's what it's trying to tell me, although the boot screen says 128K VRAM.

By jltursan

Prophet (2619)

jltursan's picture

06-01-2015, 11:40

That value is correct. Bits 1 and 2 are the number of available pages in screen modes 5 or 6; so in your case is 4 pages = 128K VRAM.

My own 192KB VRAM upgraded TurboR returns the same value as it doesn't checks the presence of VRAM in the extended bank (128KB-192KB) Tongue

Page 1/2
| 2