התגובות שלי בפורום
-
מאתתגובות
-
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 teamHope this answers you question.
BS_משתתףQVB? too much physics for you man!
BS_משתתףלא,
השורד שלך יכול לבצע פקודות ששורד אחר כתב כל עוד
הפקודה היא חוקית.
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.
-
מאתתגובות