Computing.Net > Forums > Programming > Assembly language

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Assembly language

Reply to Message Icon

Name: Khash
Date: August 24, 2003 at 19:51:35 Pacific
OS: RH Linux 9
CPU/Ram: 3GHZ/1GB
Comment:

Ok I know that it's (Assembly) a low level programming language. But can someone give me some more info. I mean does it have a compiler and everything like C? If so is it free or should I buy it?
I'll need to use it for a course next year but I want to get a head stat and take a look at it.
Any information would be greatly appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: August 24, 2003 at 20:11:34 Pacific
Reply:

You don't use a compiler; you use an assembler. Most assembly programmers learn mnemonics that translate directly to instructions for the processor, but it is possible to program in binary or hex, for example the instructions 18FE get a TI-83 stuck in an infinite loop.

There is no single "assembly language" because its unique to the processor and in some ways the overall architecture (display devices, input devices, etc.). Do you know what processor you're going to learn? Knowing one makes learning the next easier, but you'll probably want to start with the one the class is for.

There are plenty of free assemblers because unlike compilers, they don't optimize or anything like that, just directly translate mnemonics into machine language. You'll have to know what processor you're going to program before looking for an assembler.


0

Response Number 2
Name: Khash
Date: August 24, 2003 at 20:16:23 Pacific
Reply:

Thanks alot for the reply
we are going to work on Motorola 68000.
It would be great if you could let me know where I can get some info about how to program. I know C, C++, Java and pascal but have never even seen an assembly code.
Thanks again


0

Response Number 3
Name: Infinite Recursion
Date: August 24, 2003 at 22:01:20 Pacific
Reply:

Hey Khash...
I learned assembly using the Motorola 68000.

Below is a link for a Motorola 68000 Microprocessor Simulator (requires Tcl 8.0).
You can run your assembly code against it as if it was the actual processor, emulation.

ftp://ftp.eos.ncsu.edu/pub/bsvc/distribution/bsvc-2.1-win32.exe

My suggestion... be well aware of registers and stacks when you get into Assembly...

Here is just a block of code from an assembly program i was working on when I was in college.

OUT1CR:
MOVE.B #$0D,(A6)+ ;adding Carr return
MOVE.B #$0A,(A6)+ ;adding line feed
OUTPUT:
;comparing head and tail bufffer pointers
CMP.L A5,A6
BEQ EXIT3
MOVE.B (A5)+,D0 ;getting next character
BSR OUTCH
BRA OUTPUT
RTS


0

Response Number 4
Name: Khash
Date: August 24, 2003 at 22:03:36 Pacific
Reply:

Thanks
I'm goning to start working on it tonight.


0

Response Number 5
Name: Don Arnett
Date: August 25, 2003 at 01:33:32 Pacific
Reply:

Even if you never use assembly again, the experience and understanding of the lower levels of a program will help in other languages, especially languages like C/C++ where it helps to have an idea of how the memory is used.

Good luck


0

Related Posts

See More



Response Number 6
Name: JackG
Date: August 27, 2003 at 11:26:15 Pacific
Reply:

If you just want to see a very simple form of assembler and disassembler and what some basic assembler code looks like at the lowest level for a PC system (intel), then just do the following.

Open a DOS command window. In the C:\Windows folder, enter the command DEBUG WIN.COM. The DOS DEBUG program has a very basic assembler/disassembler built in to it. At the - prompt for debug a ? give you help. A q exits and a u Un-assembles some code, showing you simple hex address mode assembly instructions.

I have used DEBUG to write usable program in assembly.


0

Sponsored Link
Ads by Google
Reply to Message Icon

wave editor program SAPI 5.1-How to change th...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Assembly language

Assembly Language Help please? www.computing.net/answers/programming/assembly-language-help-please/4705.html

revolutionary guide to assembly language www.computing.net/answers/programming/revolutionary-guide-to-assembly-language/1303.html

Assembly Language - Cont www.computing.net/answers/programming/assembly-language-cont/7516.html