You are on page 1of 8

!"#$ !#&'() $*+,-.

/,01 230435
rocedure for Lhe flrsL program:
1. Launch CCS
2. As shown ln Lhe flgure make new pro[ecL
ro[ecL ! new


3. LnLer Lhe pro[ecL name arlLh
4. llle ! new ! source flle


WrlLe Lhe program ln Lhe source flle


Save Lhe flle ln .asm formaL ln Lhe dlrecLory C:\Lldsk\mypro[ecLs\arlLh
3. llle ! new ! source flle, wrlLe down CMu_flle conLenLs and save lL ln .cmd formaL ln Lhe same
dlrecLory
arith.obj
-o arith.out
-m arith.map
-e arith arith.obj

MEMORY
{
PAGE 0:

MMR :origin=0000000h,length=00000c0h
SPRAM :origin=00000c0h,length=0000040h
DARAM0 :origin=0000100h,length=0003F00h
DARAM1 :origin=0004000h,length=0004000h
DARAM2 :origin=0008000h,length=0004000h
DARAM3 :origin=000c000h,length=0004000h

SARAM0 :origin=0010000h,length=0000400h
SARAM1 :origin=0014000h,length=0000400h
SARAM2 :origin=0018000h,length=0000400h
SARAM3 :origin=001c000h,length=0000400h
SARAM4 :origin=0020000h,length=0000400h
SARAM5 :origin=0024000h,length=0000400h
SARAM6 :origin=0028000h,length=0000400h
SARAM7 :origin=002c000h,length=0000400h
SARAM8 :origin=0030000h,length=0000400h
SARAM9 :origin=0034000h,length=0000400h
SARAM10 :origin=0038000h,length=0000400h
SARAM11 :origin=003c000h,length=0000400h
SARAM12 :origin=0040000h,length=0000400h
SARAM13 :origin=0044000h,length=0000400h
SARAM14 :origin=0048000h,length=0000400h
SARAM15 :origin=004c000h,length=0000400h

}
SECTIONS
{
.text :{}>SARAM0
dat_1 : load=SARAM1

.data :{}>DARAM1
.bss :{}>DARAM1
.const :{}>DARAM1
}

6. 8lghL cllck on Lhe pro[ecL and add Lhese Lwo(arlLh.asm and arlLh.cmd) flles Lo Lhe pro[ecL



7. Change Lhe bulld opLlon Lo assembly language
ro[ecL ! bulld opLlons


Make sure Lo cllck algebralc assembly


8. 8ulld Lhe pro[ecL
ro[ecL ! bulld

9. Make sure LhaL Lhere are no errors.
10. Load Lhe program
llle ! load program

Load arlLh.ouL


667 8.,9 1:, /,/;-<

1ake 3 wlndows for each C formaL
LnLer Lhe number 3 ln C3 formaL ln flrsL and fourLh locaLlon
LnLer Lhe number 73.2813 ln C8 formaL ln second and flfLh locaLlon.
12. keep Lhe cursor aL Lhe end of Lhe asm flle and run Lhe program


verlfy Lhe resulL.
13. ln Lhe profller enable clock and vlew clock.

You might also like