English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 29 August 2021, 13:36   #1
Alpha One
Registered User
 
Alpha One's Avatar
 
Join Date: Jun 2011
Location: Ger
Posts: 223
VBCC and inline assembler

Hi,
I have a simple function like this:

void SomeFunction(int x, int y);

How can I get x and y into registers d0 and d1 for further inline assembly usage?

Thanks for help!
Alpha One is offline  
Old 29 August 2021, 13:42   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
void SomeFunction(__reg("d0") int x, __reg("d1") int y);
thomas is offline  
Old 29 August 2021, 22:46   #3
Alpha One
Registered User
 
Alpha One's Avatar
 
Join Date: Jun 2011
Location: Ger
Posts: 223
Quote:
Originally Posted by thomas View Post
void SomeFunction(__reg("d0") int x, __reg("d1") int y);
Thanks !!!
Alpha One is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc inline assembly Ernst Blofeld Coders. C/C++ 10 21 December 2020 14:31
how to rewrite particular asm inline syntax for gcc? wawa Coders. Asm / Hardware 44 15 February 2018 18:54
Inline ASM xArtx Coders. Asm / Hardware 10 27 July 2014 16:21
VBCC assembler linking syntax? NovaCoder Coders. General 2 20 May 2011 03:04
Storm C V4...using inline assembler NovaCoder Coders. General 11 26 February 2009 12:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:25.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06291 seconds with 13 queries