BS_

עמוד

התגובות שלי בפורום

מוצגות 4 תגובות – 1 עד 4 (מתוך 4 סה״כ)
  • מאת
    תגובות
  • בתגובה ל: מבנה הזיכרון #78617
    BS_
    משתתף

    The command mov[bx], al will write the content of the register al to ds:bx,
    for example if bx equals 123 then the command will set the 123rd byte in the data segment to al
    in the CGX competition each survivor has 3 important segments:
    The code segment- the code segment functions as both code and data area (cs=ds)
                                      this segment contain the code of the survivors and is the main place where things happen.
                                      all the survivors share the code (and data) segment.
    the stack segment – the stack of the survivor which is used in push/pop/cal/return opcodes, this segment (ss register) is unique for
                                      for each survivor and surcicors cannot access the stack of other survivors
    the team segment – this segment is a special 1024 bytes long segment (the es register) which is common for survivors of
                                      the same team. this segment may be used to communicate between survivors of the same team.

    So, in conclusion:
    cs=ds – main arena, common for everyone
    ss – stack segment, unique per survivor
    es – team segment, unique per team

    Hope this answers you question.

    בתגובה ל: בקשר לפרסים #78618
    BS_
    משתתף

    QVB? too much physics for you man!

    בתגובה ל: עוד שאלה #78623
    BS_
    משתתף

    לא,

    השורד שלך יכול לבצע פקודות ששורד אחר כתב כל עוד

    הפקודה היא חוקית.

    בתגובה ל: מנוע חדש! #78645
    BS_
    משתתף

    A small note for the unix fans,

    If you want to run the new version of the CGX engine please use the following command:

    java -cp corewars.jar corewars.gui.CompetitionWindow

    Enjoy!

    Note: your java version must be 1.5 as DL mentioned.

מוצגות 4 תגובות – 1 עד 4 (מתוך 4 סה״כ)