1. Если вы только начинаете программировать на ассемблере и не знаете с чего начать, тогда попробуйте среду разработки ASM Visual IDE
    (c) на правах рекламы
    Скрыть объявление

To FOUR-F

Тема в разделе "WASM.ENGLISH", создана пользователем dcskm4200, 18 май 2005.

  1. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    Hello,shoo



    Thanks for you did valuable works.

    the new lv_15.exe worked fine. no any crash has been happened. but it worked slowly.

    ;=================================

    hostname can display chinese name and english name in our localnet. the probability of crash maybe created at



    "invoke gethostbyaddr,addr dwIpaddr,4,2" line in multithread running. since they writted same eax at the same



    time.

    modified as following:

    ;===========================

    pushad

    invoke gethostbyaddr,addr dwIpaddr,4,2

    .if eax !=0

    xmov lpNamebuf,[eax]

    .else

    xmov lpNamebuf,offset unknown

    .endif

    popad

    ;===========================

    but the crash still exist there.





    regards
     
  2. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    slow because only one thread works at once. do not think such registers preserving is needed - they have to be preserved by OS in the context of the thread. i still think the problem is in the amount of threads: try to do as i told you: create limited amount of threads - 10. write a proc returned next ip (its code even can be placed inside thread proc between ENter and LeaveCriticalSection) - and try it again. you can even make a constant for count of threads and when it will work - try to increase it and test. tell me if you will get a success.



    regards!
     
  3. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    hello, shoo



    I can't get a success.



    regards
     
  4. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    ok. i'll see what can i do.
     
  5. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    hello,shoo



    now, I can limit the Arp_IP2MAC threads amount.

    if i put "

    invoke gethostbyaddr,addr dwIpaddr,4,2 .if eax !=0

    xmov lpNamebuf,[eax]

    .else

    xmov lpNamebuf,offset unknown

    .endif



    " into between ENter and LeaveCriticalSection,

    then lv_15.exe can't work truly.



    regards.
     
  6. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    he-he... foreign code and other work do not let me concentrate well enough... so, while can you tell me "was ist das"?:
    Код (Text):
    1.         invoke wsprintf,lpNamebuf,addr szMacFmt1,lpNamebuf  ; HostName
    2.         invoke wsprintf,lpIpbuf,addr szMacFmt1,lpIpbuf      ; IP addresss  


    and does it needed at all - let's see ;)
     
  7. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    Hello,shoo



    you are completely right.



    yeah, it is the foreign code. as told as a proverb :

    I drawed a snake in a paper, and added foots with it.



    now, limited the amount of thread is not necessary. All is ok.



    Thanks you very much.



    regards
     
  8. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    so, now you should to go in for studing Russian to take a part in a common forum ;) you will see the word "chin.." - "китай.." is also usable here ;)

    nice proverb - can you repeat it with chineze chars here? regards!
     
  9. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    画蛇添足.
     
  10. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    great! 谢谢
     
  11. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
  12. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    hello,shoo



    using your uni_str.dll,Could i translate Russian into english?



    regards
     
  13. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    studying a language is not a easy thing. the win32asm Langure already has caused me very paining.
     
  14. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    no, it is not a translator. it is an add-in (plagin) to winasm studio, which pops unicode dialog with editor, where you can enter unicode text (even mixed with some languages) and then insert it into ansi text as dw-s (while all code editors are ansi-editors). in other side, if you use winasm, you can insert russian letters into your code as dw sequence.



    for example you can insert rus. word "Привет" ("Hello") into your source with it as

    dw 0041FH, 00440H, 00438H, 00432H, 00435H, 00442H, 00000H

    and compile proper independently of codepage of your editor.



    well, try to compile this: (just made ;)

    [​IMG] 608430782__uhello.bat
     
  15. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine


    i know ;) i did not forcing you, just gave you an idea ;)

    regards!
     
  16. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    It is a usefully code.

    Thanks you for giving more information.