Page 1 of 1

LWASM

Posted: Wed Mar 05, 2014 12:28 am
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.

Re: LWASM

Posted: Wed Mar 05, 2014 10:35 pm
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.