Files
Gen4_R-Car_Trace32/2_Trunk/demo/arm/compiler/metaware/mwloop.cmm
2025-10-14 09:52:32 +09:00

51 lines
1.0 KiB
Plaintext

; --------------------------------------------------------------------------------
; @Title: MetaWare C Example for SRAM
; @Description:
; Simple C++ application for ARM targets
; compiled with the MetaWare compiler
; running from SRAM
; @Author: -
; @Copyright: (C) 1989-2022 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: mwloop.cmm 18850 2022-01-26 18:41:29Z bschroefel $
WinCLEAR
SYStem.Down
IF hardware.ICD()||INTERFACE.SIM()
(
SYStem.Up
Data.Test 0--0ff
IF FOUND()
(
Register.RESet
Go.direct
WAIT 1.0s
Break.direct
)
)
IF hardware.ICE()||hardware.FIRE()
(
SYStem.Mode AloneInt
MAP.Ram 0x0--0x0ffff
MAP.Intern
)
Data.LOAD.Elf mwloop.elf /ALTBITFIELDS
IF INTERFACE.SIM()
(
Register.Set PC main
Register.Set CPSR 0x0013
Register.Set R13 0x1000
)
; Open some windows
WinPOS 0% 0% 100% 50%
List
WinPOS 0% 50% 50% 50%
Frame /Caller
WinPOS 50% 50% 50% 50%
Var.Watch %SpotLight flags ast