asm_mips.s79
来自「atmel7s256使用IAR工具开发例程。测试芯片的MIPS性能。」· S79 代码 · 共 90 行
S79
90 行
;------------------------------------------------------------------------------
;- ATMEL Microcontroller Software Support - ROUSSET -
;------------------------------------------------------------------------------
; The software is delivered "AS IS" without warranty or condition of any
; kind, either express, implied or statutory. This includes without
; limitation any warranty or condition with respect to merchantability or
; fitness for any particular purpose, or against the infringements of
; intellectual property rights of others.
;-----------------------------------------------------------------------------
;- File source : asm_mips.s79
;- Object : Main loop function can be assembly in ARM or THUMB
;- This function read DATA in data area with or without
;- Wait state
;-
;- Compilation flag : None
;-
;- 1.0 02/Jul/04 JPP : Creation
;------------------------------------------------------------------------------
#include "MIPS.mac"
;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;- Function : asm_mips
;- Parameter
;- Treatments : Infinite loop for measurement in thumb modes
;- It is loop of 40 instruction with 3 loss cycle for
;- read external memory (Need know wait state) and one
;- pipeline break
;- Called Functions : None
;- Called Macros : None
;------------------------------------------------------------------------------
;- (TC) Counter Clock Disable Command
PROGRAM ?ARM_mips
RSEG ICODE:CODE:ROOT(2)
CODE32 ;
PUBLIC ARM_mips
ARM_mips:
MIPS
ENDMOD
PROGRAM ?THUMB_mips
RSEG ICODE:CODE:ROOT(2)
CODE16 ;
PUBLIC THUMB_mips
THUMB_mips:
MIPS
ENDMOD
;------------------------------------------------------------------------------
;- Function : Ram_ARM_mips
;- Parameter
;- Treatments : Infinite loop for measurement in thumb modes
;- It is loop of 40 instruction with 3 loss cycle for
;- read external memory (Need know wait state) and one
;- pipeline break
;------------------------------------------------------------------------------
PROGRAM ?Ram_ARM_mips
RSEG CODE_I:CODE:ROOT(2)
CODE32 ;
PUBLIC Ram_ARM_mips
Ram_ARM_mips:
MIPS
ENDMOD
;------------------------------------------------------------------------------
;- Function : Ram_ARM_mips
;- Parameter
;- Treatments : Infinite loop for measurement in thumb modes
;- It is loop of 40 instruction with 3 loss cycle for
;- read external memory (Need know wait state) and one
;- pipeline break
;------------------------------------------------------------------------------
PROGRAM ?Ram_THUMB_mips
RSEG CODE_I:CODE:ROOT(2)
CODE16 ;
PUBLIC Ram_THUMB_mips
Ram_THUMB_mips:
MIPS
ENDMOD
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?