Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 28th, 2005, 11:46 AM   #1
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Were does it come from

I have a question regarding the architecture of the chips

within the cpu from the way I understand it there are two section`s control and computational, i understand how all the functions are processed but one thing,

I do not understand were the assembly language is coming from, is there some sort of assembly interpreter in the microstore in the control section to convert it to machine language?

Im trying to map a basic cpu in mmlogic, just so i can understand the fundaments better, but cannot find a diagram of the gates involved of a basic chip? (i have some prototypes, but they have flaws)

And how does assembly begin to create graphics??

(I have a very, very limited understanding at present)

Thanx in advance for any replys

Last edited by CodeJunkie; Dec 28th, 2005 at 12:02 PM.
CodeJunkie is offline   Reply With Quote
Old Dec 29th, 2005, 12:07 AM   #2
theproject
Newbie
 
Join Date: Dec 2005
Posts: 6
Rep Power: 0 theproject is on a distinguished road
hi there, i think your post is a bit confusing maybe because you are a bit confused too..
An assembly instruction is translated directly by the assembler into one machine instruction. This translation is really quite simple but is higly dependent of the target cpu. If you are looking for information on how to make this translation u have to get the techincal manual of the target cpu, but normally, the instruction in bits is seen by the cpu as a concatenation of values and normally the first few bits tell the cpu the type of instruction. For instance let's imagine the MOV instruction is coded to be like 10001, the cpu knows that all instructions beginning w/ 10001 are MOV instructions and the rest of the bits are used to represent the arguments. Of course, inside teh cpu there is a small module that has the task to look at the instruction and decode it to a lot of bits that will be used to control all sorts of things ( decoders, multiplexers, gates etc..) inside it to make the instruction happen.
I'm not an expert in cpu design but i hope it helped. cya []
theproject is offline   Reply With Quote
Old Dec 29th, 2005, 3:26 AM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by CodeJunkie
Im trying to map a basic cpu in mmlogic, just so i can understand the fundaments better, but cannot find a diagram of the gates involved of a basic chip? (i have some prototypes, but they have flaws)
Have you tried building an adder? Creating some memory with flip-flops? Constructing a device that follows fixed-length binary instructions?

Quote:
Originally Posted by CodeJunkie
And how does assembly begin to create graphics??
I believe it writes to specific locations of memory that represent the input to a graphics card.
Arevos is offline   Reply With Quote
Old Dec 29th, 2005, 5:07 AM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by Arevos
I believe it writes to specific locations of memory that represent the input to a graphics card.
When you are in protected mode, you write to the memory address 0xB8000 and higher (0xA0000 when using a monochrome monitor). In real mode, you use the BIOS by using interupts for writing to the screen.
Polyphemus_ is offline   Reply With Quote
Old Dec 30th, 2005, 9:43 AM   #5
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Thanx everybody !!

Quote:
Originally posted by Arevos
Have you tried building an adder? Creating some memory with flip-flops? Constructing a device that follows fixed-length binary instructions?
Yes, and Ive created basic calculators etc, im now trying to map a programmable cpu, but not sure the best way to approach it, all i can find are black boxed designs of cpu`s, ive mapped everything except the way it interpretes the instruction (I.e brakes it down to a command to the alu) just trying to find the best way, but i cant find any comprehensive examples?


Quote:
Originally posted by polyphemus
When you are in protected mode, you write to the memory address 0xB8000 and higher (0xA0000 when using a monochrome monitor). In real mode, you use the BIOS by using interupts for writing to the screen.
thats way above me !!!!
CodeJunkie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC