45205 Parallax Inc, 45205 Datasheet - Page 44

SX TECH BOARD

45205

Manufacturer Part Number
45205
Description
SX TECH BOARD
Manufacturer
Parallax Inc
Type
MCUr
Datasheet

Specifications of 45205

Contents
Board
For Use With/related Products
SX MCUs
For Use With
28825 - MINI SOUND PLAYER SOUNDPAL130-28029 - KIT PARTS SMART SENSORS
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
7 The SASM Assembler
7.1
A typical SX assembly language program contains comments, directives, symbols, labels, expressions
and mnemonic instructions as shown in the sample below.
Page 44 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
The Structure of an SX Assembly Program
;---------------------------------------
;|
;|
;|
;---------------------------------------
; =====Device data and Equates=====
pvdd
data_out_a
; =====Variables=====
xbit_in
data_low
data_high
pulses
; =====Begin code=====
; =====JUMP TABLE=====
; =====PC COMMUNICATION=====
get_data
send_okay
send_data
:go
DEVICE
org
org
jmp
jmp
jmp
XYZ Controller
Written by John Doe
(C) 1997 Company, Inc.
SX28, OSCHS2, PROTECT
ID ’V2.1’
RESET Main
EQU
EQU
$08
ds 1
ds 1
ds 1
ds 1
$000
read
program
pin_mode
mov
clrb
jmp
mov
mov
mov
jmp
mov
clc
setb
rc.1
%1100
w,#19
dc
send_data:bits
w,#$00
data_low,w
w,#4
send_data:go
w,#19
dc
Version 2.1
12/01/97
;vdd
;point to start of ram
;pc communication data
;programming pulse count
;$00 = read device
;$01 = program device
;$07 = pin mode
;ready
;set receive mode
;receive word into data
;ready null+0+16outdata+1
;clear carry for stop bit
;set transmit mode
|
|
|
Comments
Directives
Symbols
Mnemonics
Operands
Labels

Related parts for 45205