Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

5 compilers so far

Status
Not open for further replies.

rjwilldohisbest

Technical User
Jun 2, 2001
79
US
Hi again

I don't know if the tutorials are incorrect or the compilers I'm using are not that great? I'm now using masm and having no luck. One source file has 17 errors not being able to understand the command lines. On all the compilers the examples that come with these programs work just fine.

I download blasm just recently and it has compatibility from 086 to 586 and I can't get anywhere with it either.

I'm now trying to locate tasm but the main site doesn't appear to have a demo link or a trial, all I saw was an order for a disk.

If anyone has any good combinations of tutorials and assemblers that actually work together, that would be super.

Thanks for your time.

RJ
 
one thing i always find is that if it doesnt work make it even more simple. and once you get to a stage that works then you can build up to your desired goal.

try the following, it doesnt do anything and if you tried to execute it it would crash BUT it should compile in almost any assembler with ideal mode (most assemblers use ideal mode as default).

;------------------
; My First Program
;------------------
.MODEL TINY
.STACK 200h
.DATA
mystring db 'Hello World',013h,010h
.CODE
myprogram proc near
mov ax,01F2Ah
ret
myprogram endp
END
"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"
 
report from the above code

Emu 8086:
(4) Unknown command: .MODEL TINY
or not enough parameters.
(5) Unknown command: .STACK 200h
or not enough parameters.
(6) Unknown command: .DATA
or not enough parameters.
(8) Unknown command: .CODE

Masm:
Fatal error LNK 2001 unresolved external symbol _maincrtstartup
In exe: Fatal error LNK 1120 1 unresolved externals.

In Blasm:
Upon making a new file or opening an existing file:
ACCESS VIOLATION at address 0044773AO in module blasmide.exe
Read of address FFFFFFFF
When OK is clicked in this program to proceed there is one error and no warnings:
Line 9 Expected end of line - no exe or com is made, though there is an obj file in where the directory is.

I haven't been able to run your above source code into any of my compilers with success. I do not know why this is happening. I'm still searchig for other compilers.

RJ
 
By any chance, is the MASM you're using the MASM32 package by hutch?? "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
 
Try using the original expressions rather than macro functions provided by MASM/TASM. For example:
Instead of .CODE...
code SEGMENT
assume cs:code
...
ENDS

Read up in documentation how to do other segments!
 
yes, he could try that, or maybe if he read the manual he might understand how the thing works.

it could be something like hes typing it in a word document - ive seen that b4.

straiph
"There are 10 types of people in this world, those who know binary and those who don't!"
 
to be honest I never use the "advanced" features of assemblers, like all-in-one segment declarations and the wonderful procedure/function creators that write you all the code to start a stack frame and make a function with parameters and all mod cons. If I want a computer to write its own code, I use a high-level compiler. I only use assembly if I want to see every byte the assembler/compiler produces, and for that, the advanced features and optimisations are an irritation.

It's a bit like the default option on my assembler to write functional code without doing multiple passes. Great, but if I wanted code full of NOPs I'd have written them in myself....

 
i wonder if he resolved it, it would be nice to know if he did and how. it has happened to me on numerous occasions where i couldn't understand a problem and then after a couple of hours it was something really stupid! doh! i cant help feel that this chap is suffering from something similar.
"There are 10 types of people in this world, those who know binary and those who don't!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top