Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-30-2003, 03:36 PM   #1 (permalink)
 
Newb Techie

Join Date: Dec 2003

Posts: 5

DaRetard

Default CPU Regsiters

I recently started looking into ASM and reading different books about it,etc. One question that's been bugging me is the registers. It appears to me that every single program in memory uses some register in some way. So how can it be that all programs can use all the registers simultaneously without messing up the other programs? Does the CPU create a copy of the registers for each program? BTW this is regarding the newer Intel x86 processors. Thanks for any help!
DaRetard is offline  
Old 12-30-2003, 04:18 PM   #2 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 300

mike11973

Send a message via Yahoo to mike11973
Default

i'm pretty sure that processors have to have the ability to share registers simultaniously in order to operate....
__________________
NF7/S Rev2.0 : D25 Modded bios by -=Merlin=-(cpc on)
2500+M @ (250*10)
G.Skill ddr 400LA(TCCD)running 1:1@250
3-3-3-3
Saphire 9800 Pro
cpu-1.8v
ram-2.7v
chipset-1.6v

Knowledge IS power....dont be afraid to be open to it.


<a href=\"http://arc.aquamark3.com/arc/arc_view.php?run=1493626296\">My aquamark score</a>

overclocking 101
mike11973 is offline  
Old 12-31-2003, 04:12 PM   #3 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

for the programs that I have read, everytime a function returns a value to eax (or other), the program saves it in RAM immediately. multitasking is like, when a window is waiting for message from user or another window, Windows can give control of CPU to another program. Surely a CPU cannot process more than one program at one time, in other words it does everything one by one and sometimes leave one alone and come back later. whenever a program is "hung up", it's paused and the registers clear.
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On