
$(CC)-objcopy -O binary $(ELF_NAME) $(BIN_NAME)ĭd if=$(BIN_NAME) of=$(FLASH_NAME) bs=4096 conv=notrunc

# Compile srcs and write to virtual flash # Allocate 16MB to use as a virtual flash for th qemuĭd if=/dev/zero of=$(FLASH_NAME) bs=4096 count=4096 QEMUFLAGS := -M connex -pflash $(FLASH_NAME) -nographic -serial /dev/null This is the content of the registers after the main call (see startup.s) (qemu) info registers

Should result in the print 33 (But i get 0x00 instead) a0000018: 33 I am trying to get this tutorial to work as intended without success (Something fails after the bl main instruction).Īccording to the tutorial the command (qemu) xp /1dw 0xa0000018
