1 Replies - 1388 Views - Last Post: 06 February 2012 - 07:34 AM

#1 stevenmac2   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-February 12

Creating the assembler to a processor?

Posted 04 February 2012 - 05:18 PM

Hey guys,

New to the forum here.

I was reading about Commodore: A Company on Edge and it was talking about the MOS Technologies creation of the 6502/10 processors which Apple and Commodore used in their computers. My question centers around the big picture, can someone explain to me in order to create up to the Basic Microsoft established, how is that done? Please forgive any misgivings of not having a full understanding. My question is for learning purposes based upon what I read in the book , trying to translate it into something tangible for me to understand, and just would like know more of how these guys created this stuff so quickly when tools and knowledge in the field was so limited then in the mid-to-late 70s.

[6502/10 CHIP]
Q1 - In order to interface with the microprocessor itself, do you have to define something like micro controller codes that specify which pins are turned on to the chip which then invokes an action?
Q2 - Once the controller codes are made, does it then pave way to create the assembly language (like LDA ##) which translates into machine code. Then each machine code relates to a controller code to perform that function?
Q3 - Once Assembler is created, then it allows for a language like BASIC or any other language to be created? So to execute a PRINT command for example?

I am just trying understand order and progression of how something gets translated back to the processor as an executable command (or in this case a series of 1s and 0s of voltage being sent to the pins).

So would the top-down order be.

(just as an example - no accuracy here, just concept for my understanding)
PRINT #3
--> converted into Assembly (say LDA #3, op code, op code) that represents that action
--> converted into Machine Language 0A F1 03 05 35 B2 FF 32
--> Each ML code then converted into bits (0s and 1s)
--> Each 0s and 1s match to microcontroller code that causes that function to happen on the processor and access/store data areas in ROM or RAM?

Thanks for breaking this down for a more complete understanding. I think this stuff is really interesting!

Steven

Is This A Good Question/Topic? 0
  • +

Replies To: Creating the assembler to a processor?

#2 stevenmac2   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-February 12

Re: Creating the assembler to a processor?

Posted 06 February 2012 - 07:34 AM

Let me back up for a sec. How are the Opcodes stored to the microprocessor? How are those defined and then stored so that then you can access it through an ML monitor?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1