Pin Defines
Stolzie
Posts: 15
Hi All,
As I am new to SX's, and have been mucking around with PIC's generally. I am wondering how you do pin defines in SX assembler? I have downloaded the beginers assembler for the SX and this topic is not mention anywhere.
This is how you do it in PIC stuff
#define··SPO·PORTA,0··;INPUT ··SHUTTLE POT OUTPUT
#define··RLED·PORTA,1··;OUTPUT··RRLED
#define··SPN·PORTA,2··;INPUT··SHUTTLE POT NEGATIVE
#define··SPP·PORTA,3··;INPUT··SHUTTLE POT POSITIVE
#define··ROW5·PORTA,4··;OUTPUT··ROW5
#define··ROW4·PORTA,5··;OUTPUT··ROW4
#define··DBUS·PORTD··;I/O ··DATA BUS D0-D7
But how do you do it in SX?
Thanks
Stolzie
As I am new to SX's, and have been mucking around with PIC's generally. I am wondering how you do pin defines in SX assembler? I have downloaded the beginers assembler for the SX and this topic is not mention anywhere.
This is how you do it in PIC stuff
#define··SPO·PORTA,0··;INPUT ··SHUTTLE POT OUTPUT
#define··RLED·PORTA,1··;OUTPUT··RRLED
#define··SPN·PORTA,2··;INPUT··SHUTTLE POT NEGATIVE
#define··SPP·PORTA,3··;INPUT··SHUTTLE POT POSITIVE
#define··ROW5·PORTA,4··;OUTPUT··ROW5
#define··ROW4·PORTA,5··;OUTPUT··ROW4
#define··DBUS·PORTD··;I/O ··DATA BUS D0-D7
But how do you do it in SX?
Thanks
Stolzie
Comments
RLED EQU RA.1
SPN EQU RA.2
SPP EQU RA.3
Row5 EQU RA.4
Row4 EQU RA.5
DBUS EQU RD
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out· the "SX-Video Display Module"
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
Muchly appreciated.
Best regards
Stolzie