Page 1 of 1

disassembling usecode...

Posted: Wed Jun 23, 2004 1:58 pm
by TMNM Dragon
I've disassembled the usecode using ucxt.
The output I have looks like assembler.
Is there anyway to output it in the script form that i've seen in the samples (eg from source /exult/content/bg/patch.uc)?

Re: disassembling usecode...

Posted: Wed Jun 23, 2004 2:37 pm
by TMNM Dragon
Ok, I figured out that there are some switches
-fa - output using "assembler" format (default)
-fs - output using "exult script" format
-fz - output using "exult script" format
Anyone know the difference is between -fs and -fz?

Re: disassembling usecode...

Posted: Wed Jun 23, 2004 4:08 pm
by SB-X
UCXT wasn't finished. I don't think the output is compatible with UCC, but it might make it easier to read. One of those options is the old version, and the other one is meant to replace it. (but I don't remember which)

Re: disassembling usecode...

Posted: Thu Jun 24, 2004 4:08 am
by TMNM Dragon
That's ok, I just want to read it to get a better understanding of how it works.

Re: disassembling usecode...

Posted: Wed Jun 30, 2004 6:26 am
by TMNM Dragon
Is there a program that can disassemble the usecode in a format that is compatible with UCC?

While reading the output from UCXT has given me a better understanding of usecode, it has also served to confuse me in terms of the terminology.

Is UI_add_cont_items(var0,var1,var2,var3,var4,var5); valid?
I get: 'UI_add_cont_items' not declared
It is in the intrinsics.cc source, so I thought that should work.

Also exit2(); and abrt(); are used a lot, but don't seem to be valid in UCC.
Is the equivalent break;?