There is no other way that is not basically the same as eax testing.
If you want to get pedantry:
eax works fine for 32 bits.
rax is what you want for 64-bit applications
ret0 is what itanium uses
$ retreg is a pseudo registry that you can use that will behave correctly in all cases.
eg.
0: 028> r rax
rax = 00000000fff02000
0: 028> r eax
eax = fff02000
0: 028> r $ retreg
$ retreg = 00000000fff02000
source share