Thread: Jazz 2 Source
View Single Post
Lama

JCF Member

Joined: Dec 2001

Posts: 2,272

Lama is doing well so far

Jan 14, 2002, 07:04 AM
Lama is offline
Reply With Quote
Quote:
Originally posted by Krezack
shuddup about ASM and actually try coding in asm.....youll soon see just how hard it is...noe delphi thats different delphi is.....bah just use delphi :P
Yes, you should actually try coding in assembly to find out how hard it is. With high-level languages like C, you don't have to bother with a lot of stuff and you get to concentrate more on the logic because a lot of the commands have been pre-written, e.g. you can just type printf("Hello, world!") and the string will appear on the screen once you execute the program. In assembly, you have to do mostly everything from scratch because it just gives you the bare essentials. Even example programs are not easy to understand, take this one (a program you can make using debug) for example

debug hello.com
a
Move AX, 900
Move DX, 10a
Int 21
Int 20
db "Hello, world!$"

rcx
18
w
q

is not as easy to make as it looks. Besides learning the syntax of the commands and what they do. You will need to perform a lot of calculations. The size of CX (command: rcx 18) was determined by subtracting the end address from the start address. Also, you don't get the data address 10a out of thin air, again, you note the sizes of the interrupts in between the commands and the address and you do some hexadecimal calculations to find out where you can insert that string.

I'd love to bore you to death some more but I have to wake-up early tomorrow.
__________________
"You know, every time a soldier is killed in Iraq it is YOUR FAULT for things like this!!!!" ~Spaztic

"I fake so many people that I don't know what my own name is any more." ~Overlord

"Well... UR MOMS FAT" ~CrimiClown®

"Why is baking soda so magically delicious?" ~Doubble Dutch

"Hypodise." ~Link