First page Back Continue Last page Overview Graphics
Laboratory 2.2 : Assembler, Linker and Debugger, and I/O ports
Invoke the Idea12 integrated development environment GUI (Programs-Cosmic Tools-Idea12).
Create, name and save a new project in you own account. Use DOS legal filenames/directories (no spaces, 8 characters or less).
Add a new file to the project and enter the code shown on the next slide. Be sure to name the file with a .s extension.
Setup and then save the linker command file with section .data at address 800 hex and .text at address 900 hex.
After entering and building the program, load it into the debugger and step through the program. Answer the questions on the next slide.
Since variables are going to be examined with the debugger, program sections will be set up as expected by the debugger. The code section is called .text and the data section is called .data. These sections should not be declared since they are already predefined by the assembler.