Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / My First Asm Prog :D

Author
Message
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 18th Aug 2003 02:02 Edited at: 27th Sep 2003 20:04
here my first ASM prog
just execute this code in DB ....and then open the .zip and execute the .exe and ENJOY

see source button

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 18th Aug 2003 05:19
How did you learn all these data commands???

Does it matter if i have a sig???
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 18th Aug 2003 05:20
If you could explain please e-mail me if possible

Does it matter if i have a sig???
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 18th Aug 2003 06:12
lol

this is only a file.....readed byte by byte (1026 bytes)... and then it reconstruct the file... this is that simple

this is the prog i use to make these .dba:


but this is not the point of my post
the .EXE in the .ZIP that i posted is a prog that i made in Assembly language... i know this is not a forum of assembly .....but..i was happy to finish my first prog...

here the code for masm:


but the first Code.... (for DB) ..in my first ..message build the .exe ....then dont care about the code..

Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 18th Aug 2003 12:43
only numbers, but it work ^^
it's amusing

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 20th Aug 2003 00:48
here another one:

(just open the .zip and run the .exe)



Ocean Runner
20
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 20th Aug 2003 03:01
Theres no way to close the face prog!

"Computers in the future may weigh no more then
1.5 tons.
- Popular Mechanics, 1949
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 20th Aug 2003 03:40
lol.....
alt+tab, then right click on it...or ..ill had something to leave ..next time..

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 26th Aug 2003 21:31
How is assembly?

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
Eddie Gordo
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 26th Aug 2003 21:56
Mattman, what is it you want to know about assembly using data statements? i am off mentally today...i am not sure what ur asking...even though the question is not directed at me i am hoping to help as i just learned about ASM...

Visual Programming Studio ORANGE
Replacement IDE for Dark Basic Professional...
(Will Be Availeable When This is Removed)
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Aug 2003 01:27
do you mean..... ..what is assembly language is looking like?

if its your question... this is my code... it does the same thing than the ... DB prog..that i posted above:


this is assembly language:


Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 27th Aug 2003 02:35 Edited at: 27th Aug 2003 02:35
I meant, how is it? to learn. Easy, hard, moderate with a quarter of a monkey's beard with a pinch of toenail clippings? How long did it take you to learn ASM?

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Aug 2003 05:37
hmmmm ..i dont know ... ..maybe one month to understand everything about ..pointer..memory .....register and everything else.. but i did not finish to learn thing about assembly (..im at chapter 9 on 25)

from .. the day that i did this program...i made many program.. more and more complex.... without reading nothing .. (only a interuption list) ... just playing around with pointer memory.. to be comfortable..with them.. and now im doing a Lander game.. in space.. .. almost completed (80%) .. ill post it soon..

but.... if you dont even know one programmation language.. i dont think you will understand asm ....easily...

i was already knowing... almost 10 programmation laguage... (web programmation included)... then i was already ... familiar with programmation... but ..try it.. you will see by yourself.. this is the better way to know....

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 27th Aug 2003 18:04
I know: HTML, PHP, DBC and VB

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Aug 2003 18:25
html wont help you
..anyway just try a little tutorial.....and see what you feel..

Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 27th Aug 2003 22:08
ASM *shudders* get it away from me!
I had a bad time with z80, and I'm always going to have a bad time with all assembler. Why I even looked at this thread is mind boggling!



Hell Begins September 2nd at 7:30 AM. Yep, schools starting soon.
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 27th Aug 2003 22:09
Im gonna learn Java soon

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 23rd Sep 2003 18:01
ya know i was just passing through here looking for a thread i'd lost a while back but need info from...

ya know i thought you were a good coder before, but christ
Boy you've got MAD SKILLZ

definately quality mate

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 23rd Sep 2003 19:41
thx
it is so nice to read a commment like that

almost all of my code that is posted....have no reply...
or some poor comment... maybe DB user are not enough.. avanced to see the quality of my snippet...

now i am working on a 3d engine in delphi (witouth DirectX or OpenGl..i mean i do all calculation myself (the only graphic api that i use is 'SetPixel'))...
and im now modifying it to be completly ....with api.. i mean ill do EVETYHING.. myself.. i wont use 'uses'.. ill make my own window..

i will do it this way to code it in Assembly... but i do it in delphi first to ..be able to debug it easyly....

...anyway ill post it here even if its not related to DB.. for now here is an old version(exe or code):
http://www.brainwasher.free-host.com

late ill post my new version..

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Sep 2003 02:13
I hate using asm. I had to use it to move/copy files through DOS before for a test i had. mov and registers and all that junk, grrr.
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Sep 2003 04:50 Edited at: 25th Sep 2003 04:52
wow! So basicly You are creating a new graphics library ??? omg, you ara amazing. You could make a fine language.

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 25th Sep 2003 06:37
yeah ... ill maybe make a 'DarkbasicLike' ... much basic.. but

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 26th Sep 2003 01:17
You get my e-mail???

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 26th Sep 2003 03:48
yeah i answered you

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 26th Sep 2003 06:02
responded back

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Sep 2003 02:10
responded back too

Compton
21
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 27th Sep 2003 16:46
I must be dog stupid (blonde) but how does this program work? Does it turn another program in to db?
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Sep 2003 20:08 Edited at: 27th Sep 2003 20:08
in fact yes

try this one:


....it take any file... (not too big file..) and it will make you a .dba who will construct the SAME file...

an example of.... program it can make :


this one was an Assembly program that i did.....

Anonymous I am not
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location:
Posted: 17th Oct 2003 05:44
Yuck get out of the 16-bit world man! There's a whole new instruction set for the 32-bit architecture.

The Dingman
Anonymous I am not
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location:
Posted: 17th Oct 2003 05:48
In fact, this only works for DOS. Try doing this as a Windows Executable, you'll find a nice surprise. It's a lot more complicated in Windows; therefore, you should use Direct X. That's the purpose of applications like this--is to remove that layer of complexity. This was wrapped around Direct X. Direct X is wrapped around assembly/C++/machine language--YUCK.

The Dingman
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Oct 2003 08:35
actually knowing ASM is an invaluable programming skill.
although Pascal/Fortran/C might offer you a higher level to a language, they don't always have what you require. Nor do they give you 100% access to your systems resources without having to rely on other people code.

ASM unlike the Higher level languages isn't limited to individal processor types or binary types or language setup structures.
Infact is it possible one of the most open-ended and powerful language there is. Allowing any user total access to no matter what system they are utilising.

As for making your own Graphics APi, very ambitious but I do have faith that you can get something good working.
Be sure to checkout Quake and Quake2's source, they might be in C but they have particularly good Software Rendering engines. But no means fast by todays standards, but still fairly good to see how it was done a few years back.
MGL or MesaGL is another good opensource system ... what you want to do is focus on making the API with drivers to particular cards, and making the generics for them. nvidia and its community are oftenly nice to help out people with such things, ati you might hit a few brick walls but there is alot of info about thier cards.

(^_^) good luck mate


To Survive You Must Evolve... This Time Van Will Not Escape His Fate!
bytemonkey
20
Years of Service
User Offline
Joined: 30th Oct 2003
Location:
Posted: 31st Oct 2003 23:03
Quote: "Data 224,97,201,48,40,136,130,40,24,130,87,241,208,67,188,180,179,4,182,150,80,112,111,169,94,212,131,172,228,80"


...and i was sure that would be a red haired girl

Login to post a reply

Server time is: 2024-05-03 13:34:08
Your offset time is: 2024-05-03 13:34:08