0

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
2
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by RicardoDiaz
0

> 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.

0

Nope, I tried again with this code:

#This is a comment

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

0

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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.