crt0.s

来自「基于4个mips核的noc设计」· S 代码 · 共 50 行

S
50
字号
	.equ	stack_size, 		710	.equ	heap_size,		    1	.text    .align  2	.globl	_bup_sad	.globl	_bup_happy     .ent    _start_start:	nop                               # Bug: First instruction on mMIPS is not executed        la      $gp, _gp                  # globals pointer    la      $sp, _end                 # stack pointer (stack starts at end of ram)    la      $fp, _end                 # frame pointer# Dynamic memory allocation skipped because of limited memory size.#    la      $4, heap                  # heap start address#    li      $5, heap_size             # heap size#    jal     add_free                  # init heap#    nop#    move    $4, $0                    #    move    $5, $0                        jal     main                      # jump past happy and sad addressesL1:        j       L1    .align 5_bup_happy:    j       L1                        # Stop simulation        .align 5_bup_sad:    j       L1                        # Stop simulation	.bssstack:        .align 	2        .space 	stack_sizestack_top:	.word	0heap:	.align  2        .space  heap_size

⌨️ 快捷键说明

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