ברוכים הבאים לאתר תחרויות קודגורו! › פורומים › אקסטרים › הצעה לזומבי
- This topic has 4 תגובות, 3 משתתפים, and was last updated לפני 19 שנים, 11 חודשים by
Alkhimey.
-
מאתתגובות
-
15 בנובמבר 2005 בשעה 15:36 #77160
CodeGuru
מנהל בפורוםמה דעתכם על הזומבי הבא:
02 C4 8B F0 83 C6 11 AD 3D CC CC 75 F7 89 5C FE 43 75 F1 …
א. למה, לדעתכם, הוא נועד?
ב. איך אפשר להמשיך אותו?
17 בנובמבר 2005 בשעה 03:36 #78678Alkhimey
משתתף"The fifth strategy, which I find the most interesting, is the vampire.
It is possible to bomb memory with JMP instructions. An enemy program
which runs across such an instruction will be "captured", and can be
forced to execute useless code. One particularly nasty implementation
of a vampire sucks the enemy program into code where it not only
splits into many different threads, which slows down all the enemy
threads, but also slowly bombs memory in a fashion which will never
kill the vampire! Unfortunately, vampires have to leave pointers to
their "pits" all over memory, so anti-vampire programs can look for
these pointers and bomb the pits or write useful code over them"http://www.koth.org/info/greg_lindahl_corewars.html
וגם, אנחנו לא מכונות, תרשום את הקוד במילים
17 בנובמבר 2005 בשעה 12:42 #78677CodeGuru
מנהל בפורוםלבקשת הקהל, רצ"ב הזומבי במילים:
add al,ah
mov si,ax
l:
add si,17
lodsw
cmp ax,0cccc
jne l
mov [si-2],bx
inc bx
jne l..איך נמשיך מכאן?..
מטרת התוכנית איננה להלחם (אם תריצו אותו תראו שהוא מנסה די בהצלחה לא לגעת באחרים). התוכנה הזו נועדה לתת לאחרים הזדמנות להרוויח ממשהו חכם יותר מאשר הפצצה לכל עבר. יחד עם ארבעת המתחרים, נזרוק לזירה עוד (עשרה?) זומבים כאלה. כל מי שימצא את אחד הזומבים (איך?) יוכל לחטוף אותו ולקבל עוד זמן ריצה עבורו.
22 בנובמבר 2005 בשעה 11:35 #78675Tnid
משתתףרעיון לשיפור קטן…
במקום:
lodsw
cmp ax,0ccccתשתמשו ב scasw
(ולהשתמש ב DI במקום SI, ולהעתיק אל AX את הערך 0cccc)
22 בנובמבר 2005 בשעה 12:30 #78672CodeGuru
מנהל בפורוםתודה על הצעת התיקון. רצ"ב הגרסא המעודכנת
add al,ah
mov di,ax
mov ax,0cccc
l:
add di,17
dec cx
repne
scasw
mov [di-2],bx
inc bx
jne l…
-
מאתתגובות
- יש להתחבר למערכת על מנת להגיב.