0

I´m new to assembly programming so I´m using THRSim11 to program some assembly examples. I´m trying to store a value in memory address $0142 but it seems the value in this memory address doesn´t change.

LDAA    #$00
STAA    $0142 

I first load Acc A with 00 value and then try to store this value to memory address $0142 but it will not change value from $FF. If I do this with address $40 it works...

What am I doing wrong?

Thanks in advance for your answers.

Michael
  • 57,169
  • 9
  • 80
  • 125
LazyTurtle
  • 131
  • 1
  • 3
  • 16

1 Answers1

1

THRSim11 simulates only memory in the ranges $0000-$00ff and $ff00-$ffff, unless you have the licensed version. Therefore you cannot use the address $0142 in the unlicensed version.

Sami Kuhmonen
  • 30,146
  • 9
  • 61
  • 74