.text .global _start .type _start, @function _start: # Initialize global pointer .option push .option norelax la gp, __global_pointer$ .option pop # Initialize stack pointer from linker script symbol la sp, __stack_top # Clear the BSS segment la a0, __bss_start la a1, __bss_end clear_bss: bgeu a0, a1, finish_bss sb x0, 0(a0) addi a0, a0, 1 j clear_bss finish_bss: call main ebreak .section .rodata alfabet: .string "abcdefghijklmnopqrstuwxyz" slowo: .section .data wynik: .string "mpabi" .space 26 # rezerwuje 26 bajtów dla wyniku, zainicjowane na 0