⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rdwr.cod

📁 ARM读写SD卡程序
💻 COD
字号:
; Listing generated by Microsoft (R) Optimizing Compiler Version 12.20.9615 

	TTL	c:\wince420\platform\sdklh7a404\drivers\sdmmc\driver\.\rdwr.c
	CODE32

  00000			 AREA	 |.drectve|, DRECTVE
	DCB	"-defaultlib:coredll.lib "
	DCB	"-defaultlib:corelibc.lib "

	EXPORT	|inpword|
	IMPORT	|READ_PORT_USHORT|
; File c:\wince420\platform\sdklh7a404\drivers\sdmmc\driver\rdwr.c

  00000			 AREA	 |.text| { |inpword| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$inpword|, PDATA, SELECTION=5, ASSOC=|.text| { |inpword| } ; comdat associative
|$T36577| DCD	|inpword|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |inpword| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |inpword| PROC

; 65   : {

  00000	e52de004	 str       lr, [sp, #-4]!
  00004		 |$M36575|

; 66   :         UINT16  myData;
; 67   : 
; 68   :         myData = (UINT16)inpw(addr);

  00004	eb000000	 bl        READ_PORT_USHORT

; 69   :         return myData;
; 70   : }

  00008	e8bd4000	 ldmia     sp!, {lr}
  0000c	e12fff1e	 bx        lr
  00010		 |$M36576|

			 ENDP  ; |inpword|

	EXPORT	|outpword|
	IMPORT	|WRITE_PORT_USHORT|

  00000			 AREA	 |.text| { |outpword| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$outpword|, PDATA, SELECTION=5, ASSOC=|.text| { |outpword| } ; comdat associative
|$T36585| DCD	|outpword|
	DCD	0x40000401
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |outpword| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |outpword| PROC

; 88   : {

  00000	e52de004	 str       lr, [sp, #-4]!
  00004		 |$M36583|

; 89   :         outpw(addr, dat);

  00004	eb000000	 bl        WRITE_PORT_USHORT

; 90   : }

  00008	e8bd4000	 ldmia     sp!, {lr}
  0000c	e12fff1e	 bx        lr
  00010		 |$M36584|

			 ENDP  ; |outpword|

	EXPORT	|inpbyte|
	IMPORT	|READ_PORT_UCHAR|

  00000			 AREA	 |.text| { |inpbyte| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$inpbyte|, PDATA, SELECTION=5, ASSOC=|.text| { |inpbyte| } ; comdat associative
|$T36593| DCD	|inpbyte|
	DCD	0x40000501
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |inpbyte| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |inpbyte| PROC

; 110  : {

  00000	e52de004	 str       lr, [sp, #-4]!
  00004		 |$M36591|

; 111  :     return((UINT16)(0xFF & inp(addr)));

  00004	eb000000	 bl        READ_PORT_UCHAR
  00008	e20000ff	 and       r0, r0, #0xFF

; 112  : }

  0000c	e8bd4000	 ldmia     sp!, {lr}
  00010	e12fff1e	 bx        lr
  00014		 |$M36592|

			 ENDP  ; |inpbyte|

	EXPORT	|outpbyte|
	IMPORT	|WRITE_PORT_UCHAR|

  00000			 AREA	 |.text| { |outpbyte| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000			 AREA	 |.pdata$$outpbyte|, PDATA, SELECTION=5, ASSOC=|.text| { |outpbyte| } ; comdat associative
|$T36601| DCD	|outpbyte|
	DCD	0x40000501
; Function compile flags: /Ogsy

  00000			 AREA	 |.text| { |outpbyte| }, CODE, ARM, SELECTION=1 ; comdat noduplicate

  00000		 |outpbyte| PROC

; 130  : {

  00000	e52de004	 str       lr, [sp, #-4]!
  00004		 |$M36599|

; 131  :     outp(addr, (UCHAR)dat);

  00004	e20110ff	 and       r1, r1, #0xFF
  00008	eb000000	 bl        WRITE_PORT_UCHAR

; 132  : }

  0000c	e8bd4000	 ldmia     sp!, {lr}
  00010	e12fff1e	 bx        lr
  00014		 |$M36600|

			 ENDP  ; |outpbyte|

	END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -