Wot no ‘Hello World’?

If you ever used a home computer in the 80’s you probably learned the BASIC ‘Hello World’ program as your first endeavour, which prints that message onto the screen. You might have even played around with it, and changed the message, probably to something rude on a computer in a high-street store.  We’re not doing that here, although we could, and here’s why.

The ‘Hello World’ program is actually quite complicated – you need to design a graphic for each of the 7 unique letters to show, the list which dictates which order to show them, and the function the actually put each letter onto the screen.  That’s quite a lot of work for a beginner!  Ah, some of you might think, doesn’t the Spectrum have all that in the ROM, can’t we just use that?  Well yes, it does, and yes, we could, but using the ROM for everything won’t teach you how to do each aspect, and if you get too reliant on the ROM you begin to notice that it’s actually not that fast.  When I started to learn assembly over 30 years ago that’s what I did – followed a book which used the Spectrum’s ROM to do nearly everything – but quickly became aware that everything was running slowly, and that was the reason.  The game turned out okay – it was called Stranded and you can download it from my website at www.bobs-stuff.co.uk – but it wasn’t what I planned to write because I had to scale back my plans as everything got slower and slower.  What I meant to write eventually became Stranded 2.5.

So we’re going to start with something else, something quite uniquely Spectrum..

Advertisements

3 thoughts on “Wot no ‘Hello World’?

  1. Tried as I might I could never team myself assembler as a kid, the books in our local library were terrible and the lack of an assembler didn’t help either – didn’t fancy converting everything via a hex editor. Learning basic back in the day certainly helped a lot, and led me into coding professionally for a living. I’m looking to scratch an itch from 25 years ago, and this is my first starting point. Your time spent on this blog is much appreciated. Cheers.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s