Search found 364 matches

by fuzzel
Mon Apr 22, 2019 5:16 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

i tried to convert each four letter verb into a single byte with a unique value between 0-255 but always came unstuck with two being the same. I tried for example to take the first character ascii code, ROR, then take the second and add eg 60 then take the third and ROR etc but kept failing. The way...
by fuzzel
Mon Apr 22, 2019 3:01 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Thanks, I'll bear this in mind. Here's a quick stab at verb recognition (takes the first four characters of the verb stored at &C20-&C23: 3740.analyseverb 3745LDA#0:STA&89:LDY#0:LDX#1 &89 will be the verb number from our list 3750.anverb0 3755CPX#40:BEQ anverbend Currently allow up to 40 verbs (160 ...
by fuzzel
Mon Apr 22, 2019 1:23 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Here it is then: FILE1: Assembly Text Adventure - notepad file with all my annotations to the program itself. I write the code first here, it's easier to view / debug than in Beebem, FILE 2:DH Assembly Programs.ssd - disc with the various files on for the adventure: MESDATA - Contains the data for a...
by fuzzel
Mon Apr 22, 2019 11:55 am
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Will sort out a live demo a bit later, I just need to delete / rename a few of my test files on the .ssd disc first.
I take it I can upload .ssd and notepad files as attachments to messages ?
by fuzzel
Mon Apr 22, 2019 9:52 am
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

I've decided to use Lords of Time's Level 1 - contemporary setting, to test my adventure as I know it so well. The way I've done it so far is to create data files for the locations, messages and objects and I run these first from Basic to store them in the appropriate memory locations (no data compr...
by fuzzel
Sun Apr 21, 2019 12:00 pm
Forum: software: other
Topic: Drawing a circle in BBC BASIC
Replies: 44
Views: 1543

Re: Drawing a circle in BBC BASIC

Thanks for the reply Gerald, my main priority is speed, would using VDU commands and BASIC rom functions, albeit within Assembly language, slow the program down ?
by fuzzel
Sun Apr 21, 2019 11:01 am
Forum: software: other
Topic: Drawing a circle in BBC BASIC
Replies: 44
Views: 1543

Re: Drawing a circle in BBC BASIC

I've written my own circle drawing program in BBC Basic but would like to attempt the conversion to assembly language. I think I can work out how to calculate the points of the circle but what are the assembly language equivalents of MOVE (x,y), DRAW (x,y), PLOT (x,y), GCOL (0,x), SIN (x), COS (x) a...
by fuzzel
Sun Apr 14, 2019 7:11 pm
Forum: programming
Topic: Newbie 6502 assembly questions...
Replies: 25
Views: 973

Re: Newbie 6502 assembly questions...

Thanks (I think!). I'll do some examples to get my head round it.
by fuzzel
Sun Apr 14, 2019 5:57 pm
Forum: programming
Topic: Newbie 6502 assembly questions...
Replies: 25
Views: 973

Re: Newbie 6502 assembly questions...

Can anyone explain the difference between LSR and ROR (and also of course ASL and ROL) ?
I understand I can use them to double or halve numbers but they both produce the same result.
by fuzzel
Fri Apr 12, 2019 6:51 am
Forum: adventures
Topic: Search for the Lost Orb
Replies: 19
Views: 1813

Re: Search for the Lost Orb

Anyone familiar with a linguistic technique called stylometry ? It can be used to analyse the words and phrases used by an individual as a sort of fingerprint and was in the news earlier this week when linguists who had used the technique announced that they believed Beowulf was the work of one pers...
by fuzzel
Tue Apr 09, 2019 7:37 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Hi Lurkio, I was having my evening stroll ruminating about why a word at the very end of the line wouldn't fit and I had the thought that it could be because the program adds the space to the length of the word when calculating whether it has reached 40 characters. I shall look at my flowchart in th...
by fuzzel
Tue Apr 09, 2019 6:00 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

And here's the Basic version, noticeably slower of course. I've tried to match up the line numbers. I wrote this version first in Assembly Language style so I could easily (I thought!) translate it. Bleeding BCS ! 2$&4000="You are in your own living room, surrounded by the usual clutter of books, ma...
by fuzzel
Tue Apr 09, 2019 5:41 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

I'm sufficiently happy with the code now to submit online. I've pinched a couple of locations from Lords of Time to test it. I think I've used just about every Assembly command I know so I can't wait to learn some new ones. For my own reasons I've signified the end of the text with &FF. Thanks to Ox...
by fuzzel
Mon Apr 08, 2019 7:30 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

My program development is progressing nicely. I've now added an assembly language word-wrap routine which has taken three attempts but is very nearly there. The first go was straight in at the deep end assembly language programming, but this failed. The second version I wrote in Basic first but in a...
by fuzzel
Sat Apr 06, 2019 12:54 pm
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

More on Level 2 - Ice Age - I'm still unhappy about the fact that the enhanced version doesn't have any graphics for this level. However, that aside another very good level with possibly the trickiest puzzle in the game - how to get the icicle. I suppose the earlier levels should be easier because t...
by fuzzel
Sat Mar 30, 2019 5:49 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Thanks MartinB and 0XCODE, the memory map will prove very useful. Looks like I asked the question just at the right time, I'd already used &70 to &89 so I think I'll use &70 to &8F for the commonly used variables eg current location number and find another area of memory for the other much less used...
by fuzzel
Sat Mar 30, 2019 12:04 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

In order to save space I'm using memory area &0000 to &00FF, which of these can I freely use without the operating system changing values ?
by fuzzel
Thu Mar 28, 2019 6:08 pm
Forum: adventures
Topic: Absolute best adventures?
Replies: 11
Views: 408

Re: Absolute best adventures?

My favourites (from memory) are: Level 9: Lords of Time (easy / medium difficulty) and Colossal Adventure (medium difficulty) Acornsoft: Kingdom of Hamil (medium) and Countdown to Doom (hard) Robico: Escape from Enthar Seven (medium) Magus: Village of Lost Souls (hard), What's Eeyores (hard), Locks ...
by fuzzel
Wed Mar 27, 2019 8:32 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Second nature Lurkio ? I'll let you know in due course. Today I learnt to love TXA, TYA, PLA and their opposites - very useful commands indeed. I've just been planning PROClook in Assembly while out and about. It's great being able to ponder my next moves before returning to the keyboard. Incidental...
by fuzzel
Wed Mar 27, 2019 5:10 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Many thanks Hoglet, that's fixed it. It is a bit confusing but I will always use CLC with ADC and SEC with SBC going forward. By the way, the program is coming along nicely, I now have text input restricted to 20 characters, only allowing A to Z, space, backspace and carriage return. I've stored the...
by fuzzel
Wed Mar 27, 2019 4:06 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

I'm now trying to do some simple arithmetic and can't see why the answer to the following is 0 rather than 1

LDA#0 - start with 0 in accum
STA&75 - store initial 0 in loc &75
ADC#65 - add 65 to accum
SBC#64 - subtract 64 from accum
STA&75 - store answer in &75

Could someone explain please ?
by fuzzel
Sun Mar 24, 2019 7:22 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Re: Assembly language text adventure

Thanks, worked a treat ! Now to analyse the input. I think I'll do directions first.
by fuzzel
Sun Mar 24, 2019 6:36 pm
Forum: programming
Topic: Assembly language text adventure
Replies: 38
Views: 824

Assembly language text adventure

I've decided to learn Assembly language and the best (and most enjoyable) way I can think of is to write a text adventure. Firstly, I'm writing a routine to handle the text input and have managed to get this working, it accepts A to Z, space and backspace but I'm having trouble with carriage return....
by fuzzel
Wed Mar 20, 2019 5:47 pm
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

I've just been through Level 2 - The Ice Age on the enhanced version and I couldn't find a single location with graphics, although in a few locations it looks as though it's trying to load one. I switched to the C64 version and played the level and found one graphic, see below. If anyone has a mo co...
by fuzzel
Wed Mar 20, 2019 2:45 pm
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

Level 1 - Contemporary (Country Village) - I loved this level, it has some very nicely crafted puzzles although it's unusual in that it's the only one where you can't complete it until you've visited Level 2 and obtained an object from there. There are 25 locations, a massive 17 objects and 5 puzzle...
by fuzzel
Wed Mar 20, 2019 9:49 am
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

Here's a quick one to start my detailed look at the original and extended versions of Lords of Time. The opening sequence (Level 0?); there you are sitting in the comfort of your own home. When you examine the picture in the basic version it comes to life (basically it could be an ipad) whereas the ...
by fuzzel
Tue Mar 19, 2019 9:25 pm
Forum: programming
Topic: Newbie 6502 assembly questions...
Replies: 25
Views: 973

Re: Newbie 6502 assembly questions...

By a funny coincidence I was just reading the first ever issue of the Micro User a couple of days ago and noticed a review of Assembly Language Programs for the BBC Microcomputer by said Ian Birnbaum (I remembered the unusual name). Just rereading the article it says "its rivals will have a great de...
by fuzzel
Tue Mar 19, 2019 8:24 pm
Forum: programming
Topic: Newbie 6502 assembly questions...
Replies: 25
Views: 973

Re: Newbie 6502 assembly questions...

I too would like to learn assembly language. Can anyone recommend a book to get started ?
Preferably one that's been pdf'd otherwise it might be hard to track down.
by fuzzel
Sat Mar 16, 2019 5:58 pm
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

Indeed. I wouldn't have paid that even if they threw in the computers, monitor, table and radiator, the whole room in fact.
I think we need a time machine Lardo..
by fuzzel
Fri Mar 15, 2019 2:38 pm
Forum: adventures
Topic: Time and Magik trilogy by Level 9
Replies: 11
Views: 793

Re: Time and Magik trilogy by Level 9

Having waited patiently for a couple of months for an answer to the question above I've decided to answer my own question and play the game through twice, on the standard version and on the enhanced version using Beebem's Master 128k mode. I shall post my findings on here. This will be a labour of l...