Create New Assembler Project

Figure 1. New Assembler Project

After pressing OK, you are asked to select your microcontroller.

You can try out the Assembler build and code debugging, using a simple LED-chaser code, given below. It should fit any AVR 8-bit microcontroller, simply change the port (in this case E) to your hardware.

start:
nop
ldi R16, 0xff
sts PORTE_DIR, r16

ldi r17, 0x80
output:
sts PORTE_OUT, r17
rol r17

ldi r16, 0x00
delay:
ldi r18, 0x00
delay1:
inc r18
brne delay1
inc r16
brne delay
break
rjmp output

When a new project is created or an old project is loaded, the project view will be displayed with all the project files. Files can be added, created, or removed from the project list using the context menu in the Solution Explorer window.

Figure 2. View of an Assembler Project

All the source files will be listed at the end of the list. Double-click on any file to open it in the editor.

All custom include files will be listed directly under the project name item unless you create a new folder in the project.

Figure 3. View of an Assembler Project after Build Completed

Dependencies: All include files are listed here. Double-click on any file to open it in the editor.

Labels: All labels in your assembler program are listed here. Double-click on any item to show its location in the source. A marker will point to the correct line.

Output Files: All output files will be displayed below this item.

Figure 4. File Context Menu

Table 1. File Context Menu

Menu Text

Shortcut

Description

Open Right click O

Open the selected file

Open With...

Right click n

Open selected file with another editor or tool

Cut

Ctrl X

Cut the file from current category

Copy Ctrl C

Copy the file from current category

Remove DEL

Remove the selected file from the project

Rename

F2

Rename the selected file

Set As EntryFile

Set the selected file as entry file

Properties Alt ENTER

Current file properties

Menu text

Shortcut

Description

All the interface views are docked by default. You can switch between docked and undocked views by dragging windows around to a desirable location, or by dragging and dropping a window on a quick docking menu of the Visual Studio IDE. The quick docking menu will appear every time you start dragging an interface view or window.

Project Context Menu

Several build commands are available from the menu and the toolbars. There is also a context menu for the project:

Figure 5. Project Context Menu

Table 2. Project Context Menu
Menu Text Shortcut Description
Build

Right click+u

Build the selected project

Rebuild Right click e

Will clean the project and build it

Clean Right click n

Clean up and erase artifacts

Add

Ctrl Shift A/Shift Alt A (existing item)

Add new files or existing files to the project

Set as StartUp Project

Right click + a

Will set up to automatically open current project at start-up
Cut

Ctrl X

Cut project to paste it as a sub-project to another solution
Remove

Del

Remove project or sub-project under cursor

Rename F2

Rename current project

Unload Project Right click l

Unload active project files from the IDE

Properties Alt Enter

Project properties