Click to See Complete Forum and Search --> : Why?
visualAd
Dec 22nd, 2002, 04:35 PM
I know this is a strange question but what uses does assembly have.
Is it used to program EPROM's or something?
BodwadUK
Dec 23rd, 2002, 03:29 AM
Assembly is low level code and can be used to interact with devices and motherboards. VB is a high level system and although simpler has a much more restricted Scope as you cannot manipulate devices directly!!!
If you wanted to create an OS you would Probably use Assembly but otherwise if you want an app to work in Windows you would use VB
Hope That Helps :D :D :D
CornedBee
Dec 23rd, 2002, 07:34 AM
Assembly is useful in high-level programming because it can seamlessly be embedded into C/C++ apps. Since assembly correspondends directly to CPU instructions you can use this feature to write extremly fast code. For example you would probably want to write a loop that is called a few hundred times during an operation in assembly and get a 5-10% speed bonus (or more if your C/C++ compiler is bad).
Assembly is very much used in professional game programming.
RabidChimp
Dec 23rd, 2002, 10:32 PM
especially in Handheld devices like the GameBoy Advance in which u want all the speed u can muster:D
CornedBee
Dec 24th, 2002, 04:18 AM
Game Programmers always want all the speed they can muster, even on a 2.5GHz CPU with a DX9 compatible graphics card.
VBGOD
Dec 28th, 2002, 02:33 PM
Game engines.
snakeeyes1000
Dec 29th, 2002, 03:04 PM
game engines and mechanical. more intense levels of encoding/decoding also require this, as well as handheld devices where space/speed is limited.
CornedBee
Dec 29th, 2002, 03:27 PM
Yep, the Java Micro Edition is an oxymoron...
myname
Feb 1st, 2003, 02:38 AM
I have a question.
Will assembly will remain the only language in the future to interact with the hardware ? I mean to say that , will there be any other language developed to be similar to assembly as well as a little bit easy ?
Just curious about it.
myname
Feb 2nd, 2003, 12:52 AM
No replies yet???? :rolleyes:
BodwadUK
Feb 3rd, 2003, 02:33 AM
Assembly is a base language that means that many current programming languages are probably coded in assembly, the point of these programming languages is to remove the complication and as a result no simpler versions of assembly have been made and probably wont be even though it is possible to do :D :D :D :D
P.s Assembly is also used to interact with circuit boards and chips and this is the most common use of assembly these days. All machines that you see like fruit machines and other none computer machines in arcades will probably have some assembly code behind them :) :) :)
myname
Feb 3rd, 2003, 11:16 AM
Does that mean assembly will be the only language to interact with the hardware say after 5yrs from now i.e only assembly will be used?
BodwadUK
Feb 4th, 2003, 02:01 AM
Cant predict the future you know :D :D :D :D :D
CornedBee
Feb 8th, 2003, 04:57 PM
Well, some BASIC versions for example had direct commands to interact with hardware. But the BASIC interpreter still had to be written at least partly in Assembly in order to be able to interact with the hardware.
But it's not about assembly. Only the CPU can interact with hardware, only machine code can do anything at all. All languages are compiled, assembled or interpreted to machine code, directly or via Assembly.
MXK
Jun 5th, 2003, 11:14 AM
My responce to this is very simple, ASM to C++ (or VB) is the same as DOS to Windows (or Linux). It is much more difficult to use, but it will remain as the base. Not many people use dos as their only system now, but when your Windows cashes for the 1000s time, you go right back to DOS and type a:\>format c: :D
I am still very much learning c++ as well as asm, one of my latest projects was to design an enviroment for working in 13h graphics mode. Most was c++, functions where speed is the most important part - asm.
CornedBee
Jun 5th, 2003, 12:06 PM
Originally posted by MXK
My responce to this is very simple, ASM to C++ (or VB) is the same as DOS to Windows (or Linux). It is much more difficult to use, but it will remain as the base. Not many people use dos as their only system now, but when your Windows cashes for the 1000s time, you go right back to DOS and type a:\>format c: :D
Uh...
DOS is the base only of Win9x, WinNT+ has done away with it.
And Linux never had anything to do with DOS except that GNU/Linux is a UNIX-like OS and the DOS interface was oriented after the UNIX interface (cd anyone?)
MXK
Jun 5th, 2003, 01:57 PM
Ok well that was a bad analogy, I didn't mean it as though one is built on another, just that one will always be there no matter how much you improve the other.
Darkwraith
Jun 6th, 2003, 01:19 PM
Assembler isn't more difficult than higher level programming languages.
It's just takes longer to program the same thing. :D
Eras3r
Jun 17th, 2003, 04:04 PM
Are you sure asm is used as much as you think in game programming? I'm going into Game Development and I haven't seen asm used at all yet...
Although, I'm a DX noob yet.... I still haven't seen any asm yet. (I know some asm, I just haven't seen any in game programming)
I'm going to Full Sail (game programming school) in a few months, so maybe I'll see what you're talking about..... :/
Sastraxi
Jun 17th, 2003, 07:33 PM
Say for example you have a complex lighting algorithm that should be done as fast as possible. You could write it in C++, or you could write it in ASM with optimisations for MMX, MMX2, SSE, SSE2, 3DNow!, 3DNow! Professional, etc. With CPU-specific optimisations becoming not so CPU-specific anymore (Athlons and P4s share MMX, MMX2, and SSE), it's a wise idea to use assembly to speed up complex algorithms....
Even though this point has become less valid with the introduction of programmable pixel shaders (which is what this would be used for), the main point still stands, and shows that assembly is very useful in games.
Darkwraith
Jun 18th, 2003, 03:25 PM
In game programming, you only see assembler done on short code segments that need optimizations. As I stated earlier, it takes a lot more lines of assember to do the same thing than in a higher level programming language. That's why you have not seen it extensively used.
Sastraxi, you are just stating a portion of the story. You also have 68000, Z80, MIPS, and a slew of other instruction sets, not just 80x86 (or i386, whichever floats your boat.) :)
And its not even ust for games either. You need any algorithm done really fast, assembler is the thing to do.
CornedBee
Jun 18th, 2003, 05:45 PM
Originally posted by Darkwraith
Sastraxi, you are just stating a portion of the story. You also have 68000, Z80, MIPS, and a slew of other instruction sets, not just 80x86 (or i386, whichever floats your boat.) :)
Only that not very many high-end games are developed for these CPUs...
Darkwraith
Jun 18th, 2003, 05:55 PM
Why not include Macs (68000) and Game Boys (Z80)?
I don't have my resource on hand at the moment but I think that MIPS is used for cell phones or PDAs.
And we cannot neglect graphing calculators... :)
Ticalc (www.ticalc.org) (Take a look at the archives and you will see what I mean.)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.