Xilinx UG129 Answering Machine User Manual


 
PicoBlaze 8-bit Embedded Microcontroller www.xilinx.com 69
UG129 (v1.1.2) June 24, 2008
Differences Between the KCPSM3 Assembler and pBlazIDE
R
Differences Between the KCPSM3 Assembler and pBlazIDE
Table 9-2 details the differences between the KCPSM3 and pBlazIDE instruction
mnemonics.
Directives
Table 9-3 lists the KCPSM3 and PBlazIDE directives for various functions.
Table 9-2: Instruction Mnemonic Differences between KCPSM3 and pBlazIDE
KCPSM3 Instruction pBlazIDE Instruction
RETURN RET
RETURN C RET C
RETURN NC RET NC
RETURN Z RET Z
RETURN NZ RET NZ
RETURNI ENABLE RETI ENABLE
RETURNI DISABLE RETI DISABLE
ADDCY ADDC
SUBCY SUBC
INPUT sX, (sY) IN sX, sY
(no parentheses)
INPUT sX, kk IN sX, kk
OUTPUT sX, (sY) OUT sX, sY
(no parentheses)
OUTPUT sX, kk OUT sX, kk
ENABLE INTERRUPT EINT
DISABLE INTERRUPT DINT
COMPARE COMP
STORE sX, (sY) STORE sX, sY
(no parentheses)
FETCH sX, (sY) FETCH sX, sY
(no parentheses)
Table 9-3: Directives
Function KCPSM3 Directive PBlazIDE Directive
Locating Code ADDRESS 3FF ORG $3FF
Aliasing Register Names NAMEREG s5, myregname myregname EQU s5
Declaring Constants CONSTANT myconstant, 80 myconstant EQU $80
Naming the program ROM file Named using the same base filename
as the assembler source file
VHDL "template.vhd",
"target.vhd", "entity_name"