Part 10-C language environment initialization-jump into the C door lesson 3

Publisher:GoldenSunriseLatest update time:2024-10-14 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Jump to C code

Because the code in memory comes from the stepping stone SRAM, they are identical.

This is done using an absolute jump.

Because we are jumping from assembly code to C language program, we need to prepare a main.c file in advance.

Modify the makefile

2. Verify whether the jump is successful

Use C language to light up the LED

LED lights up in assembly

In C language, addresses must have types.


Reference address:Part 10-C language environment initialization-jump into the C door lesson 3

Previous article:Part 10-C language environment initialization-Bss segment initialization lesson 2
Next article:Part 10-C language environment initialization-C and assembly mixed programming lesson 4

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号