cjb0087
Knave
Australia
76 Posts |
Posted - May 31 2004 : 4:47:28 PM
|
I am planning to learn assembly, mainly because most people say to since it increases you knowledge of computers someway....
anyway ive been unable to find any GOOD tutorials on it anywhere, most of the alrightones have conflicting stuff.
I was hoping that almar may be able to shed some light |
www.bugsplat.tk |
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 31 2004 : 5:00:23 PM
|
Good luck... did you do a google for ASM/assembly tutorials, There should be quite a few tutorials out there...
|
|
|
masterbooda
Swordmaster
277 Posts |
Posted - May 31 2004 : 10:11:02 PM
|
problem with assembly, is you have to choose a instruction set to learn, I would suggest, actually looking up some emulator coding tutorials... for all of the console systems used assembly, and it is a good place to start... I learned on a 6502 architecture(nes system), that was a good place to start... most instructions sets are similar except maybe a few things... Just choose one that will work with you and go with it... and you can find numerous tutorials on line, just do what sr. quapo suggested and do a google search.
DaBooda out... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|
masterbooda
Swordmaster
277 Posts |
Posted - May 31 2004 : 10:12:12 PM
|
And one more thing, assembly is good, because it teaches you memory management, because you work directly with the stack... It does give you an appreciation, if not more knowledge, of a higher end language...
DaBooda out... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 31 2004 : 11:16:44 PM
|
If you had problems understanding pointers in C/C++, it will be near impossible to understand low-level memory features (like the "stack") in assembly/ASM. That is where a very solid understanding of how a computer works in it's entirety comes in handy... |
Edited by - Sr. Guapo on May 31 2004 11:17:23 PM |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - Jun 01 2004 : 01:55:11 AM
|
quote: Originally posted by Sr. Guapo
If you had problems understanding pointers in C/C++, it will be near impossible to understand low-level memory features (like the "stack") in assembly/ASM. That is where a very solid understanding of how a computer works in it's entirety comes in handy...
I can do ASM.. but not C :). I haven't touched a C compiler in my life. :).
Anyway, on my site youll find some basic math examples.. by just messing around with DLL's and VB, you'll learn a lot.
btw: Don't try this on Win98/ME, you'll need 2k/XP :) |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - Jun 01 2004 : 10:51:17 AM
|
And I can't learn for the life of me how stacks work...
|
Whatever. Who knows... |
Edited by - VBBR on Jun 01 2004 11:08:09 AM |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - Jun 01 2004 : 11:45:36 AM
|
Nobody does... except for the people who developed the computers after 10 years of graduate training in computer engineering/architecture... |
|
|
masterbooda
Swordmaster
277 Posts |
Posted - Jun 01 2004 : 7:25:33 PM
|
The thing that confused me with the stack, was all the push and pop... because sometimes you pushed and then pushed again, and then popped once, and I couldn't keep track anymore... I would suggest only using assembly to code math functions to be used in vb... because of the speed increase... of course anybody is smarter than me...
DaBooda out... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - Jun 01 2004 : 8:09:57 PM
|
Yeah and what sense does this push/pop stuff make? And I need to know stacks, to use in OpenGL, Lua, NSIS, etc... and maybe even ASM...
And masterbooda... stop making little of yourself, this is bad because we end up convincing ourselves that we are less capable and eventually really being. |
Whatever. Who knows... |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - Jun 02 2004 : 07:10:01 AM
|
Yeah, ive always wondered how to make NES games, ill give it a shot.
Thanks for all your input, i ended up making a 20 line program on the school computers using the a86 compiler, it just printed 'first asm program' to the screen :) |
www.bugsplat.tk |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - Jun 02 2004 : 09:12:44 AM
|
Not "hello world"? J/K, Wow, 20 lines, in VB I could do that with... lets see... one!
What always confused me about assembly were the registers... I never understood how there were only a few 1 byte registers you could use... It is a good thing I didn't learn to program in assembly... I never would have used a computer again! |
Edited by - Sr. Guapo on Jun 02 2004 09:23:25 AM |
|
|
masterbooda
Swordmaster
277 Posts |
Posted - Jun 02 2004 : 09:48:26 AM
|
The problem with the 1byte registers, is you had to split your long variables up and spread them to about 3 registers, so to multiply 1 * 256, since 256 is more than 1byte, you have to use two registers, and use a multiplitive additive type of dilly and forget it!!! give me my vb!!!
DaBooda Out... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - Jun 02 2004 : 12:40:14 PM
|
eh.. 1 byte? I never even saw Those :)
I'm only familiar with AX = 16 bit, and EAX = 32bit... andon a 32bit proc you'll only use 32bit probably anyway (so ecx, edx, eax, etc) |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - Jun 02 2004 : 1:01:15 PM
|
That is weird, the tutorials I have seen showed some 1 byte, and I think a 2 byte... I don't think I have ever seen a 4... I guess that makes alot of sense though... |
|
|
masterbooda
Swordmaster
277 Posts |
Posted - Jun 02 2004 : 1:19:42 PM
|
Your extremely old chip sets, we are talking radio shack color computer's here, are only capable of the one byte, but it is rare, but your new chips are capable of 32 bit, makes things a little easier, but not much.... because you still have to do some bit shifting to multiply and divide...
DaBooda out... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|