The Daily Click ::. Forums ::. Non-Klik Coding Help ::. what program language is this ?
 

Post Reply  Post Oekaki 
 

Posted By Message

Test_Tube_Games



Registered
  29/03/2004
Points
  45
30th April, 2004 at 08:44:06 -

start: mov ah,9
mov dx,offset prompt
int 21h
mov di,offset kinput
nxt: mov ah,1
int 21h
cmp al,cr
je done
mov [di],al
inc di
jmp nxt
done: mov al,'$'
mov [di],al
call hello
mov ax,4c00h
int 21h

hello: mov ah,9
mov dx,offset hi
int 21h
mov ah,9
mov dx,offset kinput
int 21h
ret
END

cr EQU 0Dh
lf EQU 0Ah
kinput DB 50 DUP ()
prompt DB cr,lf,'Type in your name: ','$'
hi DB cr,lf,'Hello $'
END


my brother was given it as an example and he doesnt know what it is, please help him

 
Be gentle I am a complete newbie!

Lew



Registered
  06/01/2002
Points
  1014
30th April, 2004 at 08:52:20 -

Looks like assembly to me, the basis of all codes.

 
<--intelligent, witty comment here-->

Test_Tube_Games



Registered
  29/03/2004
Points
  45
30th April, 2004 at 08:55:21 -

I see, my brother has been asked to program a guessing game using it, so my next question is...

How hard is it to use and where can he get some online help to use it ?

 
Be gentle I am a complete newbie!

Lew



Registered
  06/01/2002
Points
  1014
30th April, 2004 at 09:07:19 -

It's fairly easy to use but hard to learn.
There's a basic tutorial here (search for others): http://www.drpaulcarter.com/pcasm/

You'll also need an assembly compiler (I think, I don't have much experience but I guess you will.)

 
<--intelligent, witty comment here-->

Ashman

Possibly Insane

Registered
  12/06/2002
Points
  3974
30th April, 2004 at 09:34:20 -

What you talking about Moe?

Moe = Impact_Designs

 
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.


"Outshined" - SoundGarden

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
30th April, 2004 at 11:04:19 -

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.

 
- Tigerworks

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
30th April, 2004 at 12:12:54 -

Assembler for sure, look how small the commands are: mov, nxt, int, cmp, jmp...

 
I need painters, musicians and animators!

Galaxy613



Registered
  29/01/2003
Points
  1765
30th April, 2004 at 14:09:49 -

whoa... no if statements? it's like FISI you made(NOT to be confused with CFISI)

 
Image
My forum: http://subsoap.com/ck/forums/index.php

Capnzippy - (Smegsoft)



Registered
  11/02/2004
Points
  88
30th April, 2004 at 16:35:40 -

The only thing Assembly is good for is making little games to play on a TI83+ calculator...

 
klik-union -- http://www.klik-union.com
http://www.capnz.info

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
30th April, 2004 at 16:59:31 -

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...

Image Edited by the Author.

 

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
1st May, 2004 at 05:22:06 -

"if" statements go something like:

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

Image 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

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
1st May, 2004 at 07:41:21 -

Assembly is also used for device drivers and things because it has direct low level control over hardware.

 
- Tigerworks

Sage



Registered
  02/01/2004
Points
  43
1st May, 2004 at 08:08:22 -

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...

 
-Sage

Galaxy613



Registered
  29/01/2003
Points
  1765
1st May, 2004 at 12:47:57 -

so basicly a program tells that computer what wires to unpulg/plug? weird/kool

 
Image
My forum: http://subsoap.com/ck/forums/index.php
   

Post Reply



 



Advertisement

Worth A Click