FAQ | Points | Add... | Recent posts | Search | Register | Log in


Wstawki assemblerowe w C-KEIL


Post new topic  Reply to topic      Main Page -> Forum Index -> Microcontrollers Generally -> Wstawki assemblerowe w C-KEIL
Author
Message
bombi
Poziom 12
Poziom 12


Joined: 06 Oct 2002
Posts: 93
Location: Rybnik

Post#1 Post from the author of the topic 29 Apr 2004 16:01   

Wstawki assemblerowe w C-KEIL


Jak wstawić fragment kodu napisanego w assemblerze w kompilatorze języka C firmy KEIL ?
Jakoś nie mogę tego znaleźć w help'ie.
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 29 Apr 2004 16:01   





Back to top
   
rav.k
Poziom 12
Poziom 12


Joined: 04 Feb 2003
Posts: 109

Post#2 29 Apr 2004 16:11   

Wstawki assemblerowe w C-KEIL


Wstawiasz osobny plik do projektu zdefiniowany jako assemblerowski z procedurkami które potrzebujesz, a kompilator dzięki definicji sam będzie wiedział z jakiego języka ma go kompilować.
Back to top
   
Google

Google Adsense


Post# 29 Apr 2004 16:11   





Back to top
   
bombi
Poziom 12
Poziom 12


Joined: 06 Oct 2002
Posts: 93
Location: Rybnik

Post#3 Post from the author of the topic 29 Apr 2004 16:36   

Re: Wstawki assemblerowe w C-KEIL


Wolałbym prościej to zrobić .Tak jak to jest w innych kompilatorach C czy Bascom .Np. wstawiasz etykietę 'asm' ;piszesz kod w assemblerze.
Back to top
   
Google

Google Adsense


Post# Post from the author of the topic 29 Apr 2004 16:36   





Back to top
   
Zbych_
Poziom 17
Poziom 17


Joined: 06 Nov 2003
Posts: 432
Location: Kuala Lumpur

Post#4 29 Apr 2004 17:22   

Re: Wstawki assemblerowe w C-KEIL


bombi wrote:
Wolałbym prościej to zrobić .Tak jak to jest w innych kompilatorach C czy Bascom .Np. wstawiasz etykietę 'asm' ;piszesz kod w assemblerze.

Możesz tak zrobić, ale wtedy musisz najpierw wygenerować listing w assemblerze, a dopiero potem go zassemblować. To wszystko byłoby nawet do przyjęcia, gdyby nie to, że nie będziesz mógł debugować kodu na poziomie C.

Wstawki można robić tak:
Code:
#pragma asm

   mov a,#5
   mov b,10

#pragma endasm

Wymuszenie generacji źródła assemblerowego:
Code:
#pragma src(nazwa.asm)

Back to top
   
Post new topic  Reply to topic      Main Page -> Forum Index -> Microcontrollers Generally -> Wstawki assemblerowe w C-KEIL
Page 1 of 1
Similar topics
Dev-c++ i wstawki asemblerowe (2)
Wstawki asemblerowe w C - składnia (2)
Wstawki asemblerowe w bascomie (9)
Bascom 51 a wstawki asemblerowe (10)
Assemblerowe moduły w C++Builder (3)
Keil i wstawki asmenblerowe. (4)
CodeVision C i wstawki assemblerowe (4)
wstawki assemblerowe w bascomie (11)
wstawki asemblerowe w WinAVR (1)
[Visual Basic] Wstawki w asemblerze. (4)

Page generation time: 0.109 seconds


FAQ || Administrator || Moderators || Widgets and banners || Contact
elektroda.pl topic RSS feed