BobRichter Posted September 9, 2004 Share Posted September 9, 2004 Just wondering....can anyone make heads or tails of this? 00000008 42 0000006C T 0000006C 0000000D 02 03 RSADDI 0000000F 1E 00 00000008 JSR fn_00000017 00000015 20 00 RETN 00000017 02 03 RSADDI 00000019 04 05 000A str CONSTS "Tar_PazNik" 00000027 05 00 0244 01 ACTION GetGlobalNumber(0244), 01 0000002C 04 03 00000005 CONSTI 00000005 00000032 0D 20 GEQII 00000034 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004 0000003C 1B 00 FFFFFFFC MOVSP FFFFFFFC 00000042 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004 0000004A 01 01 FFFFFFF4 0004 CPDOWNSP FFFFFFF4, 0004 00000052 1B 00 FFFFFFF8 MOVSP FFFFFFF8 00000058 1D 00 00000012 JMP off_0000006A 0000005E 1B 00 FFFFFFFC MOVSP FFFFFFFC 00000064 1B 00 FFFFFFFC MOVSP FFFFFFFC 0000006A 20 00 RETN If so, care to explain how? I'd like to know what this script does, so I can fake it into returning a TRUE result where it might not otherwise. Link to comment Share on other sites More sharing options...
shosey Posted September 9, 2004 Share Posted September 9, 2004 what is it that you are trying to create? Are you trying to screw with pazaak? If so, feel free to download my high stakes pazaak mod and look into it. There is some source that may shed some light onto what you are doing (if its pazaak) Link to comment Share on other sites More sharing options...
tk102 Posted September 9, 2004 Share Posted September 9, 2004 This script reads the global numeric variable "Tar_PazNik" and returns TRUE if it is greater than or equal to 5. Link to comment Share on other sites More sharing options...
Achilles Posted September 9, 2004 Share Posted September 9, 2004 It appears to set a global for whether or not you've played Pazaak with Niklos on Taris (in the Upper City Cantina). Specifically, it may indicate whether you've beaten him or what round you are on. Link to comment Share on other sites More sharing options...
tk102 Posted September 9, 2004 Share Posted September 9, 2004 Not set, but get. It gets a global. Link to comment Share on other sites More sharing options...
tk102 Posted September 9, 2004 Share Posted September 9, 2004 00000019 04 05 000A str CONSTS "Tar_PazNik" 00000027 05 00 0244 01 ACTION GetGlobalNumber(0244), 01 Using the constant string "Tar_PazNik" as a parameter, call the GetGlobalNumber function. 0000002C 04 03 00000005 CONSTI 00000005 00000032 0D 20 GEQII Using the constant integer of 5 and the value in the register (returned from GetGlobalNumber), perform a greater than or equal comparison on the integers. 00000052 1B 00 FFFFFFF8 MOVSP FFFFFFF8 00000058 1D 00 00000012 JMP off_0000006A Move the memory stack pointer by 4 bytes so that the return value is the result in memory (TRUE or FALSE) and return. Link to comment Share on other sites More sharing options...
BobRichter Posted September 9, 2004 Author Share Posted September 9, 2004 I should really stop asking questions to which the answer should be obvious. Thanks, tk102. How did you learn that stuff anyway? Link to comment Share on other sites More sharing options...
tk102 Posted September 9, 2004 Share Posted September 9, 2004 How did you learn that stuff anyway? http://www.masm32.com http://www.masmforum.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.