Re: Instr()
- From: dpb <none@xxxxxxx>
- Date: Fri, 03 Aug 2007 15:20:44 -0500
Mike Williams wrote:
"dpb" <none@xxxxxxx> wrote in message news:f8vsvh$a14$1@xxxxxxxxxxx
I have to also admit I've not followed the X86 architecture and
while I'm sure there is some microcode involved, is it actually
accessible/modifiable once the chip is packaged?
Probably not. In fact on the processors I was referring to myself (far too many years ago now to remember!) it never was. Microcode was used only during the design of the chip and was not accessible thereafter on most machines on which that processor was installed. But I really wasn't talking about microcode when I posted my initial response about the difference between "machine code" and "Assembler". The microcode thing was mentioned later by someone else. I meant that writing machine code can be done either with or without the help of an Assembler, and that writing it without the help of an Assembler is a quite different and much harder task than using an Assembler.
Yes, my point to whomever it was that mentioned the "microcoder" essentially was that same distinction between assembler and what (on certain architectures) was the tool for building at least some of the instruction set the assembler built machine code for.
When I first started writing machine code (on the 6502 processor) I used to write it by simply writing down the mnemonics (and sometimes just the hex numbers themselves, when I got more used to it) on paper and then writing some code in BASIC to "poke" those numbers into memory so that I could finally "call" the machine code routine to perform whatever task I wanted to do (usually writing some game or other). Writing machine code in that way was quite difficult, for all sorts of reasons, and I did it not because I thought it was somehow "macho" but rather because I simply could not afford to buy an Assembler (and, of course, there were initially no Assemblers available anyway for the machine I was using anyway). I soon decided to write myself an Assembler in BASIC. ....
There's where Forth is _eminently_ useful! :)
Yeah, been there done that (but threw the tee-shirt away years ago! :)
Our first intro course to FORTRAN started out w/ a week of machine code, then assembler before ever being introduced to FORTRAN so we would have an appreciation for the difference! And, of course, we wrote code for most of the semester until the final project w/o ever submitting a single punch card to the actual machine. Machine time was _far_ too precious and dear (in real $$) to waste on undergraduate programming classes. :)
--
.
- References:
- Instr()
- From: Jack
- Re: Instr()
- From: Mike Williams
- Re: Instr()
- From: Michael C
- Re: Instr()
- From: Mike Williams
- Re: Instr()
- From: Ralph
- Re: Instr()
- From: dpb
- Re: Instr()
- From: Mike Williams
- Re: Instr()
- From: dpb
- Re: Instr()
- From: Mike Williams
- Instr()
- Prev by Date: Re: Protect Working Projects
- Next by Date: Re: Checking version of loaded OCX?
- Previous by thread: Re: Instr()
- Next by thread: Re: Instr()
- Index(es):
Relevant Pages
|