OpenCores
URL https://opencores.org/ocsvn/usb_nand_reader/usb_nand_reader/trunk

Subversion Repositories usb_nand_reader

[/] [usb_nand_reader/] [trunk/] [mini32/] [CMD_BlockErase.asm] - Rev 7

Compare with Previous | Blame | View Log

_cmd_chip_block_erase:
;CMD_BlockErase.c,5 ::          void cmd_chip_block_erase(unsigned char* inBuffer)
ADDIU   SP, SP, -16
SW      RA, 0(SP)
;CMD_BlockErase.c,7 ::          nand_send_command(NC_BLOCK_ERASE1);
SW      R25, 4(SP)
SW      R26, 8(SP)
SW      R25, 12(SP)
ORI     R25, R0, 96
JAL     _nand_send_command+0
NOP     
LW      R25, 12(SP)
;CMD_BlockErase.c,8 ::          nand_send_address(inBuffer + 1, 3);
ADDIU   R2, R25, 1
ORI     R26, R0, 3
MOVZ    R25, R2, R0
JAL     _nand_send_address+0
NOP     
;CMD_BlockErase.c,9 ::          do_delay(100);
ORI     R25, R0, 100
JAL     _do_delay+0
NOP     
;CMD_BlockErase.c,10 ::                 nand_send_command(NC_BLOCK_ERASE2);
ORI     R25, R0, 208
JAL     _nand_send_command+0
NOP     
;CMD_BlockErase.c,11 ::                 do_delay(100);
ORI     R25, R0, 100
JAL     _do_delay+0
NOP     
;CMD_BlockErase.c,12 ::                 nand_wait_ready();
JAL     _nand_wait_ready+0
NOP     
;CMD_BlockErase.c,13 ::                 }
L_end_cmd_chip_block_erase:
LW      R26, 8(SP)
LW      R25, 4(SP)
LW      RA, 0(SP)
ADDIU   SP, SP, 16
JR      RA
NOP     
; end of _cmd_chip_block_erase

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.