Перейти к содержанию

CE 6.6 Директива {$STRICT}


MasterGH

Рекомендуемые сообщения

Теперь можно не писать метки типа label(returnHere) в AA скриптах, но иногда, когда меток очень много и нам нужно увидеть, какие метки нами используются, но не назначены, то можно применить директиву {$STRICT}

 

Пример без строго оформления

Скрытый текст


[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)

 

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [test.exe+5B5A4], 100
originalcode:
inc [test.exe+5B5A4]

exit:
jmp returnhere

"test.exe"+5464A:
jmp newmem
nop
returnhere:
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"test.exe"+5464A:
inc [test.exe+5B5A4]
//Alt: db FF 05 A4 B5 45 00

 

Пример со строгим оформлением

Скрытый текст

{$STRICT}
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(originalcode)
label(exit)
label(returnhere)

 

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [test.exe+5B5A4], 100
originalcode:
inc [test.exe+5B5A4]

exit:
jmp returnhere

"test.exe"+5464A:
jmp newmem
nop
returnhere:

 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"test.exe"+5464A:
inc [test.exe+5B5A4]
//Alt: db FF 05 A4 B5 45 00

 

  • Плюс 1
Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...

Важная информация

Находясь на нашем сайте, Вы автоматически соглашаетесь соблюдать наши Условия использования.