AssemblerUserGuide.pdf
(
346 KB
)
Pobierz
PSoC Designer: Assembly Language User Guide
1
Draft Version
PSoC Designer:
Assembly Language
User Guide
Revision 1.06
CMS10003A
Last Revised: April 9, 2001
Cypress MicroSystems, Inc.
PSoC Designer: Assembly Language User Guide
1
Copyright Information
Copyright © 2000-2001 Cypress MicroSystems, Inc. All rights reserved.
Programmable System on Chip: PSoC
™
is a trademark of
Cypress MicroSystems.
The information contained herein is subject to change without notice.
Copyright © 1999-2000 ImageCraft Creations Inc. All rights reserved.
PSoC Designer: Assembly Language User Guide
1
Two-Minute Overview
This two-minute overview of
PSoC Designer: Assembly Language User Guide
was purposefully placed up front for you advanced engineers who are ready to
program the chip but need a
quick
point in the right direction. (Now we only have
a minute and-a-half left.)
Overview
35 seconds
You have the chip, configured the device, and
placed the User Modules in the PSoC blocks, now
you are ready to program the chip using assembly
language code.
This guide provides:
Basics
15 seconds
instructions related to address spaces,
modes, and destination of results
explanation of assembly-file syntax, input
and output
assembler directives
the complete instruction set.
Upon opening PSoC Designer, click the Application
Editor icon in the toolbar to access the Assembler
and pre-configured source files.
The source files appear in the left frame. Double-
click individual files to appear in the main frame
where you can add and modify code using the
enabled edit icons.
Quick
Reference
30 seconds
Click a hyperlink to reference key material:
Notation Standards
Microprocessor
and related address information
Assembly File Syntax
List File Format
Assembler Directives
Instruction Set
or
Instruction Set Reference Table
Bottom Line
10 seconds
Programmable System on Chip PSoC
™
Designer
empowers you to customize the functionality you
desire into the M8C microprocessor.
Time’s up… Now get to work.
PSoC Designer: Assembly Language User Guide
2
Documentation Conventions
Following, are easily identifiable conventions used throughout the PSoC
Designer suite of product documentation.
Usage
Times New Roman Size 10-12
Displays an input command:
iasm8c -g
Courier New Size 10
Convention
Displays output:
//
//
//
//
//
--- 000AREA
0000
0002
0004
0006
8033
8031
801F
801E
Created by PSoC Designer
from template BOOT.ASM
Boot Code, from Reset
Change this file at your own risk!
TOP(ABS)
org
jmp
jmp
jmp
jmp
0
__start
__start
Interrupt0
Interrupt1
Courier Size 12
Arial Size 8
Displays file locations:
…\…\Project Name\output
Displays
Instruction Set Reference Table
data:
01h ADD A k
Italics
[Ctrl] [C]
File >> Open
Displays file names:
projectname.rom
Displays keyboard commands:
[Enter]
Displays menu paths:
Edit >> Cut
PSoC Designer: Assembly Language User Guide
3
Notation Standards
Following, is input notation referenced throughout this guide and wherever
applicable in the PSoC Designer suite of product documentation.
Internal Registers:
Notation
A
CF
expr
F
I
K
PC
SP
X
ZF
Description
Primary Accumulator
Carry Flag
Expression
Flags (ZF, CF, and Others)
Operand 1 Value
Operand 2 Value
(PCH,PCL)
Stack Pointer
X Register
Zero Flag
Assembler Directives:
Symbol
AREA
BLK
BLKW
DB
DS
DSU
DW
DWL
ELSE
ENDIF
EQU
EXPORT
IF
INCLUDE
MACRO/ENDM
ORG
Assembler Directive
Area
RAM Block (in Bytes)
RAM Block in Words (16 Bits)
Define Byte
Define ASCII String
Define UNICODE String
Define Word (2 Bytes)
Define Word with Little Endian Ordering
Alternative Result of IF…ELSE…ENDIF
End of IF…ELSE…ENDIF
Equate Label to Variable Value
Export
Conditional Assembly
Include Source File
Macro Definition Start/End
Area Origin
Plik z chomika:
Kot_Maciek
Inne pliki z tego folderu:
pd_full_ver1.31.exe
(11399 KB)
8C2000Highlights.pdf
(85 KB)
8C25KDataSheet.pdf
(810 KB)
AssemblerUserGuide.pdf
(346 KB)
C_LangUserGuide.pdf
(158 KB)
Inne foldery tego chomika:
1wire
555
Actel Firmware Catalog Software v9.1
Actel SoftConsole v3.3
ActelLiberoIDE9.1SP2
Zgłoś jeśli
naruszono regulamin