Wednesday 18 March 2015

In assembly, everything is just direct access
instructions and the port table, with the words found there anything can be constructed, all in the datasheet of the processor
How the timer is started (is writing "Timer.Start(8)" somehow easier to understand than "LDI R16,0x02" and OUT TCCRO, R16")
how the timer restarted at zero ("CLR R16" and "OUT TCCR0, R16")

Four basic programs are necessary for assembly programming. These tools are:
1. The editor: Windows notepad. Tips change to Courier.
All you have to do is open a notepad, type, and save 
2. The assembler program, program that reads the text file and produces some kind of output files is calles assembler. NASM
3. The chip programming interface
4. The simulator:

The structure of an assembler program.
1. Comments.
A comments start with a semi-colon.
Put comments around all parts of the program, be it complete subroutine or a table.
2. header informations
3. code at program start, and
4. general structure of programs


The purpose of this tutorial is: How to read two user input and add it and print it to the display.

The main program always start with initialization of the stack pointer, setting registers to default values, and the init of the hardware components used.

PORTS
Ports have a fixed address

No comments:

Post a Comment