Using SBASIC With the ADAPT-11 Products

Last update: 12 November 1997

Getting a program written in SBASIC into your ADAPT-11 board is a three-step process:
1. Compile your SBASIC source file, with the appropriate compiler options for your memory configuration
2. Assemble the resulting assembler file with ASMHC11
3. Download the resulting s-record file (.s19), using a DOS batchfile, PCBUG11, or ICC11's IDE downloader.
  Here are some example configurations and the approprate /c and /v compiler options
used to specify the starting addresses for code (EEPROM, usually) and variables (RAM),
where myprog.bas is your SBASIC program filename, and outfile is the name
you want the target assembly language file to be called.

1) 68HC811E2 in single-chip or expanded mode, with no external E(E)PROM:

	sbasic myprog.bas /cf800 /v0000 >myprog.asc

2) ADAPT-11C75 with 68HC11E0 (or 68HC11E1) and X68C75 8K EEPROM:

	sbasic myprog.bas /ce000 /v0000 >myprog.asc

3) ADAPT-11 with 68HC711E9 (12K EPROM):

	sbasic myprog.bas /cd000 /v0000 >myprog.asc

4) ADAPT-11 used with AD11-MX1 Memory Expansion card populated with 32K E(E)PROM, RAM, or Flash:

	sbasic myprog.bas /c8000 /v0000 >myprog.asc

After successfully compiling your SBASIC file, run ASMHC11 to assemble the file and produce an
s-record file suitable for downloading to ADAPT-11.  For the above example, the command to enter at the DOS prompt is:

	asmhc11 myprog

(Note that the sourcefile must have a .asc extension)

ASMHC11 produces two files:  myprog.lst and myprog.s19.  The .lst file is for your reference, and the .s19 file is
ready for downloading to your board.



ADAPT-812 ADAPT-11 Accessories Solderless Breadboard Adapters
Drawings Software Price List Order Form
What's New Tech Support Resources Applications

Home
Copyright © 1997 Technological Arts