kidmirage / KENBAK-2-5-Build-Files

For the 2:5 Scale KENBAK-1 Personal Computer Reproduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading A,B,X with the address of a variable

rlstrand opened this issue · comments

I have a question on the assembler syntax. How does one load the address of a variable into the X register. If I use a constant integer it works, but I need to adjust the address by hand. If I use the label for the variable I get the contents of the variable.

Usually something like load X,#foo works in other assemblers. The # indicated to load X with the address of foo.
Is this just missing feature?

Added in release V1.02. I had not thought to include this. Great suggestion.