Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
Yes, that's Assembly. It's the lowest level programming language (other than machine code which isn't really a programming language), and therefore probably the most difficult (I haven't learnt it, I only know some basic principles). Using it is pretty hard, basically you're doing hardware-level commands with the processor - the nuts-and-bolts shifting memory in to processor registers, simple arithmatic commands and jumping around the code (no if statements or anything handy like that )
On the other hand, it's the fastest of all languages - it feeds directly in to the processor.
TI-83 BASIC is even better for those games(unless they actually have graphics).
I've made a BASIC platformer game on my calculator with 3 worlds. It still takes forever though.
n/a
Deleted User
1st May, 2004 at 03:15:47 -
"The only thing"? No! Assembly is also used for creating screen update parts of the 3d-engines in games, because they need to be very fast, many emulators are made using it etc...
cmp ax,bx ; compare ax with bx
jne some_label ; jump if not equal
; "ax == bx" stuff goes here
some_label:
; the rest of the code
It's only faster because it doesn't include all the useless stuff that other languages like C & BASIC put in. i've tried inline assembly with PureBASIC (www.purebasic.com) which turns out slower than my Pure code because it's optimised so well (That's why the .exes are only ~5kb)
PS: shad, your code block thing is screwy
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
And it is as fast as a speeding Cheetah x2.
And actually machine code is actually somewhat of a programming language, because before that they had to plug/unplug wires from the computers to make it do things... Man those where the days...
erm... most? I have to disagree with that - I'd say most commercial games (2d or 3d) are made in C++ with DirectX
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
it was definitly assembly that we used.
ive still got the workbooks
infact i remember that to run our programs we had to use some old steam powered pcs because the other ones were too fast. (even though they were mostly 300 to 600mhz)
the programs flashed some leds on a board a few times yet it took about 10 minutes to type copy the stuff out of our books.
Its a nasm (Assembler compiler) specific code. (Nasm is used nearly always for all OS compiles) it basically tells it (After compiling, fill any space until its 512 bytes)
Yeah, code it in C and any low level assembly bits you need can be in asm{}.
But coding an OS is pretty damn difficult, which is why there aren't many unique ones. Main problem: Drivers. How do you know how to communicate with the computer's hardware unless the hardware manufacturer has written a driver specifically for your OS?
the core still needs to be in assembly, cos most Windows C compilers produce Win32 asm which isn't quite the same as x86 asm
you could always make it compatible with Windows drivers ... that'd be a bit of a sodder though
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G