AVR Assembler User Guide
|
|
|
- Easter Bennett
- 9 years ago
- Views:
Transcription
1 Section 4 AVR Assembler User Guide 4.1 Introduction Welcome to the Atmel AVR Assembler. This manual describes the usage of the Assembler. The Assembler covers the whole range of microcontrollers in the AT90S family. The Assembler translates assembly source code into object code. The generated object code can be used as input to a simulator or an emulator such as the Atmel AVR In-Circuit Emulator. The Assembler also generates a PROMable code and an optional EEPROM file which can be programmed directly into the program memory and EEPROM memory of an AVR microcontroller. The Assembler generates fixed code allocations, consequently no linking is necessary. The Assembler runs under Microsoft Windows 3.11, Microsoft Windows95 and Microsoft Windows NT. In addition, there is an MS-DOS command line version. The Windows version of the program contains an on-line help function covering most of this document. The instruction set of the AVR family of microcontrollers is only briefly described, refer to the AVR Data Book (also available on CD-ROM) in order to get more detailed knowledge of the instruction set for the different microcontrollers. To get quickly started, the Quick-Start Tutorial is an easy way to get familiar with the Atmel AVR Assembler. Development Tools User Guide 4-1 Rev. 1022A-A 01/98
2 4.2 Assembler Quick Start Tutorial This tutorial assumes that the AVR Assembler and all program files that come with it are properly installed on your computer. Please refer to the installation instructions Getting Started Start the AVR Assembler. By selecting File Open from the menu or by clicking on the toolbar, open the file tutor1.asm. This loads the assembly file into the Editor window. Read the program header and take a look at the program but do not make any changes yet Assembling Your First File Once you have had a look at the program, select Assemble from the menu. A second window (the Message window) appears, containing a lot of error messages. This window will overlap the editor window, so it is a good idea to clean up your work space on the screen. Select the Editor window containing the program code, and select Window Tile Horizontal from the menu. It is useful to have the Editor window larger than the Message window, so move the top of the Message window down a bit, and follow with the bottom of the Editor window. Your screen should look like this: 4-2 Development Tools User Guide
3 4.2.3 Finding and Correcting Errors From the looks of the Message window, it seems that you have attempted to assemble a program with lots of bugs. To get any further, the errors must be found and corrected. Point to the first error message in the Message window (the one reported to be on line 54) and press the left mouse button. Notice that in the Editor window, a red vertical bar is displayed all over line 54. The error message says that only registers R0 to R31 can be assigned variable names. That is true since the AVR has exactly 32 General Purpose working registers numbered R0-R31, and tutor1.asm tries to assign a name to register 32. See the figure below. Double click on the error message in the Message window and observe that the Editor window becomes active while the cursor is positioned at the start of the line containing the error. Correct the mistake by changing r32 to r19 in the Editor window. One down, five to go. Now click on the next error in the list. The message Illegal argument type or count, tells that something is wrong with the arguments following the compare ( cp ) instruction. Notice that the register named BH is one of the arguments, which happens to be the variable we just corrected. By clicking along on the remaining errors, it appears that the first error generated all the messages Reassembling To find out whether all errors have been corrected, double click on any error (to activate the Editor window) or click inside the Editor window before you assemble once more. If you have done it all right up till now, the Message window will tell that you are crowned with success. Development Tools User Guide 4-3
4 4.3 Assembler source The Assembler works on source files containing instruction mnemonics, labels and directives. The instruction mnemonics and the directives often take operands. Code lines should be limited to 120 characters. Every input line can be preceded by a label, which is an alphanumeric string terminated by a colon. Labels are used as targets for jump and branch instructions and as variable names in Program memory and RAM. An input line may take one of the four following forms: 1. [label:] directive [operands] [Comment] 2. [label:] instruction [operands] [Comment] 3. Comment 4. Empty line A comment has the following form: ; [Text] Items placed in braces are optional. The text between the comment-delimiter (;) and the end of line (EOL) is ignored by the Assembler. Labels, instructions and directives are described in more detail later. Examples: label:.equ var1=100 ; Set var1 to 100 (Directive).EQU var2=200 ; Set var2 to 200 test: rjmp test ; Infinite loop (Instruction) ; Pure comment line ; Another comment line Note: There are no restrictions with respect to column placement of labels, directives, comments or instructions. 4-4 Development Tools User Guide
5 4.4 Instruction mnemonics The Assembler accepts mnemonic instructions from the instruction set. A summary of the instruction set mnemonics and their parameters is given here. For a detailed description of the Instruction set, refer to the AVR Data Book. Mnemonics Operands Description Operation Flags #Clock Note ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add without Carry Rd Rd + Rr Z,C,N,V,H 1 ADC Rd, Rr Add with Carry Rd Rd + Rr + C Z,C,N,V,H 1 ADIW Rd, K Add Immediate to Word Rd+1:Rd Rd+1:Rd + K Z,C,N,V 2 SUB Rd, Rr Subtract without Carry Rd Rd - Rr Z,C,N,V,H 1 SUBI Rd, K Subtract Immediate Rd Rd - K Z,C,N,V,H 1 SBC Rd, Rr Subtract with Carry Rd Rd - Rr - C Z,C,N,V,H 1 SBCI Rd, K Subtract Immediate with Carry Rd Rd - K - C Z,C,N,V,H 1 SBIW Rd, K Subtract Immediate from Word Rd+1:Rd Rd+1:Rd - K Z,C,N,V 2 AND Rd, Rr Logical AND Rd Rd Rr Z,N,V 1 ANDI Rd, K Logical AND with Immediate Rd Rd K Z,N,V 1 OR Rd, Rr Logical OR Rd Rd v Rr Z,N,V 1 ORI Rd, K Logical OR with Immediate Rd Rd v K Z,N,V 1 EOR Rd, Rr Exclusive OR Rd Rd Rr Z,N,V 1 COM Rd One's Complement Rd $FF - Rd Z,C,N,V 1 NEG Rd Two's Complement Rd $00 - Rd Z,C,N,V,H 1 SBR Rd,K Set Bit(s) in Register Rd Rd v K Z,N,V 1 CBR Rd,K Clear Bit(s) in Register Rd Rd ($FFh - K) Z,N,V 1 INC Rd Increment Rd Rd + 1 Z,N,V 1 DEC Rd Decrement Rd Rd - 1 Z,N,V 1 TST Rd Test for Zero or Minus Rd Rd Rd Z,N,V 1 CLR Rd Clear Register Rd Rd Rd Z,N,V 1 SER Rd Set Register Rd $FF None 1 MUL Rd,Rr Multiply Unsigned R1, R0 Rd Rr C 2 (1) Note: 1. Not available in base-line microcontrollers Development Tools User Guide 4-5
6 Mnemonics Operands Description Operation Flags #Clock Note BRANCH INSTRUCTIONS RJMP k Relative Jump PC PC + k + 1 None 2 IJMP Indirect Jump to (Z) PC Z None 2 JMP k Jump PC k None 3 RCALL k Relative Call Subroutine PC PC + k + 1 None 3 ICALL Indirect Call to (Z) PC Z None 3 CALL k Call Subroutine PC k None 4 RET Subroutine Return PC STACK None 4 RETI Interrupt Return PC STACK I 4 CPSE Rd,Rr Compare, Skip if Equal if (Rd = Rr) PC PC + 2 or 3 None 1 / 2 / 3 CP Rd,Rr Compare Rd - Rr Z,C,N,V,H 1 CPC Rd,Rr Compare with Carry Rd - Rr - C Z,C,N,V,H 1 CPI Rd,K Compare with Immediate Rd - K Z,C,N,V,H 1 SBRC Rr, b Skip if Bit in Register Cleared if (Rr(b)=0) PC PC + 2 or 3 None 1 / 2 / 3 SBRS Rr, b Skip if Bit in Register Set if (Rr(b)=1) PC PC + 2 or 3 None 1 / 2 / 3 SBIC P, b Skip if Bit in I/O Register Cleared if(i/o(p,b)=0) PC PC + 2 or 3 None 1 / 2 / 3 SBIS P, b Skip if Bit in I/O Register Set if(i/o(p,b)=1) PC PC + 2 or 3 None 1 / 2 / 3 BRBS s, k Branch if Status Flag Set if (SREG(s) = 1) then PC PC+k + 1 None 1 / 2 BRBC s, k Branch if Status Flag Cleared if (SREG(s) = 0) then PC PC+k + 1 None 1 / 2 BREQ k Branch if Equal if (Z = 1) then PC PC + k + 1 None 1 / 2 BRNE k Branch if Not Equal if (Z = 0) then PC PC + k + 1 None 1 / 2 BRCS k Branch if Carry Set if (C = 1) then PC PC + k + 1 None 1 / 2 BRCC k Branch if Carry Cleared if (C = 0) then PC PC + k + 1 None 1 / 2 BRSH k Branch if Same or Higher if (C = 0) then PC PC + k + 1 None 1 / 2 BRLO k Branch if Lower if (C = 1) then PC PC + k + 1 None 1 / 2 BRMI k Branch if Minus if (N = 1) then PC PC + k + 1 None 1 / 2 BRPL k Branch if Plus if (N = 0) then PC PC + k + 1 None 1 / 2 BRGE k Branch if Greater or Equal, Signed if (N V= 0) then PC PC+ k + 1 None 1 / 2 BRLT k Branch if Less Than, Signed if (N V= 1) then PC PC + k + 1 None 1 / 2 BRHS k Branch if Half Carry Flag Set if (H = 1) then PC PC + k + 1 None 1 / 2 BRHC k Branch if Half Carry Flag Cleared if (H = 0) then PC PC + k + 1 None 1 / 2 BRTS k Branch if T Flag Set if (T = 1) then PC PC + k + 1 None 1 / 2 BRTC k Branch if T Flag Cleared if (T = 0) then PC PC + k + 1 None 1 / 2 BRVS k Branch if Overflow Flag is Set if (V = 1) then PC PC + k + 1 None 1 / 2 BRVC k Branch if Overflow Flag is Cleared if (V = 0) then PC PC + k + 1 None 1 / 2 BRIE k Branch if Interrupt Enabled if (I = 1) then PC PC + k + 1 None 1 / 2 BRID k Branch if Interrupt Disabled if (I = 0) then PC PC + k + 1 None 1 / Development Tools User Guide
7 Mnemonics Operands Description Operation Flags #Clock Note DATA TRANSFER INSTRUCTIONS MOV Rd, Rr Copy Register Rd Rr None 1 LDI Rd, K Load Immediate Rd K None 1 LDS Rd, k Load Direct from SRAM Rd (k) None 3 LD Rd, X Load Indirect Rd (X) None 2 LD Rd, X+ Load Indirect and Post-Increment Rd (X), X X + 1 None 2 LD Rd, -X Load Indirect and Pre-Decrement X X - 1, Rd (X) None 2 LD Rd, Y Load Indirect Rd (Y) None 2 LD Rd, Y+ Load Indirect and Post-Increment Rd (Y), Y Y + 1 None 2 LD Rd, -Y Load Indirect and Pre-Decrement Y Y - 1, Rd (Y) None 2 LDD Rd,Y+q Load Indirect with Displacement Rd (Y + q) None 2 LD Rd, Z Load Indirect Rd (Z) None 2 LD Rd, Z+ Load Indirect and Post-Increment Rd (Z), Z Z+1 None 2 LD Rd, -Z Load Indirect and Pre-Decrement Z Z - 1, Rd (Z) None 2 LDD Rd, Z+q Load Indirect with Displacement Rd (Z + q) None 2 STS k, Rr Store Direct to SRAM (k) Rr None 3 ST X, Rr Store Indirect (X) Rr None 2 ST X+, Rr Store Indirect and Post-Increment (X) Rr, X X + 1 None 2 ST -X, Rr Store Indirect and Pre-Decrement X X - 1, (X) Rr None 2 ST Y, Rr Store Indirect (Y) Rr None 2 ST Y+, Rr Store Indirect and Post-Increment (Y) Rr, Y Y + 1 None 2 ST -Y, Rr Store Indirect and Pre-Decrement Y Y - 1, (Y) Rr None 2 STD Y+q,Rr Store Indirect with Displacement (Y + q) Rr None 2 ST Z, Rr Store Indirect (Z) Rr None 2 ST Z+, Rr Store Indirect and Post-Increment (Z) Rr, Z Z + 1 None 2 ST -Z, Rr Store Indirect and Pre-Decrement Z Z - 1, (Z) Rr None 2 STD Z+q,Rr Store Indirect with Displacement (Z + q) Rr None 2 LPM Load Program Memory R0 (Z) None 3 IN Rd, P In Port Rd P None 1 OUT P, Rr Out Port P Rr None 1 PUSH Rr Push Register on Stack STACK Rr None 2 POP Rd Pop Register from Stack Rd STACK None 2 Development Tools User Guide 4-7
8 Mnemonics Operands Description Operation Flags #Clock Note BIT AND BIT-TEST INSTRUCTIONS LSL Rd Logical Shift Left Rd(n+1) Rd(n),Rd(0) 0,C Rd(7) Z,C,N,V,H 1 LSR Rd Logical Shift Right Rd(n) Rd(n+1),Rd(7) 0,C Rd(0) Z,C,N,V 1 ROL Rd Rotate Left Through Carry Rd(0) C,Rd(n+1) Rd(n),C Rd(7) Z,C,N,V,H 1 ROR Rd Rotate Right Through Carry Rd(7) C,Rd(n) Rd(n+1),C Rd(0) Z,C,N,V 1 ASR Rd Arithmetic Shift Right Rd(n) Rd(n+1), n=0..6 Z,C,N,V 1 SWAP Rd Swap Nibbles Rd(3..0) Rd(7..4) None 1 BSET s Flag Set SREG(s) 1 SREG(s) 1 BCLR s Flag Clear SREG(s) 0 SREG(s) 1 SBI P, b Set Bit in I/O Register I/O(P, b) 1 None 2 CBI P, b Clear Bit in I/O Register I/O(P, b) 0 None 2 BST Rr, b Bit Store from Register to T T Rr(b) T 1 BLD Rd, b Bit load from T to Register Rd(b) T None 1 SEC Set Carry C 1 C 1 CLC Clear Carry C 0 C 1 SEN Set Negative Flag N 1 N 1 CLN Clear Negative Flag N 0 N 1 SEZ Set Zero Flag Z 1 Z 1 CLZ Clear Zero Flag Z 0 Z 1 SEI Global Interrupt Enable I 1 I 1 CLI Global Interrupt Disable I 0 I 1 SES Set Signed Test Flag S 1 S 1 CLS Clear Signed Test Flag S 0 S 1 SEV Set Two's Complement Overflow V 1 V 1 CLV Clear Two's Complement Overflow V 0 V 1 SET Set T in SREG T 1 T 1 CLT Clear T in SREG T 0 T 1 SEH Set Half Carry Flag in SREG H 1 H 1 CLH Clear Half Carry Flag in SREG H 0 H 1 NOP No Operation None 1 SLEEP Sleep None 1 WDR Watchdog Reset None Development Tools User Guide
9 The Assembler is not case sensitive. The operands have the following forms: Rd: R0-R31 or R16-R31 (depending on instruction) Rr: R0-R31 b: Constant (0-7), can be a constant expression s: Constant (0-7), can be a constant expression P: Constant (0-31/63), can be a constant expression K: Constant (0-255), can be a constant expression k: Constant, value range depending on instruction. Can be a constant expression. q: Constant (0-63), can be a constant expression AVR Assembler User Guide 4.5 Assembler directives The Assembler supports a number of directives. The directives are not translated directly into opcodes. Instead, they are used to adjust the location of the program in memory, define macros, initialize memory and so on. An overview of the directives is given in the following table. Summary of directives: Directive BYTE CSEG DB DEF DEVICE DSEG DW ENDMACRO EQU ESEG EXIT INCLUDE LIST LISTMAC MACRO NOLIST ORG SET Description Reserve byte to a variable Code Segment Define constant byte(s) Define a symbolic name on a register Define which device to assemble for Data Segment Define constant word(s) End macro Set a symbol equal to an expression EEPROM Segment Exit from file Read source from another file Turn listfile generation on Turn macro expansion on Begin macro Turn listfile generation off Set program origin Set a symbol to an expression Note: All directives must be preceded by a period. Development Tools User Guide 4-9
10 4.5.1 BYTE - Reserve bytes to a variable The BYTE directive reserves memory resources in the SRAM. In order to be able to refer to the reserved location, the BYTE directive should be preceded by a label. The directive takes one parameter, which is the number of bytes to reserve. The directive can only be used within a Data Segment (see directives CSEG, DSEG and ESEG). Note that a parameter must be given. The allocated bytes are not initialized. LABEL:.BYTE expression.dseg.cseg var1:.byte 1 ; reserve 1 byte to var1 table:.byte tab_size ; reserve tab_size bytes ldi r30,low(var1) ; Load Z register low ldi r31,high(var1) ; Load Z register high ld r1,z ; Load VAR1 into register CSEG - Code Segment The CSEG directive defines the start of a Code Segment. An Assembler file can consist of several Code Segments, which are concatenated into one Code Segment when assembled. The BYTE directive can not be used within a Code Segment. The default segment type is Code. The Code Segments have their own location counter which is a word counter. The ORG directive (see description later in this document) can be used to place code and constants at specific locations in the Program memory. The directive does not take any parameters..cseg.dseg.cseg vartab:.byte 4 const:.dw 2 mov r1,r0 ; Start data segment ; Reserve 4 bytes in SRAM ; Start code segment ; Write 0x0002 in prog.mem. ; Do something 4-10 Development Tools User Guide
11 4.5.3 DB-Define constant byte(s) in program memory or E 2 PROM memory The DB directive reserves memory resources in the program memory or the EEPROM memory. In order to be able to refer to the reserved locations, the DB directive should be preceded by a label. The DB directive takes a list of expressions, and must contain at least one expression. The DB directive must be placed in a Code Segment or an EEPROM Segment. The expression list is a sequence of expressions, delimited by commas. Each expression must evaluate to a number between -128 and 255. If the expression evaluates to a negative number, the 8 bits two's complement of the number will be placed in the program memory or EEPROM memory location. If the DB directive is used in a Code Segment and the expressionlist contains more than one expression, the expressions are packed so that two bytes are placed in each program memory word. If the expressionlist contains an odd number of expressions, the last expression will be placed in a program memory word of its own, even if the next line in the assembly code contains a DB directive..cseg.eseg LABEL:.DB expressionlist consts:.db 0, 255, 0b , -128, 0xaa eeconst:.db 0xff DEF - Set a symbolic name on a register The DEF directive allows the registers to be referred to through symbols. A defined symbol can be used in the rest of the program to refer to the register it is assigned to. A register can have several symbolic names attached to it. A symbol can be redefined later in the program..def Symbol=Register.DEF temp=r16.def ior=r0.cseg ldi temp,0xf0 ; Load 0xf0 into temp register in ior,0x3f ; Read SREG into ior register eor temp,ior ; Exclusive or temp and ior Development Tools User Guide 4-11
12 4.5.5 DEVICE - Define which device to assemble for The DEVICE directive allows the user to tell the Assembler which device the code is to be executed on. If this directive is used, a warning is issued if an instruction not supported by the specified device occurs in the code. If the size of the Code Segment or EEPROM Segment is larger than supported by the specified device, a warning is issued. If the DEVICE directive is not used, it is assumed that all instructions are supported and that there are no restrictions on memory sizes..device AT90S1200 AT90S2313 AT90S4414 AT90S8515.DEVICE AT90S1200 ; Use the AT90S1200.CSEG push r30 ; This statement will generate ; a warning since the ; specified device does not ; have this instruction DSEG - Data Segment The DSEG directive defines the start of a Data Segment. An Assembler file can consist of several Data Segments, which are concatenated into one Data Segment when assembled. A Data Segment will normally only consist of BYTE directives (and labels). The Data Segments have their own location counter which is a byte counter. The ORG directive (see description later in this document) can be used to place the variables at specific locations in the SRAM. The directive does not take any parameters..dseg.dseg.cseg ; Start data segment var1:.byte 1 ; reserve 1 byte to var1 table:.byte tab_size ; reserve tab_size bytes. ldi r30,low(var1) ; Load Z register low ldi r31,high(var1) ; Load Z register high ld r1,z ; Load var1 into register Development Tools User Guide
13 4.5.7 DW-Define constant word(s) in program memory or E 2 PROM memory The DW directive reserves memory resources in the program memory or EEPROM memory. In order to be able to refer to the reserved locations, the DW directive should be preceded by a label. The DW directive takes a list of expressions, and must contain at least one expression. The DB directive must be placed in a Code Segment or an EEPROM Segment. The expression list is a sequence of expressions, delimited by commas. Each expression must evaluate to a number between and If the expression evaluates to a negative number, the 16 bits two's complement of the number will be placed in the program memory location..cseg.eseg LABEL:.DW expressionlist varlist:.dw 0,0xffff,0b ,-32768,65535 eevar:.dw 0xffff ENDMACRO - End macro The ENDMACRO directive defines the end of a Macro definition. The directive does not take any parameters. See the MACRO directive for more information on defining Macros..ENDMACRO.MACRO SUBI16 ; Start macro definition subi r16,low(@0) ; Subtract low byte sbci r17,high(@0) ; Subtract high byte.endmacro ; End macro definition EQU - Set a symbol equal to an expression The EQU directive assigns a value to a label. This label can then be used in later expressions. A label assigned to a value by the EQU directive is a constant and can not be changed or redefined..equ label = expression.equ io_offset = 0x23.EQU porta = io_offset + 2.CSEG ; Start code segment clr r2 ; Clear register 2 out porta,r2 ; Write to Port A Development Tools User Guide 4-13
14 ESEG - EEPROM Segment The ESEG directive defines the start of an EEPROM Segment. An Assembler file can consist of several EEPROM Segments, which are concatenated into one EEPROM Segment when assembled. The BYTE directive can not be used within an EEPROM Segment. The EEPROM Segments have their own location counter which is a byte counter. The ORG directive (see description later in this document) can be used to place constants at specific locations in the EEPROM memory. The directive does not take any parameters..eseg.dseg.eseg.cseg ; Start data segment vartab:.byte 4 ; Reserve 4 bytes in SRAM eevar:.dw 0xff0f ; Initialize one word in ; EEPROM ; Start code segment const:.dw 2 ; Write 0x0002 in prog.mem. mov r1,r0 ; Do something EXIT - Exit this file The EXIT directive tells the Assembler to stop assembling the file. Normally, the Assembler runs until end of file (EOF). If an EXIT directive appears in an included file, the Assembler continues from the line following the INCLUDE directive in the file containing the INCLUDE directive..exit.exit ; Exit this file INCLUDE - Include another file The INCLUDE directive tells the Assembler to start reading from a specified file. The Assembler then assembles the specified file until end of file (EOF) or an EXIT directive is encountered. An included file may itself contain INCLUDE directives..include filename ; iodefs.asm:.equ sreg=0x3f ; Status register.equ sphigh=0x3e ; Stack pointer high.equ splow=0x3d ; Stack pointer low ; incdemo.asm.include iodefs.asm ; Include I/O definitions in r0,sreg ; Read status register 4-14 Development Tools User Guide
15 LIST - Turn the listfile generation on The LIST directive tells the Assembler to turn listfile generation on. The Assembler generates a listfile which is a combination of assembly source code, addresses and opcodes. Listfile generation is turned on by default. The directive can also be used together with the NOLIST directive in order to only generate listfile of selected parts of an assembly source file..list.nolist.include macro.inc.include const.def.list ; Disable listfile generation ; The included files will not ; be shown in the listfile ; Reenable listfile generation LISTMAC - Turn macro expansion on The LISTMAC directive tells the Assembler that when a macro is called, the expansion of the macro is to be shown on the listfile generated by the Assembler. The default is that only the macro-call with parameters is shown in the listfile..listmac.macro MACX ; Define an example macro add r0,@0 ; Do something eor r1,@1 ; Do something.endmacro ; End macro definition.listmac ; Enable macro expansion MACX r2,r1 ; Call macro, show expansion MACRO - Begin macro The MACRO directive tells the Assembler that this is the start of a Macro. The MACRO directive takes the Macro name as parameter. When the name of the Macro is written later in the program, the Macro definition is expanded at the place it was used. A Macro can take up to 10 parameters. These parameters are referred to within the Macro definition. When issuing a Macro call, the parameters are given as a comma separated list. The Macro definition is terminated by an ENDMACRO directive. By default, only the call to the Macro is shown on the listfile generated by the Assembler. In order to include the macro expansion in the listfile, a LISTMAC directive must be used. A macro is marked with a + in the opcode field of the listfile..macro macroname.macro SUBI16 ; Start macro definition ; Subtract low byte ; Subtract high byte.endmacro ; End macro definition.cseg ; Start code segment SUBI16 0x1234,r16,r17; Sub.0x1234 from r17:r16 Development Tools User Guide 4-15
16 NOLIST - Turn listfile generation off The NOLIST directive tells the Assembler to turn listfile generation off. The Assembler normally generates a listfile which is a combination of assembly source code, addresses and opcodes. Listfile generation is turned on by default, but can be disabled by using this directive. The directive can also be used together with the LIST directive in order to only generate listfile of selected parts of an assembly source file..nolist.nolist.include macro.inc.include const.def.list ; Enable listfile generation ; Disable listfile generation ; The included files will not ; be shown in the listfile ; Reenable listfile generation ORG - Set program origin The ORG directive sets the location counter to an absolute value. The value to set is given as a parameter. If an ORG directive is given within a Data Segment, then it is the SRAM location counter which is set, if the directive is given within a Code Segment, then it is the Program memory counter which is set and if the directive is given within an EEPROM Segment, then it is the EEPROM location counter which is set. If the directive is preceded by a label (on the same source code line), the label will be given the value of the parameter. The default values of the Code and EEPROM location counters are zero, whereas the default value of the SRAM location counter is 32 (due to the registers occupying addresses 0-31) when the assembling is started. Note that the EEPROM and SRAM location counters count bytes whereas the Program memory location counter counts words..org expression.dseg ; Start data segment.org 0x67 ; Set SRAM address to hex 67 variable:.byte 1 ; Reserve a byte at SRAM ; adr.67h.eseg ; Start EEPROM Segment.ORG 0x20 ; Set EEPROM location ; counter eevar:.dw 0xfeff ; Initialize one word.cseg.org 0x10 ; Set Program Counter to hex ; 10 mov r0,r1 ; Do something 4-16 Development Tools User Guide
17 SET - Set a symbol equal to an expression The SET directive assigns a value to a label. This label can then be used in later expressions. A label assigned to a value by the SET directive can be changed later in the program..set label = expression.set io_offset = 0x23.SET porta = io_offset + 2.CSEG ; Start code segment clr r2 ; Clear register 2 out porta,r2 ; Write to Port A 4.6 Expressions The Assembler incorporates expressions. Expressions can consist of operands, operators and functions. All expressions are internally 32 bits Operands The following operands can be used: User defined labels which are given the value of the location counter at the place they appear. User defined variables defined by the SET directive User defined constants defined by the EQU directive Integer constants: constants can be given in several formats, including a) Decimal (default): 10, 255 b) Hexadecimal (two notations): 0x0a, $0a, 0xff, $ff c) Binary: 0b , 0b PC - the current value of the Program memory location counter Functions The following functions are defined: LOW(expression) returns the low byte of an expression HIGH(expression) returns the second byte of an expression BYTE2(expression) is the same function as HIGH BYTE3(expression) returns the third byte of an expression BYTE4(expression) returns the fourth byte of an expression LWRD(expression) returns bits 0-15 of an expression HWRD(expression) returns bits of an expression PAGE(expression) returns bits of an expression EXP2(expression) returns 2^expression LOG2(expression) returns the integer part of log2(expression) Operators The Assembler supports a number of operators which are described here. The higher the precedence, the higher the priority. Expressions may be enclosed in parentheses, and such expressions are always evaluated before combined with anything outside the parentheses. Development Tools User Guide 4-17
18 Logical Not Symbol:! Description: Unary operator which returns 1 if the expression was zero, and returns 0 if the expression was nonzero Precedence: 14 ldi r16,!0xf0 ; Load r16 with 0x Bitwise Not Symbol: ~ Description: Unary operator which returns the input expression with all bits inverted Precedence: 14 ldi r16,~0xf0 ; Load r16 with 0x0f Unary Minus Symbol: - Description: Unary operator which returns the arithmetic negation of an expression Precedence: 14 ldi r16,-2 ; Load -2(0xfe) in r Multiplication Symbol: * Description: Binary operator which returns the product of two expressions Precedence: 13 ldi r30,label*2 ; Load r30 with label* Division Symbol: / Description: Binary operator which returns the integer quotient of the left expression divided by the right expression Precedence: 13 ldi r30,label/2 ; Load r30 with label/ Addition Symbol: + Description: Binary operator which returns the sum of two expressions Precedence: 12 ldi r30,c1+c2 ; Load r30 with c1+c Subtraction Symbol: - Description: Binary operator which returns the left expression minus the right expression Precedence: 12 ldi r17,c1-c2 ;Load r17 with c1-c Shift left Symbol: << Description: Binary operator which returns the left expression shifted left a number of times given by the right expression Precedence: 11 ldi r17,1<<bitmask ;Load r17 with 1 shifted ;left bitmask times 4-18 Development Tools User Guide
19 Shift right Symbol: >> Description: Binary operator which returns the left expression shifted right a number of times given by the right expression. Precedence: 11 ldi r17,c1>>c2 ;Load r17 with c1 shifted ;right c2 times Less than Symbol: < Description: Binary operator which returns 1 if the signed expression to the left is Less than the signed expression to the right, 0 otherwise Precedence: 10 ori r18,bitmask*(c1<c2)+1 ;Or r18 with ;an expression Less or Equal Symbol: <= Description: Binary operator which returns 1 if the signed expression to the left is Less than or Equal to the signed expression to the right, 0 otherwise Precedence: 10 ori r18,bitmask*(c1<=c2)+1 ;Or r18 with ;an expression Greater than Symbol: > Description: Binary operator which returns 1 if the signed expression to the left is Greater than the signed expression to the right, 0 otherwise Precedence: 10 ori r18,bitmask*(c1>c2)+1 ;Or r18 with ;an expression Greater or Equal Symbol: >= Description: Binary operator which returns 1 if the signed expression to the left is Greater than or Equal to the signed expression to the right, 0 otherwise Precedence: 10 ori r18,bitmask*(c1>=c2)+1 ;Or r18 with ;an expression Equal Symbol: == Description: Binary operator which returns 1 if the signed expression to the left is Equal to the signed expression to the right, 0 otherwise Precedence: 9 andi r19,bitmask*(c1==c2)+1 ;And r19 with ;an expression Development Tools User Guide 4-19
20 Not Equal Symbol:!= Description: Binary operator which returns 1 if the signed expression to the left is Not Equal to the signed expression to the right, 0 otherwise Precedence: 9.SET flag=(c1!=c2) ;Set flag to 1 or Bitwise And Symbol: & Description: Binary operator which returns the bitwise And between two expressions Precedence: 8 ldi r18,high(c1&c2) ;Load r18 with an expression Bitwise Xor Symbol: ^ Description: Binary operator which returns the bitwise Exclusive Or between two expressions Precedence: 7 ldi r18,low(c1^c2) ;Load r18 with an expression Bitwise Or Symbol: Description: Binary operator which returns the bitwise Or between two expressions Precedence: 6 ldi r18,low(c1 c2) ;Load r18 with an expression Logical And Symbol: && Description: Binary operator which returns 1 if the expressions are both nonzero, 0 otherwise Precedence: 5 ldi r18,low(c1&&c2) ;Load r18 with an expression Logical Or Symbol: Description: Binary operator which returns 1 if one or both of the expressions are nonzero, 0 otherwise Precedence: 4 ldi r18,low(c1 c2) ;Load r18 with an expression 4-20 Development Tools User Guide
21 4.7 Microsoft Windows specifics This section describes the features specific to WAVRASM. Only the menu items specific to the Assembler are described. It is assumed that the user is familiar with the Search and Window menu items. A typical editing session with the Assembler is shown in the following figure Opening Assembly Files The Integrated Editor Typing and Formatting Text Moving the Insertion Point A new or existing assembly files can be opened in WAVRASM. Theoretically there is no limit on how many assembly files which can be open at one time. The size of each file must be less than about 28K bytes due to a limitation in MS-Windows. It is still possible to assemble files larger than this, but they can not be edited in the integrated editor. A new editor window is created for every assembly file which is opened. To create a new assembly file click the button on the toolbar or choose File New (ALT-F N) from the menu. To open an existing file click the button on the toolbar or choose File Open (ALT-F O) from the menu. When WAVRASM is finished loading a file, the text editor will be inactive. Refer to the section on opening files on how to open a file. Right after a file is loaded into an editor window of the Assembler, the insertion point appears in the upper left corner of the window. The insertion point moves to the right when typing. If text is written beyond the right margin, the text automatically scrolls to the left so that the insertion point is always visible. The insertion point can be moved anywhere by moving the mouse cursor to the point where the insertion point is wanted and click the left button. Development Tools User Guide 4-21
22 To move the insertion point with the keyboard, use the following keys or key combinations: To move the insertion point: to the right in a line of text to the left in a line of text up in a body of text down in a body of text to the beginning of a line of text to the end of a line of text to the beginning of the file to the end of the file Press: Right arrow key Left arrow key Up arrow key Down arrow key Home End Ctrl+Home Ctrl+End Formatting Text The keys in the table below describes the necessary operations to type in the text exactly as wanted. To: insert a space delete a character to the left delete a character to the right end a line indent a line insert a tab stop Press: Spacebar Backspace Del Enter Tab Tab To split a line, move the insertion point to the position where the break is wanted and press Enter. To join two lines, move the insertion point to the beginning of the line to move, and press Backspace. The editor joins the line with the line above Scrolling If a line of text is longer or wider than can be shown at one time, the file can be scrolled by using the scroll bars Editing Text The Edit-menu contains some functions which can be of much help in editing. Text can be deleted, moved or copied to new locations. The Undo command can be used to revert the last edit. Transferring text to and from other windows or applications can be done via the clipboard. When text is deleted or copied with the commands Cut or Copy, the text is placed in the Clipboard. The Paste command copies text from the Clipboard to the editor Selecting Text Before a command is selected from the Edit-menu to edit text, the text to operate on must first be selected. Selecting text with the keyboard: 1. Use the arrow keys to move the insertion point to the beginning of the text to select. 2. Press and hold the Shift-key while moving the insertion point to the end of the text to select. Release the Shift-key. To cancel the selection, press one of the arrow keys Development Tools User Guide
23 Selecting text with the mouse: 1. Move the mouse cursor to the beginning of the text to select. 2. Hold down the left mouse button while moving the cursor to the end of the text to select. Release the mouse button. 3. To cancel the selection, press the left mouse button or one of the arrow keys Replacing Text When text is selected, it can be immediately replaced it by typing new text. The selected text is deleted when the first new character is typed. Replacing text: 1. Select the text to replace. 2. Type the new text. Deleting Text: 1. Select the text to delete. 2. Press the Del key. To restore the deleted text, press the key on the toolbar or choose Edit Undo (Alt+Backspace) from the menu immediately after deleting the text Moving Text Text can be moved from one location in the editor by first copy the text to the Clipboard with the Cut command, and then pasting it to its new location using the Paste command. To move text: 1. Select the text to move. 2. Press the button on the toolbar or choose Edit Cut (Shift+Del) from the menu. The text is placed in the Clipboard. 3. Move the insertion point to the new location. 4. Press the button on the toolbar or choose Edit Paste (Shift+Ins) from the menu Copying Text If some text will be used more than once, it need not be typed each time. The text can be copied to the Clipboard with Copy, and can then be pasted in many places by using the Paste command. To copy text: 1. Select the text to copy. 2. Click the button on the toolbar or choose Edit Copy (Ctrl+Ins) from the menu. The text is placed in the Clipboard. 3. Move the insertion point to the location to place the text. 4. Click the button on the toolbar or choose Edit Paste (Shift-Ins) from the menu Undoing an Edit The Undo command can be used to cancel the last edit. For example, text may accidentally have been deleted, or it has been copied to a wrong location. If the Undo command is chosen immediately after the mistake was done, the text will be restored to what it was before the mistake. To undo the last edit click the button on the toolbar or choose Edit Undo (Alt+Backspace) from the menu Click On Errors The Assembler has a click on error function. When a program is assembled, a message window appears on the screen. If errors are encountered, the errors are listed in this message window. If one of the error lines in the message window is clicked, the source line turns inverted red. If the error is in a included file, nothing happens. Development Tools User Guide 4-23
24 This feature is demonstrated in the following figure: Setting Program Options If the message window line is doubleclicked, the file containing the error becomes the active window, and the cursor is placed at the beginning of the line containing the error. If the file containing the error is not opened (for instance an included file), then the file is automatically opened. Note that this function points to lines in the assembled file. This means that if lines are added or removed in the source file, the file must be reassembled in order to get the line numbers right. Some of the default values of WAVRASM can be changed in the options menu. If Options is selected on the menu bar, the following dialog box pops up Development Tools User Guide
25 In the box labeled List-file extension the default extension on the list file(s) is written, and in the box labeled Output-file extension the default extension of the output file is written. In the box labeled Output file format the type of format wanted on the output file can be selected. If the OK button is clicked, the values are remembered in subsequent runs of the Assembler. Note that the object file (used by the simulator) is not affected by these options; the extension of the object file is always OBJ and the format is always the same. If an EEPROM Segment has been defined in the code, the assembler will also generate a file with extension EEP which is the initial values for the EEPROM memory. This EEPROM initialization file is in the same format as the Output file format selected. The Wrap relative jumps option tells the Assembler to use wrapping of addresses. This feature is only useful when assembling for devices with 4K words of program memory. Using this option on such devices, the relative jump and call instructions will reach the entire program memory. The Save before assemble option makes the Assembler automatically save the contents of the editor before assembling is done. 4.8 Command line version For the MS-DOS command line version the Assembler is invoked by the command AVRASM [-m -i -g][-w] input.asm output.lst output.rom AVRASM will now read source from input.asm, produce the listfile output.lst, output.rom and the object file input.obj. The objectfile '*.obj' is used by the MS-Windows simulator. The user can select which output format to generate by using one of the options -m (Motorola S-record), -i (Intel Hex) or -g (Generic). The Generic file format is used by default. The -w option tells the Assembler to use wrapping of addresses. This feature is only used when assembling for devices with 4K words of program memory. Using this switch on these devices, the relative jump and call instructions will reach the entire program memory. Development Tools User Guide 4-25
26 4-26 Development Tools User Guide
Instruction Set. Instruction Set Nomenclature: Status Register (SREG) Registers and Operands
Nomenclature: Status Register (SREG) SREG: Status register C: Carry flag in status register Z: Zero flag in status register N: Negative flag in status register V: Two s complement overflow indicator S:
Building A RISC Microcontroller in an FPGA
Building A RISC Microcontroller in an FPGA Name : Yap Zi He Course : 4 SEL Supervisor : PM Muhammad Mun im Ahmad Zabidi Introduction Reduce Instruction Set Computer (RISC) is a new trend on computer design.
Instruction Set. Instruction Set Nomenclature. Status Register (SREG) Registers and Operands
Instruction Set Nomenclature Status Register (SREG) SREG: Status register C: Carry flag Z: Zero flag N: Negative flag V: Two s complement overflow indicator S: N V, For signed tests H: Half Carry flag
Atmel AVR 8-bit Instruction Set
Atmel AVR 8-bit Instruction Set Instruction Set Nomenclature Status Register (SREG) SREG: Status Register C: Carry Flag Z: Zero Flag N: Negative Flag V: Two s complement overflow indicator S: N V, For
Instruction Set. Instruction Set Nomenclature. Status Register (SREG) Registers and Operands
Instruction Set Nomenclature Status Register (SREG) SREG: Status register C: Carry flag Z: Zero flag N: Negative flag V: Two s complement overflow indicator S: N V, For signed tests H: Half Carry flag
Atmel AVR 8-bit Instruction Set
Atmel AVR 8-bit Instruction Set Instruction Set Nomenclature Status Register (SREG) SREG: Status Register C: Carry Flag Z: Zero Flag N: Negative Flag V: Two s complement overflow indicator S: N V, For
Programming of Microcontrollers in Assembly Language
Brno University of Technology Programming of Microcontrollers in Assembly Language Microprocessor Techniques and Embedded Systems Lecture 2 Dr. Tomas Fryza Contents Basic Architectures in Microprocessor
The AVR Microcontroller and C Compiler Co-Design Dr. Gaute Myklebust ATMEL Corporation ATMEL Development Center, Trondheim, Norway
The AVR Microcontroller and C Compiler Co-Design Dr. Gaute Myklebust ATMEL Corporation ATMEL Development Center, Trondheim, Norway Abstract High Level Languages (HLLs) are rapidly becoming the standard
Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board
Quick Start Tutorial Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board This explains how to use the TASKING Microsoft* Windows*-based software development tools
How to use AVR Studio for Assembler Programming
How to use AVR Studio for Assembler Programming Creating your first assembler AVR project Run the AVRStudio program by selecting Start\Programs\Atmel AVR Tools\AVR Studio. You should see a screen like
Introduction to Microsoft Excel 2010
Introduction to Microsoft Excel 2010 Screen Elements Quick Access Toolbar The Ribbon Formula Bar Expand Formula Bar Button File Menu Vertical Scroll Worksheet Navigation Tabs Horizontal Scroll Bar Zoom
Comp 255Q - 1M: Computer Organization Lab #3 - Machine Language Programs for the PDP-8
Comp 255Q - 1M: Computer Organization Lab #3 - Machine Language Programs for the PDP-8 January 22, 2013 Name: Grade /10 Introduction: In this lab you will write, test, and execute a number of simple PDP-8
Windows XP Pro: Basics 1
NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has
Graded ARM assembly language Examples
Graded ARM assembly language Examples These examples have been created to help students with the basics of Keil s ARM development system. I am providing a series of examples that demonstrate the ARM s
MICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
CNC Transfer. Operating Manual
Rank Brothers Ltd CNC Transfer Operating Manual Manufactured by: Rank Brothers Ltd 56 High Street, Bottisham, Cambridge CB25 9DA, England Tel: +44 (0)1223 811369 Fax: +44 (0)1223 811441 Website: http://www.rankbrothers.co.uk/
1 Classical Universal Computer 3
Chapter 6: Machine Language and Assembler Christian Jacob 1 Classical Universal Computer 3 1.1 Von Neumann Architecture 3 1.2 CPU and RAM 5 1.3 Arithmetic Logical Unit (ALU) 6 1.4 Arithmetic Logical Unit
Z80 Instruction Set. Z80 Assembly Language
75 Z80 Assembly Language The assembly language allows the user to write a program without concern for memory addresses or machine instruction formats. It uses symbolic addresses to identify memory locations
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
MACHINE ARCHITECTURE & LANGUAGE
in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based
8085 INSTRUCTION SET
DATA TRANSFER INSTRUCTIONS Opcode Operand Description 8085 INSTRUCTION SET INSTRUCTION DETAILS Copy from source to destination OV Rd, Rs This instruction copies the contents of the source, Rs register
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without
Excel 2007 Basic knowledge
Ribbon menu The Ribbon menu system with tabs for various Excel commands. This Ribbon system replaces the traditional menus used with Excel 2003. Above the Ribbon in the upper-left corner is the Microsoft
Microsoft Excel 2007. Introduction to Microsoft Excel 2007
Microsoft Excel 2007 Introduction to Microsoft Excel 2007 Excel is an electronic spreadsheet to organize your data into rows and columns. One can use it to perform basic to advanced level mathematical
ECDL. European Computer Driving Licence. Spreadsheet Software BCS ITQ Level 2. Syllabus Version 5.0
European Computer Driving Licence Spreadsheet Software BCS ITQ Level 2 Using Microsoft Excel 2010 Syllabus Version 5.0 This training, which has been approved by BCS, The Chartered Institute for IT, includes
Mixing C and assembly language programs Copyright 2007 William Barnekow <[email protected]> All Rights Reserved
Mixing C and assembly language programs Copyright 2007 William Barnekow All Rights Reserved It is sometimes advantageous to call subroutines written in assembly language from programs
Handout: Word 2010 Tips and Shortcuts
Word 2010: Tips and Shortcuts Table of Contents EXPORT A CUSTOMIZED QUICK ACCESS TOOLBAR... 2 IMPORT A CUSTOMIZED QUICK ACCESS TOOLBAR... 2 USE THE FORMAT PAINTER... 3 REPEAT THE LAST ACTION... 3 SHOW
3 IDE (Integrated Development Environment)
Visual C++ 6.0 Guide Part I 1 Introduction Microsoft Visual C++ is a software application used to write other applications in C++/C. It is a member of the Microsoft Visual Studio development tools suite,
Excel 2003 Tutorial I
This tutorial was adapted from a tutorial by see its complete version at http://www.fgcu.edu/support/office2000/excel/index.html Excel 2003 Tutorial I Spreadsheet Basics Screen Layout Title bar Menu bar
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
AVR034: Mixing C and Assembly Code with IAR Embedded Workbench for AVR. 8-bit Microcontroller. Application Note. Features.
AVR034: Mixing C and Assembly Code with IAR Embedded Workbench for AVR Features Passing Variables Between C and Assembly Code Functions Calling Assembly Code Functions from C Calling C Functions from Assembly
1 Description of The Simpletron
Simulating The Simpletron Computer 50 points 1 Description of The Simpletron In this assignment you will write a program to simulate a fictional computer that we will call the Simpletron. As its name implies
Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT...
Word 2010: The Basics Table of Contents THE WORD 2010 WINDOW... 2 SET UP A DOCUMENT... 3 INTRODUCING BACKSTAGE... 3 CREATE A NEW DOCUMENT... 4 Open a blank document... 4 Start a document from a template...
Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:
Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small amount of RAM. Programmable ROM and/or flash memory.
WORDPAD TUTORIAL WINDOWS 7
WORDPAD TUTORIAL WINDOWS 7 Quick Access bar Home Tab Triangles = More Commands Groups on the Home tab Right paragraph margin Left paragraph Margin & Indent Paragraphs Ruler Hover the mouse pointer over
Migrating to Excel 2010 from Excel 2003 - Excel - Microsoft Office 1 of 1
Migrating to Excel 2010 - Excel - Microsoft Office 1 of 1 In This Guide Microsoft Excel 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key
ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6)
ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6) 1 COMPUTER LANGUAGES In order for a computer to be able to execute a program, the program must first be present
Creating tables of contents and figures in Word 2013
Creating tables of contents and figures in Word 2013 Information Services Creating tables of contents and figures in Word 2013 This note shows you how to create a table of contents or a table of figures
Model 288B Charge Plate Graphing Software Operators Guide
Monroe Electronics, Inc. Model 288B Charge Plate Graphing Software Operators Guide P/N 0340175 288BGraph (80207) Software V2.01 100 Housel Ave PO Box 535 Lyndonville NY 14098 1-800-821-6001 585-765-2254
In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move
WORD PROCESSING In this session, we will explain some of the basics of word processing. The following are the outlines: 1. Start Microsoft Word 11. Edit the Document cut & move 2. Describe the Word Screen
Introduction to Microsoft Excel 1 Part I
Introduction to Microsoft Excel 1 Part I Objectives When you complete this workshop you will be able to: Recognize Excel s basic operations and tools; Develop simple worksheets; Use formulas; Format worksheets;
User Manual. DG LINK Application Program 071-0056-50. www.tektronix.com. This document applies to firmware version 2.00 and above.
User Manual DG LINK Application Program 071-0056-50 This document applies to firmware version 2.00 and above. www.tektronix.com Copyright Tektronix Japan, Ltd. All rights reserved. Copyright Tektronix,
Faculty of Engineering Student Number:
Philadelphia University Student Name: Faculty of Engineering Student Number: Dept. of Computer Engineering Final Exam, First Semester: 2012/2013 Course Title: Microprocessors Date: 17/01//2013 Course No:
Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.
Working with Tables in Microsoft Word The purpose of this document is to lead you through the steps of creating, editing and deleting tables and parts of tables. This document follows a tutorial format
Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C
Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection
Lab 1: Full Adder 0.0
Lab 1: Full Adder 0.0 Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for the circuit. Finally, you will verify
RIT Installation Instructions
RIT User Guide Build 1.00 RIT Installation Instructions Table of Contents Introduction... 2 Introduction to Excel VBA (Developer)... 3 API Commands for RIT... 11 RIT API Initialization... 12 Algorithmic
Programmer s Model = model of µc useful to view hardware during execution of software instructions
HC12/S12 Programmer s Model Programmer s Model = model of µc useful to view hardware during execution of software instructions Recall: General Microcontroller/Computer Architecture note: Control Unit &
13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES
LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated
Excel. Microsoft Office s spreadsheet application can be used to track. and analyze numerical data for display on screen or in printed
Excel Microsoft Office s spreadsheet application can be used to track and analyze numerical data for display on screen or in printed format. Excel is designed to help you record and calculate data, and
Using Microsoft Project 2000
Using MS Project Personal Computer Fundamentals 1 of 45 Using Microsoft Project 2000 General Conventions All text highlighted in bold refers to menu selections. Examples would be File and Analysis. ALL
Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5
Introduction To Microsoft Office PowerPoint 2007. Bob Booth July 2008 AP-PPT5 University of Sheffield Contents 1. INTRODUCTION... 3 2. GETTING STARTED... 4 2.1 STARTING POWERPOINT... 4 3. THE USER INTERFACE...
Getting Started on the Computer With Mouseaerobics! Windows XP
This handout was modified from materials supplied by the Bill and Melinda Gates Foundation through a grant to the Manchester City Library. Getting Started on the Computer With Mouseaerobics! Windows XP
Lecture 3 Addressing Modes, Instruction Samples, Machine Code, Instruction Execution Cycle
Lecture 3 Addressing Modes, Instruction Samples, Machine Code, Instruction Execution Cycle Contents 3.1. Register Transfer Notation... 2 3.2. HCS12 Addressing Modes... 2 1. Inherent Mode (INH)... 2 2.
WICE USB. User s Guide. Integrated Development Environment. Project manager, Editor, Assembler, Linker and Debugger
WICE USB User s Guide Integrated Development Environment Project manager, Editor, Assembler, Linker and Debugger ELAN MICROELECTRONICS CORPORATION First Edition 4/1/2004 1 Index I. Introduction...3 II.
Microsoft Excel 2010 Tutorial
1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and
Visual Logic Instructions and Assignments
Visual Logic Instructions and Assignments Visual Logic can be installed from the CD that accompanies our textbook. It is a nifty tool for creating program flowcharts, but that is only half of the story.
KPN SMS mail. Send SMS as fast as e-mail!
KPN SMS mail Send SMS as fast as e-mail! Quick start Start using KPN SMS mail in 5 steps If you want to install and use KPN SMS mail quickly, without reading the user guide, follow the next five steps.
The Center for Teaching, Learning, & Technology
The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston
Intro to Excel spreadsheets
Intro to Excel spreadsheets What are the objectives of this document? The objectives of document are: 1. Familiarize you with what a spreadsheet is, how it works, and what its capabilities are; 2. Using
Appendix K Introduction to Microsoft Visual C++ 6.0
Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):
MS Project Tutorial for Senior Design Using Microsoft Project to manage projects
MS Project Tutorial for Senior Design Using Microsoft Project to manage projects Overview: Project management is an important part of the senior design process. For the most part, teams manage projects
Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Word basics Word is a powerful word processing and layout application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features that
MS Word 2007 practical notes
MS Word 2007 practical notes Contents Opening Microsoft Word 2007 in the practical room... 4 Screen Layout... 4 The Microsoft Office Button... 4 The Ribbon... 5 Quick Access Toolbar... 5 Moving in the
Why using ATmega16? University of Wollongong Australia. 7.1 Overview of ATmega16. Overview of ATmega16
s schedule Lecture 7 - C Programming for the Atmel AVR School of Electrical, l Computer and Telecommunications i Engineering i University of Wollongong Australia Week Lecture (2h) Tutorial (1h) Lab (2h)
Creating Basic Excel Formulas
Creating Basic Excel Formulas Formulas are equations that perform calculations on values in your worksheet. Depending on how you build a formula in Excel will determine if the answer to your formula automatically
Microsoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
Q&As: Microsoft Excel 2013: Chapter 2
Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats
Introduction to Word 2007
Introduction to Word 2007 You will notice some obvious changes immediately after starting Word 2007. For starters, the top bar has a completely new look, consisting of new features, buttons and naming
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180B Lab 7: MISP Processor Design Spring 1995 Objective: In this lab, you will complete the design of the MISP processor,
Microsoft Access 2010 Part 1: Introduction to Access
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3
3. Add and delete a cover page...7 Add a cover page... 7 Delete a cover page... 7
Microsoft Word: Advanced Features for Publication, Collaboration, and Instruction For your MAC (Word 2011) Presented by: Karen Gray ([email protected]) Word Help: http://mac2.microsoft.com/help/office/14/en-
Computer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.
SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance
How It All Works. Other M68000 Updates. Basic Control Signals. Basic Control Signals
CPU Architectures Motorola 68000 Several CPU architectures exist currently: Motorola Intel AMD (Advanced Micro Devices) PowerPC Pick one to study; others will be variations on this. Arbitrary pick: Motorola
INGENIEURBÜRO FÜR TECHNOLOGIE TRANSFER DIPL.-ING. B. P. SCHULZ-HEISE. Getting Started with. S7 for Windows. Version 6.x
INGENIEURBÜRO FÜR TECHNOLOGIE TRANSFER DIPL.-ING. B. P. SCHULZ-HEISE Getting Started with S7 for Windows Version 6.x TTI Ingenieurbüro für Technologie Transfer Dipl. Ing. B. Peter Schulz-Heise Stadtring
Windows 95. 2a. Place the pointer on Programs. Move the pointer horizontally to the right into the next window.
Word Processing Microsoft Works Windows 95 The intention of this section is to instruct basic word processing skills such as creating, editing, formatting, saving and closing a new document. Microsoft
Informatica e Sistemi in Tempo Reale
Informatica e Sistemi in Tempo Reale Introduction to C programming Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 25, 2010 G. Lipari (Scuola Superiore Sant Anna)
Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14
LogicWorks 4 Tutorials Jianjian Song Department of Electrical and Computer Engineering Rose-Hulman Institute of Technology March 23 Table of Contents LogicWorks 4 Installation and update...2 2 Tutorial
Step Motor Controller. Application Note. AVR360: Step Motor Controller. Theory of Operation. Features. Introduction
AVR360: Step Motor Controller Features High-Speed Step Motor Controller Interrupt Driven Compact Code (Only 10 Bytes Interrupt Routine) Very High Speed Low Computing Requirement Supports all AVR Devices
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
First Bytes Programming Lab 2
First Bytes Programming Lab 2 This lab is available online at www.cs.utexas.edu/users/scottm/firstbytes. Introduction: In this lab you will investigate the properties of colors and how they are displayed
Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Excel basics Excel is a powerful spreadsheet and data analysis application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features
Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas
Introduction Excel Level Two This workshop introduces you to formulas, functions, moving and copying data, using autofill, relative and absolute references, and formatting cells. Contents Introduction
Microsoft Migrating to Word 2010 from Word 2003
In This Guide Microsoft Word 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free Word 2010 training,
Assembly Language Programming
Assembly Language Programming Assemblers were the first programs to assist in programming. The idea of the assembler is simple: represent each computer instruction with an acronym (group of letters). Eg:
2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)
1 ASCII TABLE 2 ASCII TABLE (DOS) 3 ASCII TABLE (Window) 4 Keyboard Codes The Diagram below shows the codes that are returned when a key is pressed. For example, pressing a would return 0x61. If it is
1998-2002 by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. 2.
Version 2.0 1998-2002 by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. 2.00H 2 Contents 1. Downloader...4 2. Editor and compiler...8
DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB
DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB Contents at a Glance 1. Introduction of MPLAB... 4 2. Development Tools... 5 3. Getting Started... 6 3.1. Create a Project... 8 3.2. Start MPLAB...
M6800. Assembly Language Programming
M6800 Assembly Language Programming 1 3. MC6802 MICROPROCESSOR MC6802 microprocessor runs in 1MHz clock cycle. It has 64 Kbyte memory address capacity using 16-bit addressing path (A0-A15). The 8-bit data
Word Processing programs and their uses
Word Processing programs and their uses An application that provides extensive tools for creating all kinds of text based programs. They are not limited to working with text and enable you to add images
An Introduction to Assembly Programming with the ARM 32-bit Processor Family
An Introduction to Assembly Programming with the ARM 32-bit Processor Family G. Agosta Politecnico di Milano December 3, 2011 Contents 1 Introduction 1 1.1 Prerequisites............................. 2
MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.
MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros. Record a macro 1. On the Developer tab, in the Code group, click Record Macro. 2. In
Microsoft Excel Tips & Tricks
Microsoft Excel Tips & Tricks Collaborative Programs Research & Evaluation TABLE OF CONTENTS Introduction page 2 Useful Functions page 2 Getting Started with Formulas page 2 Nested Formulas page 3 Copying
Chapter 7D The Java Virtual Machine
This sub chapter discusses another architecture, that of the JVM (Java Virtual Machine). In general, a VM (Virtual Machine) is a hypothetical machine (implemented in either hardware or software) that directly
Basic Excel Handbook
2 5 2 7 1 1 0 4 3 9 8 1 Basic Excel Handbook Version 3.6 May 6, 2008 Contents Contents... 1 Part I: Background Information...3 About This Handbook... 4 Excel Terminology... 5 Excel Terminology (cont.)...
Excel 2003 A Beginners Guide
Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
PROBLEMS (Cap. 4 - Istruzioni macchina)
98 CHAPTER 2 MACHINE INSTRUCTIONS AND PROGRAMS PROBLEMS (Cap. 4 - Istruzioni macchina) 2.1 Represent the decimal values 5, 2, 14, 10, 26, 19, 51, and 43, as signed, 7-bit numbers in the following binary
Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003
In This Guide Microsoft PowerPoint 2010 looks very different, so we created this guide to help you minimize the learning curve. Read on to learn key parts of the new interface, discover free PowerPoint
Introduction to MS WINDOWS XP
Introduction to MS WINDOWS XP Mouse Desktop Windows Applications File handling Introduction to MS Windows XP 2 Table of Contents What is Windows XP?... 3 Windows within Windows... 3 The Desktop... 3 The
