hi everyone,
i'm just a newbie with regards to programming for the powerpc-mac os x platform.
i have a c program that calls a function that i have written in assembly. compiling the codes went without a hitch, however, i encountered a bus error when i ran the program. checking out the codes, i found out that the problem was within the assembly function i made. i have an instruction that accesses r15 that caused the bus error:
stfd f3,0(r15)
data from f3 comes from one of the assembly function's parameters.
when i changed it to r12, the bus error did not occur. i found out that other registers were also not accessible.
pardon me if i'm committing a very simple error, but what gives?
(by the way, i'm using an emac running mac os x 10.2)
i'm just a newbie with regards to programming for the powerpc-mac os x platform.
i have a c program that calls a function that i have written in assembly. compiling the codes went without a hitch, however, i encountered a bus error when i ran the program. checking out the codes, i found out that the problem was within the assembly function i made. i have an instruction that accesses r15 that caused the bus error:
stfd f3,0(r15)
data from f3 comes from one of the assembly function's parameters.
when i changed it to r12, the bus error did not occur. i found out that other registers were also not accessible.
pardon me if i'm committing a very simple error, but what gives?
(by the way, i'm using an emac running mac os x 10.2)