alt.lang.asm
  Home FAQ Contact Sign in
alt.lang.asm only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
alt.lang.asm Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  NASM preprocessor used to selectively disable code based on the object format?         


Author: Rod Pemberton
Date: Sep 5, 2008 12:56

Is it possible to selectively disable/enable code in NASM based on the
object format?

E.g., I have two small pieces of highly similar code. One for COFF and one
for OMF. But, OMF requires a special symbol "..start" that isn't recognized
for COFF and isn't ignored for COFF. Is there some way to check the object
format and disable the code based on it? E.g., is there something like
this:

; if omf
%%ifomf
..start
%%endif

Rod Pemberton
3 Comments
  About delete 0Dh         


Author: Almas
Date: Sep 4, 2008 01:08

Hi everybody.

I found a file in domain public, modify it, my aim to have a smaller file.
When compress it is less 1 KBytes.

I just add text info and restore the size. But original size was 2 Kb.
I cut the file like a butcher... not a doctor :-)
Below : the code

100 e8 ac 02 call 03af
103 83 3e 50 05 00 cmp word [0550],00
108 75 05 jnz 010f
10a cd 20 int 20

10c a8 ad 2E I put tempory file name here
2 Comments
  Beginner having problems assembling simple program.         


Author: durabol
Date: Sep 3, 2008 22:07

I've been reading the book: Peter Norton's Assembly Language Book For
The IMB PC and am using TASM 5.0. I'm trying to assemeble the
following code like it said in the book.

.model small
.code
mov ah,07h
mov dl,41h ;ASCII code for "A"
int 21h
mov ah,4Ch
int 21h ; ah=4Ch exit to dos
end

TASM.exe creates an OBJ file without errors, but when I try to run
TLINK.exe it complaines:

Fatal: No program entry point

I looked through the readme and help files but didn't see this error
listed.

I tried compiling with MASMv8.2 and it again assmembled it okay, but
when linking it, it complained:
Show full article (0.86Kb)
3 Comments
  7 segment display         


Author: anies.ece6
Date: Sep 2, 2008 23:53

please tell me the code to count from 0 to 9999 on applying external
pulse...in assembly language... not C language.
1 Comment
  for 7 segment display         


Author: anies.ece6
Date: Sep 2, 2008 23:48

please, give me code in assembly language...not in C.
no comments
  for 7 segment display         


Author: anies.ece6
Date: Sep 2, 2008 23:45

hello, i have to make a project on 7 segment display to count from 0
to 9999 using assembly language. has any body done that??
1 Comment
  Bloody linker :-)         


Author: [Jongware]
Date: Aug 31, 2008 16:53

Just starting out with NASM, so be gentle.
I have a fairly large piece of code, that assembles and links just fine with
nasm 2.03.01 and MS old linker 6.00.8447 (the one that came with VS 5.0, I
guess). Since the code assembles but not executes (...), I thought of throwing
in a few MessageBoxes.
How the **** **** (**!) do I get this combination to work? Declaring

EXTERN _MessageBoxA

and using it with

call [_MessageBoxA]

in the nasm code makes it assemble just fine; but the linker is throwing a
not-found on this symbol. It finds standard c functions from libc.lib just fine.
This is my link command file:

/entry:start
/libpath:c:\Progra~1\Micros~3\VC98\Lib
/subsystem:windows
/verbose
libc.lib
user32.lib
g:\Games\program.obj
Show full article (0.85Kb)
9 Comments
  calling windows syscalls from gnu assembler         


Author: shikamuk
Date: Aug 30, 2008 04:46

Hello.
I have been written an intel codegenerator for one compiler during
last months.
It produce assembly source, which later can be compiled with gnu
assembly, and linked with gnu linker under linux.
Generator implemented in a way, when it is necessary to change only
two functions in order to port it to the new os
(if we do not talk about library)
First function makes generated mmap() call to allocate memory for NEW
and second function generates exit()

Now I know how to port it to FreeBSD, Solaris, and other unix systems,
but I do not have windows bavkground.

How to call windows syscalls? I suppose, it is quite different from
Linux way and instead of moving params to regs, and doing int0x80 it
is necessary to call some windows dll functions?
And anyway, how to do it from gnu asm?
I intent to use mingw gnu binutils on windows to produce .exe files
from generated assembly, thank you
2 Comments
  Re: question on MIPS: addiu         


Author: Herbert Kleebauer
Date: Aug 29, 2008 00:32

Keep Asking wrote:
>
> What is purpose of following assembly:
>
> addiu v1, v1, 0

v1 or r1? Seems to be a nop.

Why don't you download the processor manuals:

Format: ADDIU rt, rs, immediate MIPS32 (MIPS I)

Purpose:
To add a constant to a 32-bit integer

Description: rt ¬ rs + immediate
The 16-bit signed immediate is added to the 32-bit value in GPR rs and
the 32-bit arithmetic result is placed into GPR rt.

No Integer Overflow exception occurs under any circumstances.

Restrictions:
None

Operation:
temp ¬ GPR[rs] + sign_extend(immediate)
GPR[rt]¬ temp
Show full article (0.94Kb)
3 Comments
  No Class, No Exam, Affordable Price Worldwide Recognized University Dip1oma/Degree/Bacheloor/Maaster lqtad xpxo         


Author: Shawanna Cherilyn
Date: Aug 28, 2008 00:43


It cost You Nothing (Yes! $0) to give us a Call, We will Contact you back

No Exams/Books/Tests/Interview/classes
100%% No Pre-School qualification required!

------------------------------
Inside USA: 1-718-989-5740
0utside USA: +1-718-989-5740
------------------------------

Bacheelor, Degree, MasteerMBA, PhDD available in the Field of your choice so you can even become a doctor and receive All the benefits That comes with it!

Please leave below 3 Info in Voicemail:

1) Your name
2) Your country
3) Your phone no. [please include Countrycode]

Call Now!! 24-hours a day, 7-Days a Week waiting For your call

------------------------------
Inside USA: 1-718-989-5740
0utside USA: +1-718-989-5740
------------------------------

Our Staff will get back to You in 1-3 working days
no comments
1 2 3 4 5 6 7 8 9