PDA

View Full Version : asm inline instructions in project builder


.eric.
2002.06.12, 02:38 AM
hi

Is it possible to integrate assembler inline instructions in project builder ?

If it's possible, what is the syntax ?

I code with cw pro 3 and try to migrate to project builder.
under codewarrior inline is quite simple

asm void function(void)
{
li r3,5
li r4,6
sub r5,r5,r5
add r5,r3,r4
blr
}

but how can I do this under project builder

TIA

.eric.

OneSadCookie
2002.06.12, 02:57 AM
It's much ickier :(

There are some examples of how to do this (eg for rliwimi, dcbt, &c) in the Altivec tutorial on this site.

edit: that's not rliwimi, is it. rlwimi maybe?

Unregistered
2002.06.13, 02:39 AM
hi

Thanks for the reply
You're right OneSideCookie, it's really tricky but I'm going to try something

cu

.eric.

.eric.
2002.06.13, 02:42 AM
oops sorry OneSadCookie

OneSadCookie, OneSadCookie. it's not so difficult. remember this name. I'm really stupid isn't it ? ;)

cu

.eric.