Jump to content

Home

k_ptar_paznik3.ncs


BobRichter

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...