WASM will not output ANYTHING!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
drunkenfox
Member
Member
Posts: 46
Joined: Tue Mar 13, 2012 10:46 pm

WASM will not output ANYTHING!

Post by drunkenfox »

I'm trying to use the watcom assembler to output a simple assembly file. I can see it print the info on the console along with line numbers, and shows no warnings or errors. Yes, I've defined -of=<filename>, but it doesn't produce any file. I don't know what to put at this point. It just won't output anything no matter the effin parameters. This is really starting to make me frustrated.

The command is this:

Code: Select all

wasm -of=init.obj init.asm
And here's the code:

Code: Select all

extern _main:near

INITSEG segment 'CODE'

org 0

start:
	; We'll be @ 0x8000, so be sure to make things be like that
	mov ax, 0x800
	mov cs, ax
	mov ds, ax
	;mov fs, ax
	mov es, ax
	call _main
	
	mov si, fatal
	call print
	
.nein:
	cli
	hlt
	jmp .nein
	
print:
	lodsb
	test al, al
	jz .end
	mov ah, 0xa
	int 0x10
.end:
	ret
	
fatal db "Returned from main(). Halting", 0

end
I've looked at wasm.exe through process explorer and now I see it's just deleting the object file for no reason. Why would it even do that?
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
User avatar
drunkenfox
Member
Member
Posts: 46
Joined: Tue Mar 13, 2012 10:46 pm

Re: WASM will not output ANYTHING!

Post by drunkenfox »

Nvm.. after a while of hassling it finally did something. I'm guessing wasm has an incredibly strict syntax.
;goodbye OS, hello BIOS
mov eax, FFFFFFF0h
jmp eax
Post Reply