Assembler Tutorial: The Elements of Computing Systems
Assembler Tutorial: The Elements of Computing Systems
Simulators
(HardwareSimulator, CPUEmulator, VMEmulator):
This tutorial is Used to build hardware platforms and
about the execute programs;
assembler
Supplied by us.
Part I:
Assembly
Programming
at a Glance
Part II:
Learn how to invoke the
supplied assembler from
the OS shell level.
(the assembler that you have
to write in project 6 should
have the same GUI and
behavior)
Display the
assembly source
code (contents of
the .asm text file)
Source
code is
shown
Part III:
Navigate to a
directory and select
an .asm file.
Immediate
translation
(no animation)
Pause the
translation
Translate the
entire program
Translate
line-by-line
2. The
1. Click an corresponding
assembly translated code
command is highlighted
Saves the
translated code
in a .hack file
The “save” operation is
enabled only if the
translation was error-free;
Otherwise, the translation
stops with an error
message.
1. Load a
compare file
2. Select a compare
(.hack) file
2. Translate the
program (any
translation mode
can be used)
1. Compare file is
shown
The translation of
the highlighted line
does not match the
corresponding line
in the compare file.