Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
swi calls   Message List  
Reply | Forward Message #14730 of 15019 |
Re: [gbadev] swi calls

True that the bios could change, however, I have dumped the bios from all
of the current GBA systems, GBA, GBA-SP, and GB-Player, and they are all
100% identical, so it is unlikely they will change the bios until they come
out with the next gameboy system.

But as Stephen said, if you desire to get into an interrupt, use a timer
to do that.
----- Original Message -----
From: "Stephen Stair" <sgstair@...>
To: <gbadev@yahoogroups.com>
Sent: Friday, February 27, 2004 5:14 PM
Subject: Re: [gbadev] swi calls


> Yeah, SWI's are locked in the GBA's bios.
>
> if you were desperate to make an interrupt, you could use one of the timer
> interrupts, and set it up so the timer would overflow on the next cycle or
> somesuch... But there's not much reason to use interrupts for stuff like
> that because all interrupts have a fairly significant overhead (>50
cycles),
> so you might as well just call some function to do the work for you.
>
> Additionally, you *could* attempt to find a SWI vector that would do
> something favorable (the SWIs are not bound-checked, so there *may* be
some
> 4-byte address somwhere in the data/code after the jumptable that would
jump
> to some place in iwram, or something similar that could be useful...)
> But, that's bios-dependent, if they changed the bios your code would no
> longer work... not a recommended practice :)
>
> -Stephen
> ----- Original Message -----
> From: "Michael Reid - CSCI/P2003" <m6reid@...>
> To: <gbadev@yahoogroups.com>
> Sent: Friday, February 27, 2004 4:54 PM
> Subject: [gbadev] swi calls
>
>
> > hi,
> >
> > i'll start with the obligatory, "i'm new to this" bit. i've only been
> > playing around w/ programming the gba for about a month.
> >
> > anyhow, i would like to be able to add my own system calls, via the swi
> > instruction, however, the little info i have found about this implies
that
> > the system calls are BIOS only, and that there is no way to add any
> > user-defined calls.
> >
> > does anyone know if this is true or not? has anyone been able to define
> > their own syscalls?
> >
> > if not, then can anoyone think of a way to force a hardware interrupt
> > (enter irq mode)?
> >
> > thanks
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>






Sat Feb 28, 2004 1:46 am

caitsith6502
Offline Offline
Send Email Send Email

Forward
Message #14730 of 15019 |
Expand Messages Author Sort by Date

hi, i'll start with the obligatory, "i'm new to this" bit. i've only been playing around w/ programming the gba for about a month. anyhow, i would like to be...
Michael Reid - CSCI/P...
leonrauis
Offline Send Email
Feb 27, 2004
10:59 pm

Yeah, SWI's are locked in the GBA's bios. if you were desperate to make an interrupt, you could use one of the timer interrupts, and set it up so the timer...
Stephen Stair
sgstair
Online Now Send Email
Feb 28, 2004
1:21 am

True that the bios could change, however, I have dumped the bios from all of the current GBA systems, GBA, GBA-SP, and GB-Player, and they are all 100%...
Damien Good
caitsith6502
Offline Send Email
Feb 28, 2004
2:00 am

The GBA normally runs in system mode, so you're free to change CPU modes whenever you want. Just use an mrs or msr (don't remember which is which). What is it...
DekuTree64@...
dekutree65
Offline Send Email
Feb 28, 2004
5:36 pm

... i needed to generate an interrupt when a certain condition in my program is reached, i wanted to fake an interrupt. what i ended up doing is moving to irq...
Mike Reid
leonrauis
Offline Send Email
Apr 5, 2004
9:27 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help