| |||||||
| 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.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| 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 will 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 ). I think the 68HC05 is part of the same family as well.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).
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| Quote:
__________________ |
| |||
| 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.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| 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 07:40 AM. |
| ||||
| Quote:
You could do it in C, but it wouldn't be very pretty.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| OK thanks ![]() But (correct me if I am wrong) this project will be a combination of C and assembly?
__________________ GRAB overclocking -->OcBible v1.55 Guidemania v1.21 CARDGAMES-->Jack v1.17 Deck v1.13 Preference v1.20 |
| ||||
| Most likely pure assembly.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| 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.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
| ||||
| But what's your final opinion? Pure assembly for a project (you understand what I mean) or a combination of C++ and some assembly parts? C++ is fast I think like assembly?
__________________ GRAB overclocking -->OcBible v1.55 Guidemania v1.21 CARDGAMES-->Jack v1.17 Deck v1.13 Preference v1.20 |
| ||||
| 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.
__________________ Avatar and sig graphic by Pitch. Subscribers! Ask about a custom graphic or avatar today! Gizmo Thermal Diode Mod and Direct-Die Water Block 8-Cheetah 18GiB U-2 SCSI MegaRAID Enterprise 1500/128MiB Samsung SyncMaster 955DF TTGI/Superflower TTS-520 PSU ![]() ![]() ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Rate This Thread | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 80x86 Assembly Trouble. | DigitalKnight | Programming and Assembly Language | 10 | 23rd October, 2004 08:33 AM |
| Program? | Microgers87 | General Hardware Discussion | 4 | 27th August, 2003 09:53 AM |
| Need program for C++ | Allan | Programming and Assembly Language | 1 | 19th April, 2003 11:37 AM |
| The Assembly Language | Garfield | Random Nonsense! | 16 | 7th August, 2002 03:24 PM |
| Assembly Programmers | Garfield | Programming and Assembly Language | 13 | 28th June, 2002 08:37 PM |