11 March 2016 - Forum Rules
Started by SleepyFist, April 24, 2019, 01:08:51 PM
.arm.text.global mainmain:mov r0, #0x4000000mov r1, #0x400add r1, r1, #3str r1, [r0]mov r0, #0x6000000mov r1, #0xFFmov r2, #0x9600loop1:strh r1, [r0], #2subs r2, r2, #1bne loop1infin:b infin
QuoteMake sure your current directory is where your test_1.S file is and type the following:arm-elf-gcc -mthumb-interwork -specs=gba.specs f.S and hit enter.arm-elf-objcopy -O binary a.out a.gba and hit enter (not gonna say that again).If no errors are generated, a "a.gba" file will be, run it. It should make a fairly red(ish) screen. Don't worry about understanding the code right now, this is just to make sure you can compile some code.
sudo apt updatesudo apt install build-essentialsudo apt install makesudo apt-get install gcc-arm-linux-gnueabisudo apt-get install arm-gcc-none-eabi
Page created in 0.042 seconds with 20 queries.