LWASM

Hardware Hacking, Programming and Game Solutions/Cheats
Post Reply
User avatar
Bosco
Posts: 330
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

LWASM

Post by Bosco »

Hi.

I'm re-learning to program the Dragon in assembly language after a thirty year break. LOL. ;)

Can anyone explain why the following assembly language syntax doesn't (seem to) assemble correctly using LWASM (Win64)?

I've reserved a single byte of memory using the instruction `rmb' and the label `score'.

score rmb $01

I then try to load the contents of `score' into accumulator A like this.

lda score

But when I run the program, something's not right and the code fails to execute correctly.

On the other hand if I do this, the program works perfectly.

ldu #score
lda ,u

Anyone have any idea why the first example fails?

Cheers.
User avatar
Bosco
Posts: 330
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: LWASM

Post by Bosco »

Ok, I've just discovered a later build of LWASM for Windows (v4.9) and the problem stated above no longer happens. Phew.
Post Reply