A82: Conditional ROM_CALLs


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

A82: Conditional ROM_CALLs




Hey, is it possible to do conditional ROM_CALLs?
Let's say that in TI82.H, I added some macros like this:

#DEFINE ROM_CALL_C(addr)  CALL C,  $8D74 \ .DW addr
#DEFINE ROM_CALL_Z(addr)  CALL Z,  $8D74 \ .DW addr
#DEFINE ROM_CALL_NC(addr) CALL NC, $8D74 \ .DW addr
#DEFINE ROM_CALL_NZ(addr) CALL NZ, $8D74 \ .DW addr

Would that work? You would be able to do things like
ROM_CALL_Z(D_ZT_STR) or ROM_CALL_C(M_CHARPUT)
And if not, why not? But if it is possible, can anyone
think of a practical use for them?

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]