Hi, how can I use this assembler? I tried assembling a file through the terminal like this: "as Practice.asm". I got this message:

"practice.asm:0:End-of-File not at end of a line
practice.asm:6:End-of-File not at end of a line
practice.asm:unknown:Partial line at end of file ignored"

And an output file: "a.out", I ran a.out and I got this message:

"-bash: ./a.out: Permission denied"

BTW I have no idea at all how to write assembly so the file I assembled was something I found on the internet and looks like this:

.cstring
LC0:
	.ascii "Hello World!\0"
	.text
.globl _main
_main:
	call LC0

Recommended Answers

All 4 Replies

> practice.asm:6:End-of-File not at end of a line
Open the source file in your text editor
Go to the very end of the file and press the "enter" key.
Save the file and try again.

> And an output file: "a.out", I ran a.out and I got this message:
The assembler probably won't mark it as executable if there is a problem with it.

Nope, I tried again with this code:

#This is a comment

And got this message: "-bash: ./test: Permission denied" when running it.

Posting 1 line and "it doesn't work" isn't going to get you a great deal of help.

For example, the entire transcript of the command(s) you typed in (and the responses you got) when trying to assemble and run said program.

...That one line was what I tried to assemble, that one response is what I got when running the program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.