flat assembler
Message board for the users of flat assembler.
Index
> Main > tasm to fasm? |
Author |
|
smiddy 21 Jun 2005, 09:46
First, I'll translate this for you:
Code: org 100h jmp start message db 'Hello World!$' start: mov dx, message mov ah, 09 int 21h mov ax, 4c00h int 21h You would compile this like this: FASM HELLO.ASM HELLO.COM I suggest you read the online documentation here: http://flatassembler.net/docs.php This should answer most of your questions and be a great primer for those you will ask in the future. |
|||
21 Jun 2005, 09:46 |
|
vid 21 Jun 2005, 10:02
Code: org 100h jmp start message db 'Hello World!$' start: mov dx, message ;NOTE - no OFFSET mov ah, 09 int 21h mov ax, 4c00h int 21h no need to mess with segmnets in .COM program (tiny model) read http://flatassembler.net/docs.php?article=design |
|||
21 Jun 2005, 10:02 |
|
godomega 21 Jun 2005, 15:34
Thanks for your help..
but Why didn't my code worked in my tasm compiler? (i'll still use fasm though ) |
|||
21 Jun 2005, 15:34 |
|
smiddy 21 Jun 2005, 16:10
I don't know...I'll have to give it a shot when I get home. If Bogdan is listening he could probably help you with TASM though. His web site is: http://www.hostileencounter.com/os_main.html His OS is written in TASM and may give you some insight on the issues. I have only used TASM very little and it was 1989-ish. Pre-protected-mode too in my programming style.
|
|||
21 Jun 2005, 16:10 |
|
decard 21 Jun 2005, 18:28
I'm not sure, but maybe this line causes an error:
Code: mov dx, offset message In Ideal mode it should be: Code: mov dx, message But I can't check it myself, I don't have tasm. |
|||
21 Jun 2005, 18:28 |
|
smiddy 22 Jun 2005, 01:56
Using TASM 4.1 I got this:
Code: C:\smiddyOS\SolarOS-3>..\tasm5.0\tasm hello.asm Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International Assembling file: hello.asm Error messages: None Warning messages: None Passes: 1 Remaining memory: 418k That is with the initial code you have in the first post. What is the error you're receiving and what version are you using? |
|||
22 Jun 2005, 01:56 |
|
godomega 24 Jun 2005, 14:16
thanks for the replies:
im using Tasm 5 and i get the error While linking. not when compiling. so when i Tlink my code with COM structure. i get this: (tlink /t hello.obj) Fatal: Cannot generate COM file : invalid initial entry point address |
|||
24 Jun 2005, 14:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.