|
Programming and Assembly Language Please read this Topic's rules!! |
![]() |
| LinkBack | Thread Tools | Rate Thread |
| |||
reasom to learn assembly language is explained at www.shareplatform.com
__________________ |
| ||||
I prefer Object Pascal or Delphi i should say. Even C++ is a bit too much to waste my time on unless i really need it. It came in handy once when i made a dll plugin for alternate windows shell........for some reason i just didnt get how it was done in delphi ![]() Iv'e seen some Assembler source and it doesn't look very inviting lol.
__________________ |
| ||||
x86 assembly is the whole reason high level languages were invented, LOL. 68K is much friendlier, IMHO. For that matter, even 8051 is somewhat nicer. Object-oriented languages are fine as long as the problem you are trying to solve fits in the realm of what those tools were designed to do. Step even the slightest bit outside that realm, though, and you are SOL. It pays to remember, however, that the high-level nature of objects and object-oriented languages comes with a price; that price is increased memory footprint and reduced performance. Any monkey can build a solution when money is no object. Just throw RAM and CPUs at it until the problem goes away. It takes engineering to solve a problem within a given set of constraints. That's when it pays to be familiar with both low- and high-level languages. As with any problem, it's a matter of choosing the tool best suited to the task at hand. |
| ||||
PICs very often use a basic-like language thesedays. It only takes about 1/2 an hour to learn asm for a simple chip like the old Intel and Motorola 8 bit controllers ![]() For the Intel 8051 & 8052 http://www.8052.com For the 6502 http://www.6502.org/
__________________ It is by coffee alone I set my mind in motion... |
| ||||
For the Z80 http://www.z80.info/ The 8080 is the same as the Z80 (indeed, Zilog built the Z80 to be a direct, but more powerful, replacement for the 8080). There's a fair amount of interesting stuff here for the 6800, 6809, and 68HC11 http://www.programmersheaven.com/zone5/cat26/ The truth of the matter is, though, if you learn the 6502 you pretty well know the 6800, because the 6502 was designed by some of the same engineers who did the 6800. In many ways, the 6502 is streamlined 6800. The 6809 is a souped-up 6800, and the 68HC11 is more of the same, IIRC (it's only been near 20 years since I've worked with them ![]() The Zilog Z8 can be found at www.zilog.com. It is its own little chip, rather like the PIC, but is completely register oriented (all of the RAM is the register file). |
| |||
Quote:
__________________ Any views, thoughts and opinions are entirely my own. They don't necessarily represent those of my employer (BlackBerry). |
| |||
The best way to program would be to write most of the code in Higher-Level languages reverting to assembly whenever speed is critical or else precise control over code execution is desired .....But beyond that i believe using Assembly language would be a waste of energy and time . |
| ||||
That rather depends on your goal. I defy you to write the code that I put into the Z8 I used on the Keyboard Gizmo that I designed many years ago using a high-level language; I only had 2K of ROM space! As with all tools, you examine the tradeoffs and then pick the best tool or set of tools for the job. |
| ||||
Quote:
gizmo since you see OcBible let me ask you this: Is it possible to use a high level programming language (e.g. C#) to write a program for monitoring temperatures, voltages??? A clock generator??? I think it is impossible. ![]()
__________________ Last edited by MrSeanKon; 6th April, 2007 at 01:40 PM. |
| ||||
Quote:
You could do it in C, but it wouldn't be very pretty. |
| ||||
Most likely pure assembly. |
| ||||
Quote:
Quote:
Quote:
Is it possible????
__________________ |
| ||||
Strictly speaking, yes, it is possible. As a practical matter, I have not found situations like this that did not benefit from at least a little assembly language. While it could be done in C, a small amount of assembly mixed in usually provides a cleaner solution. |
| ||||
The choice of language depends on the goal. For pure speed nothing beats assembly. But it is a PITA to program, has a steep learning curve, and a long development cycle. C is slower than assembly (in some cases as much as 10x slower), and has a larger memory footprint. However, it is not specific to a particular CPU or architecture, or even OS unless you us OS specific features. It also tends to be easier to learn, and has a shorter development cycle. A good programmer is familiar with several languages, so that he can choose the best tool for the job at hand. On top of all of this, you have the additional considerations of deploying a program over the Internet, and whether you want to run it from a web page or not. As an example, there are a great many freely available Flash games on the web. They are written using ActionScript, which is a variation of Javascript. As a result, they can run in pretty much any browser that supports ActionScript, on pretty much any OS. The language is relatively easy to learn, and supports a great many high-level constructs, making the development cycle pretty short. The price you pay for that flexibility is that the language has a lot of overhead, and because of that it requires a pretty fast cpu to get decent performance. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Rate This Thread | |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
80x86 Assembly Trouble. | DigitalKnight | Programming and Assembly Language | 10 | 23rd October, 2004 02:33 PM |
Program? | Microgers87 | General Hardware Discussion | 4 | 27th August, 2003 03:53 PM |
Need program for C++ | Allan | Programming and Assembly Language | 1 | 19th April, 2003 05:37 PM |
The Assembly Language | Garfield | Random Nonsense! | 16 | 7th August, 2002 09:24 PM |
Assembly Programmers | Garfield | Programming and Assembly Language | 13 | 29th June, 2002 02:37 AM |