Trying to execute code outside RAM?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Trying to execute code outside RAM?

Post by gerryg400 »

Your compiler trusts you and you lied to it. Shame on you.

What is the real type of the irq0 variable?
If a trainstation is where trains stop, what is a workstation ?
User avatar
Lionel
Member
Member
Posts: 117
Joined: Fri Jul 16, 2010 2:16 pm
Libera.chat IRC: ryanel
Location: California

Re: Trying to execute code outside RAM?

Post by Lionel »

An assembler function, ok, now I realize it :oops:
If I change it to a external void, it either complains about a incomplete type, or it just crashes qemu again.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: Trying to execute code outside RAM?

Post by gerryg400 »

Did you change it to

Code: Select all

void irq0(void);
That might do it.
If a trainstation is where trains stop, what is a workstation ?
User avatar
Lionel
Member
Member
Posts: 117
Joined: Fri Jul 16, 2010 2:16 pm
Libera.chat IRC: ryanel
Location: California

Re: Trying to execute code outside RAM?

Post by Lionel »

:oops: , I forgot the ()!
Thanks, kinda stressed right now so I didn't notice that mistake.
Thank you gerryg400!
~Lionel
Post Reply