45111 Parallax Inc, 45111 Datasheet - Page 44

MANUAL FOR SX-KEY/BLITZ VER. 2.0

45111

Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 45111

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-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 45111