Bug on supplied assembler and @

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug on supplied assembler and @

reinert
I was doing my project 06 and comparing my result with the supplied assembler. Then, when I used the Max.asm file,  I notice a bug with the supplied assembler table.
Instead of starting the variable table at 16 (0000 0000 0001 0000), it started at 10 (0000 0000 0000 1010).
Image showing the bug:
Reply | Threaded
Open this post in threaded view
|

Re: Bug on supplied assembler and @

FrisbeeChaser
It's not a bug,  the given assembler works normally.
There's three categories of symbols:
    1. Predefined symbols
    2. Label symbols
    3. Variable symbols
Only Variable symbols start from 16 (0000 0000 0001 0000).
In your case,  $OUTPUT_FIRST is a label symbol, it's the count of program, which equals the real executing code line numbers.
You may read the lectures slide for detail information.