Writing kernel with TASM - please help!!!

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
Tomzdrake

Writing kernel with TASM - please help!!!

Post by Tomzdrake »

How can I write kernel, only in Turbo Assembler (using only TASM and TLINK). I have al
ready boot.asm on my floppy. My question is. What I must write in command line. When I
wrote kernel in NASM i type: nasm -f coff kernel.asm then, ld -Ttext 0xFF800000 --oformat binary -o kernel.bin kernel.o kernel_c.o
and I copy kernel.bin on floppy. How can I done the same thing, but with TASM and TLINK.
Please help.
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

well...doesn't borland copyright TASM and TLINK so you can only program with those compilers/linkers for personal use? That's why I gave up my TASM.
Tomzdrake

Re:Writing kernel with TASM - please help!!!

Post by Tomzdrake »

??? So, where can I find NASM tutorial (for beginners)
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

[attachment deleted by admin]
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

So...how is the tutorial going?
Tomzdrake

Re:Writing kernel with TASM - please help!!!

Post by Tomzdrake »

TASM was easier :(, I really don't think I could write some good OS.
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

It might...but with time you can make a OS.
It is not that hard....just takes time....in 5 months you could have a C kernel...and the more time you've worked on it, the faster you'll code. ;)
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

you need to open up the file I gave you with word pad.

Notepad doesn't open linux files right.
grey wolf

Re:Writing kernel with TASM - please help!!!

Post by grey wolf »

Tom wrote:Notepad doesn't open linux files right.
NoteTab does.
Turdus

Re:Writing kernel with TASM - please help!!!

Post by Turdus »

I'm writing an OS in asm and compiling it with TASM. If interested, drop me an email, and I'll send the make.bat I use for ya.
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

but...I thought borland put copyrights on old TASM for only personal use ???

;)
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

If you think NASM is hard...please OPen up the nasmBoot.txt I have you with word pad.

NASM's syntax is so much like TASM's.

How is it harder, Tomzdrake?

Open up that NASM bootsector file I gave you with wordpad...and then tell me...
Schol-R-LEA

Re:Writing kernel with TASM - please help!!!

Post by Schol-R-LEA »

If you already know how to use Emacs, there are excellent Windows ports of both GNU Emacs and XEmacs, and the NASM mode for it isn't bad (though it could use some improvement, I think). Combining NASM and BOCHS with a bit of ELISP code, and it should be possible to do all of you development from the EMACS window.

If you don't know Emacs (or if you don't like it - no problem if you don't, de gustibus non disputandum), you might want to try using NasmEdit. It is a fully graphical editor written in Java and works better than NASM-IDE does, IMHO. Also, like with Emacs, it works on both Windows and Linux (or it's supposed to, at least). Version 1.0 has some serious rough spots, however, especially when opening files, and the rather limited options selection is a bit of a pain (in particular, you can't have it to create listing files automatically, which is a serious failing IMO).
Tom

Re:Writing kernel with TASM - please help!!!

Post by Tom »

So, did you give up on your OS dev? Hopefully not ;)
Turdus

Re:Writing kernel with TASM - please help!!!

Post by Turdus »

Borland supports TASM no more. It's written in their homepage, that after 3 years of last release the product's lifecycle is over, so it's absolute free to use.
By the way, if interested about compiling with tasm yet, here's the make.bat I use:
@echo off
tasm bootimg /t/w0/ml/m2
tlink /x /3 bootimg
del bootimg.obj

I use org directive, because there are more than one segments in my code beginning at special address.
Post Reply