WicePlusCCompilerforEM78SeriesMicrocontrollersUSER’SGUIDEELANMICROELECTRONICSCORP.Feb2007Doc.Version2.0TrademarkAcknowledgmentsIBMisaregisteredtrademarkandPS/2isatrademarkofIBM.WindowsisatrademarkofMicrosoftCorporation.ELANandELANlogoaretrademarksofELANMicroelectronicsCorporation.Copyright©2007byELANMicroelectronicsCorporationAllRightsReservedPrintedinTaiwanThecontentsofthisUser’sGuide(publication)aresubjecttochangewithoutfurthernotice.ELANMicroelectronicsassumesnoresponsibilityconcerningtheaccuracy,adequacy,orcompletenessofthispublication.ELANMicroelectronicsmakesnocommitmenttoupdate,ortokeepcurrenttheinformationandmaterialcontainedinthispublication.Suchinformationandmaterialmaychangetoconformtoeachconfirmedorder.InnoeventshallELANMicroelectronicsbemaderesponsibleforanyclaimsattributedtoerrors,omissions,orotherinaccuraciesintheinformationormaterialcontainedinthispublication.ELANMicroelectronicsshallnotbeliablefordirect,indirect,specialincidental,orconsequentialdamagesarisingfromtheuseofsuchinformationormaterial.Thesoftware(WicePlus)describedinthispublicationisfurnishedunderalicenseornondisclosureagreement,andmaybeusedorcopiedonlyinaccordancewiththetermsofsuchagreement.ELANMicroelectronicsproductsarenotintendedforuseinlifesupportappliances,devices,orsystems.UseofELANMicroelectronicsproductinsuchapplicationsisnotsupportedandisprohibited.NOPARTOFTHISPUBLICATIONMAYBEREPRODUCEDORTRANSMITTEDINANYFORMORBYANYMEANSWITHOUTTHEEXPRESSEDWRITTENPERMISSIONOFELANMICROELECTRONICS.ELANMICROELECTRONICSCORPORATIONHeadquarters:No.12,InnovationRoad1HsinchuScienceParkHsinchu,Taiwan30077Tel:+8863563-9977Fax:+8863563-9966(HK)MicroelectronicsCorporation,Ltd.Rm.1005B,10/FEmpireCentre68ModyRoad,TsimshatsuiKowloon,HONGKONGTel:+8522723-3376Fax:+8522723-7780elanhk@emc.com.hkUSA:ElanInformationTechnologyGroup1821SaratogaAve.,Suite250Saratoga,CA95070USATel:+1408366-8223Fax:+1408366-8220Shenzhen:ElanMicroelectronicsShenzhen,Ltd.SSMECBldg.,3F,GaoxinS.Ave.ShenzhenHi-TechIndustrialParkShenzhen,Guandong,CHINATel:+867552601-0565Fax:+867552601-0500Shanghai:ElanMicroelectronicsShanghaiCorporation,Ltd.23/Bldg.#115Lane572,BiboRoadZhangjiangHi-TechParkShanghai,CHINATel:+860215080-3866Fax:+860215080-4600EM55000SeriesIDSReferenceManual3Nov-00’WicePlus2CC1.WicePlus1.XXXWicePlus2WicePlusremoveWicePlus2.CWicePlus22.system.incsysdef.incD:\develop\prg1.cCsystem.incsysdef.incD:\develop\3.rpage,iopage,bankrpage0,iopage0bank0rpage0,iopage0bank0“0rpage,iopagebankpagebank4.C575.5.10.3Cmyjian@emc.com.twjohn.cheng@emc.com.twContentsWicePlusCCompilerUser’sGuide录•1111.1............................................................................................................................11.2....................................................................................................................11.2.1.................................................................................................................11.3....................................................................................................................11.4ANSI.............................................................................................................12WicePlus22.1............................................................................................................................22.2WicePlus.......................................................................................................32.2.1.........................................................................................................32.2.2.........................................................................................................32.2.3.............................................................................................42.2.4.............................................................................................42.2.5.........................................................................................................52.2.6RAM..............................................................................................52.2.7LCDRAM..............................................................................................52.2.8.........................................................................................................62.3WicePlus.......................................................................................62.3.1.........................................................................................................72.3.2.........................................................................................................72.3.3.........................................................................................................82.3.4.........................................................................................................82.3.5.........................................................................................................92.3.6.............................................