![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0
![]() |
Completely oblivous
Hya have a good knowledge of programming....
And i wish to learn assembly (No prior knowledge) wat compilers/editors/resources would any1 suggest? |
|
|
|
|
|
#2 |
|
Professional Programmer
|
It depends on what system you are compiling for. If for windows or linux, I would recommend nasm or fasm (in that order). There are also good tutorials for ASM on this board, or search google for Iczelion's pages.
Also, please try to refine your choice of grammar in posts. Thank you, and welcome to the board.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0
![]() |
Thankyou for the advise.. Can ya please define wether or not C is assembly?
|
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
C is not assembly. It isn't even close.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0
![]() |
OK far enough.... I am a little confused because some people have said to me that C is assembly or compiled C is used for assembly, or something?? how do you mean its "Not even close" ?
(Forgive me just trying to learn) |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
C is a high-level language that deals in abstractions. Assembler is, at its simplest, a set of mnemonics that map one to one to the binary machine code instructions. Electrically gating the contents of two registers to two inputs of an ALU and reading and storing the result is NOT the same thing as writing "myVal += hisVal;". Used car salesmen will tell that a little ol' lady from Pasedena only drove it on Sundays, to church, too. Self-appointed wannabe gurus will tell you anything they can get you to uncritically believe, if you'll only promise to be their acolyte and not ask questions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Professional Programmer
|
The confusion you might be getting, CodeJunkie, is that Assembly can be included in most C programs' source and compiled directly (by an assembly compiler). Also, there is an argument for the notion that a good C compilers (most of them are) compile C code into assembly better than most Assembly coders can do by hand, which has proven to be true on a number of occasions, especially for large programs.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#8 |
|
Programmer
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0
![]() |
Ok, thankyou for clarifying that ..
The reason for wanting to learn assembly is that i would like program`s that i have written to run on diffrent host machines, this ive yet to achieve without compatablity issues, so i am looking for a robust programming language that can be used on just about any machine without the need for huge amounts of resources to be installed prior to running it .... (Maybe its the compilers i use, or the way i use them?) So am finding out wat language to turn to next.. Ive heard of Deplhi, can any1 enlighten me? Do i really need to go into assembly to ensure compatablity? Any suggestions would be much appreciated !! Last edited by CodeJunkie; Aug 15th, 2005 at 12:11 PM. |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Assembly language is about the last thing that will ensure compatibility. While AMD uses the x86 compatible machine language, it typically varies for each type of processor.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
Programmer
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0
![]() |
O right ..... Do ya have any suggestions on a universal language?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|