Re: A86: Call


[Prev][Next][Index][Thread]

Re: A86: Call




> What does call_flushallmenus do?

Makes sure that all menus that were open when your program
started are closed.  If they are left open, ROM calls for printing
regular text on the last line(s) will not function properly.  They
will write correctly to text memory, but put nothing (or garbage)
on the screen.  Also, if you don't call this routine, the menu
can still be accessed when your program exits even though it
is invisible.  I remember an old version Zkart3D that had that
problem (it was released prior to the documentation of that
ROM call).  If you had the program names menu up when you
hit enter to start the game, your score would not be displayed
(just a letter T, but nothing else).  When you exited, you
could press the F keys and make program names appear on
the homescreen even though there appeared to be no menu
open.

This is just a good call to make in the beginning of any
assembly program.  It doesn't really matter anymore, because
all of the shells call it and most people will not end up playing
games directly from the homescreen.


Follow-Ups: