Discussion:
Gerade im Film "Elysium" gesehen
(zu alt für eine Antwort)
Bonita Montero
2013-12-18 21:19:46 UTC
Permalink
Die Raumstation Elysium scheint von 32-bittigem x86-Code
gesteuert zu werden:
Loading Image...
Loading Image...
Mike Grantz
2014-01-04 03:06:55 UTC
Permalink
Post by Bonita Montero
http://f.666kb.com/i/ck7pu7ye25jp5uvd5.jpg
https://communities.intel.com/servlet/JiveServlet/downloadBody/5061-102-1-8118/Pentium_SW_Developers_Manual_Vol3_SystemProgramming.pdf

Guckst du Seite 8-23.

8-23
PROCESSOR MANAGEMENT AND INITIALIZATION
153 ; here with a near JMP generated by the builder. This
154 ; label must be in the top 64K of linear memory.
155
156 PUBLIC STARTUP
157 STARTUP:
158
159 ; DS,ES address the bottom 64K of flat linear memory
160 ASSUME DS:STARTUP_DATA, ES:STARTUP_DATA
161 ; See Figure 8-4
162 ; load GDTR with temporary GDT
163 LEA EBX,TEMP_GDT ; build the TEMP_GDT in low ram,
164 MOV DWORD PTR [EBX],0 ; where we can address
165 MOV DWORD PTR [EBX]+4,0
166 MOV DWORD PTR [EBX]+8, LINEAR_PROTO_LO
167 MOV DWORD PTR [EBX]+12, LINEAR_PROTO_HI
168 MOV TEMP_GDT_scratch.table_linear,EBX
169 MOV TEMP_GDT_scratch.table_lim,15
170
171 DB 66H ; execute a 32 bit LGDT
172 LGDT TEMP_GDT_scratch
173
174 ; enter protected mode
175 MOV EBX,CR0
176 OR EBX,PE_BIT
177 MOV CR0,EBX
178
179 ; clear prefetch queue
180 JMP CLEAR_LABEL
181 CLEAR_LABEL:
182
183 ; make DS and ES address 4G of linear memory
184 MOV CX,LINEAR_SEL
185 MOV DS,CX
186 MOV ES,CX
187
188 ; do board specific initialization
189 ;
190 ;
191 ; ......
192 ;
193
194
195 ; See Figure 8-5
196 ; copy EPROM GDT to ram at:
197 ; RAM_START + size (STARTUP_DATA)
198 MOV EAX,RAM_START
Helge Kruse
2014-01-04 08:36:22 UTC
Permalink
Post by Mike Grantz
Post by Bonita Montero
http://f.666kb.com/i/ck7pu7ye25jp5uvd5.jpg
https://communities.intel.com/servlet/JiveServlet/downloadBody/5061-102-1-8118/Pentium_SW_Developers_Manual_Vol3_SystemProgramming.pdf
Guckst du Seite 8-23.
Naja, fast. Die Zeilennummern sind anders. Da hat wohl eher jemand den
Code aus dem Buch in einem realen Projekt verwendet und dann das Listing
abgelichtet.
Post by Mike Grantz
8-23
PROCESSOR MANAGEMENT AND INITIALIZATION
153 ; here with a near JMP generated by the builder. This
154 ; label must be in the top 64K of linear memory.
[...]
Post by Mike Grantz
174 ; enter protected mode
^^^
Sollte Zeile 1699 sein.
Mike Grantz
2014-01-04 14:50:26 UTC
Permalink
Post by Helge Kruse
Naja, fast. Die Zeilennummern sind anders.
Korinth...

Loading Image...

Dr. Who schaut sich nen .svg Source aus der Wikipedia an.
https://upload.wikimedia.org/wikipedia/commons/a/a1/Light-wave.svg
Helge Kruse
2014-01-06 18:49:13 UTC
Permalink
Post by Mike Grantz
Post by Helge Kruse
Naja, fast. Die Zeilennummern sind anders.
Korinth...
2. Korinther 10.18
Steffen Christgau
2014-01-06 19:24:21 UTC
Permalink
Post by Mike Grantz
Dr. Who schaut sich nen .svg Source aus der Wikipedia an.
https://upload.wikimedia.org/wikipedia/commons/a/a1/Light-wave.svg
und wer noch mehr braucht: http://moviecode.tumblr.com/

Ciao... Steffen

Loading...