Closed JOE1994 closed 3 years ago
Version of cargo-asm: 0.1.17
cargo-asm
After running cargo asm --target thumbv7em-none-eabihf float_simple::__cortex_m_rt_main > main.asm, the file main.asm contains the following
cargo asm --target thumbv7em-none-eabihf float_simple::__cortex_m_rt_main > main.asm
main.asm
[0m[1m[38;5;9mfloat_simple::__cortex_m_rt_main (src/main.rs:23): [0m [0m[1m[38;5;12mpush [0m {r7, lr} [0m [0m[1m[38;5;12mmov [0m r7, sp [0m [0m[1m[38;5;12msub [0m sp, #8 [0m [0m[1m[38;5;12mbl [0m __primask [0m [0m[1m[38;5;12mand [0m r6, r0, #1 [0m [0m[1m[38;5;12mbl [0m __cpsid [0m [0m[1m[38;5;12mmovw [0m r8, :lower16:.L_MergedGlobals [0m [0m[1m[38;5;12mmovs [0m r4, #1 [0m [0m[1m[38;5;12mmovt [0m r8, :upper16:.L_MergedGlobals [0m [0m[1m[38;5;12mldrb.w [0m r0, [r8, #1] [0m [0m[1m[38;5;12mcmp [0m r0, #0 [0m [0m[1m[38;5;12mitt [0m eq [0m [0m[1m[38;5;12mstrbeq.w[0m r4, [r8, #1] [0m [0m[1m[38;5;12mmoveq [0m r4, #0 [0m [0m[1m[38;5;12mcmp [0m r6, #0 [0m [0m[1m[38;5;12mit [0m eq [0m [0m[1m[38;5;12mbleq [0m __cpsie [0m [0m[1m[38;5;12mbl [0m __primask [0m [0m[1m[38;5;12mand [0m r5, r0, #1 [0m [0m[1m[38;5;12mbl [0m __cpsid [0m [0m[1m[38;5;12mldrb.w [0m r0, [r8] [0m [0m[1m[38;5;12mmovs [0m r6, #1 [0m [0m[1m[38;5;12mcmp [0m r0, #0 [0m [0m[1m[38;5;12mitt [0m eq [0m [0m[1m[38;5;12mstrbeq.w[0m r6, [r8] [0m [0m[1m[38;5;12mmoveq [0m r6, #0 [0m [0m[1m[38;5;12mcmp [0m r5, #0 [0m [0m[1m[38;5;12mit [0m eq [0m [0m[1m[38;5;12mbleq [0m __cpsie [0m [0m[1m[38;5;12morrs.w [0m r0, r4, r6 [0m [0m[1m[38;5;12mbne [0m .LBB1_6 [0m [0m[1m[38;5;12mmovw [0m r4, #14336 [0m [0m[1m[38;5;12mmovw [0m r0, #10760 [0m [0m[1m[38;5;12mmovt [0m r4, #16386 [0m [0m[1m[38;5;12mmovt [0m r0, #9984 [0m [0m[1m[38;5;12mstr [0m r0, [r4, #4] [0m [0m[1m[38;5;12mmovw [0m r1, #1797 [0m [0m[1m[38;5;12mldr.w [0m r0, [r4, #1024] [0m [0m[1m[38;5;12morrs [0m r0, r1 [0m [0m[1m[38;5;12mbic [0m r0, r0, #2 [0m [0m[1m[38;5;12mstr.w [0m r0, [r4, #1024] [0m [0m[1m[38;5;12mldr [0m r0, [r4] [0m [0m[1m[38;5;12morr [0m r0, r0, #16777216 [0m [0m[1m[38;5;12mstr [0m r0, [r4] [0m[0m[1m[38;5;10m.LBB1_2: [0m [0m[1m[38;5;12mldr [0m r0, [r4] [0m [0m[1m[38;5;12mlsls [0m r0, r0, #6 [0m [0m[1m[38;5;12mitt [0m pl [0m [0m[1m[38;5;12mldrpl [0m r0, [r4] [0m [0m[1m[38;5;12mlslspl.w[0m r0, r0, #6 [0m [0m[1m[38;5;12mbmi [0m .LBB1_5 [0m [0m[1m[38;5;12mldr [0m r0, [r4] [0m [0m[1m[38;5;12mlsls [0m r0, r0, #6 [0m [0m[1m[38;5;12mbmi [0m .LBB1_5 [0m [0m[1m[38;5;12mldr [0m r0, [r4] [0m [0m[1m[38;5;12mlsls [0m r0, r0, #6 [0m [0m[1m[38;5;12mbpl [0m .LBB1_2 [0m[0m[1m[38;5;10m.LBB1_5: [0m [0m[1m[38;5;12mldr [0m r0, [r4, #8] [0m [0m[1m[38;5;12mmovw [0m r1, #64752 [0m [0m[1m[38;5;12mbics [0m r0, r1 [0m [0m[1m[38;5;12madd.w [0m r0, r0, #37888 [0m [0m[1m[38;5;12mstr [0m r0, [r4, #8] [0m [0m[1m[38;5;12mmovs [0m r0, #5 [0m [0m[1m[38;5;12mbl [0m __delay [0m [0m[1m[38;5;12mldr [0m r0, [r4, #8] [0m [0m[1m[38;5;12mmovs [0m r1, #2 [0m [0m[1m[38;5;12mbfi [0m r0, r1, #0, #2 [0m [0m[1m[38;5;12mstr [0m r0, [r4, #8] [0m [0m[1m[38;5;12mbl [0m __bkpt [0m [0m[1m[38;5;12mbl [0m __bkpt [0m [0m[1m[38;5;12mmovw [0m r0, #25952 [0m [0m[1m[38;5;12mmovt [0m r0, #16331 [0m [0m[1m[38;5;12mstr [0m r0, [sp, #4] [0m [0m[1m[38;5;12mmovw [0m r0, #54107 [0m [0m[1m[38;5;12mmovt [0m r0, #21972 [0m [0m[1m[38;5;12mstr [0m r0, [sp] [0m [0m[1m[38;5;12mvldr [0m d0, [sp] [0m[0m[1m[38;5;10m.LBB1_6: [0m [0m[1m[38;5;12mb [0m .LBB1_6
I'd like to check whether this is a common issue for other users. Thank you for checking out this issue! :crab:
Those are color codes, if you use the --no-color it will not print them.
--no-color
This is essentially a duplicate of #197 and #101
@wayofthepie @roblabla Thank you for your feedback! I'll close this issue now :+1:
Version of
cargo-asm
: 0.1.17After running
cargo asm --target thumbv7em-none-eabihf float_simple::__cortex_m_rt_main > main.asm
, the filemain.asm
contains the followingI'd like to check whether this is a common issue for other users. Thank you for checking out this issue! :crab: