User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 423,154 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,397 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 97
Search took 0.01 seconds.
Posts Made By: Evenbit
Forum: Assembly 12 Days Ago
Replies: 2
Views: 205
Posted By Evenbit
Re: Inline assembly for Send() system call using software Interrupt

Some resources and existing code to learn from:

http://asm.sourceforge.net/

[note: the AsmUtils package has not been updated for years, so some of those examples will not work on modern...
Forum: Assembly 15 Days Ago
Replies: 5
Views: 515
Posted By Evenbit
Re: How quickly can you code this?

Ah, but my example stays within the specs. The question said *nothing* about the data being pre-computed or not:

Write a program that prints the numbers from 1 to 100. But for multiples of three...
Forum: Assembly 26 Days Ago
Replies: 5
Views: 515
Posted By Evenbit
Re: How quickly can you code this?

The first rule of code optimization is:

Eliminate conditional branches. Use lookup-tables instead.

The second rule of code optimization is:

If possible, remove any loops.

So, keeping to the KISS...
Forum: Assembly 26 Days Ago
Replies: 1
Views: 228
Posted By Evenbit
Re: Assembly Langauge Update

Some suggested reading material:

http://www.drpaulcarter.com/pcasm/

http://www.kipirvine.com/asm/

http://savannah.nongnu.org/projects/pgubook

http://webster.cs.ucr.edu/AoA/index.html
Forum: Assembly 27 Days Ago
Replies: 5
Views: 515
Posted By Evenbit
Re: How quickly can you code this?

I posted this because I consider it a "trick question" to some extent. As we hone our "problem-solving" skills, it is natural for us to attempt a clever solution. All too often, however, clever...
Forum: Assembly 27 Days Ago
Replies: 2
Views: 403
Posted By Evenbit
Re: NASM: win32 interrupt and system calls

An application programmer doesn't use interrupt (int) calls in Windows. Instead, one makes a call to a function in one of the DLLs supplied by the system. The reference for these functions can be...
Forum: Assembly 31 Days Ago
Replies: 5
Views: 515
Posted By Evenbit
How quickly can you code this?

It's a FizzBuzz question designed to "separate the men from the boys", so don't cheat. :)

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead...
Forum: Assembly Jul 26th, 2008
Replies: 3
Views: 593
Posted By Evenbit
Re: N-queens problem - solution in nasm

Thank you! It looks nice.

BTW, I can confirm that if you remove the underscores ( change the "_main", "_printf", and "_scanf" symbols to just "main", "printf", and "scanf" ) it assembles ( using...
Forum: Assembly Jul 25th, 2008
Replies: 3
Views: 593
Posted By Evenbit
Re: N-queens problem - solution in nasm

Yes. Please post the code. I would like to see it.

Nathan.
Forum: Getting Started and Choosing a Distro Jun 5th, 2008
Replies: 1
Views: 529
Posted By Evenbit
Learn the Command Line in 10 minutes

Here is a nice "cheat sheet" for getting "up and running" quickly:

http://freeengineer.org/learnUNIXin10minutes.html
Forum: Assembly Dec 10th, 2007
Replies: 1
Views: 1,112
Posted By Evenbit
Solution Re: print to screen WITHOUT ints

Frank recently posted the following code in the alt.lang.asm newsgroup.


;---------------------------------
; nasm -f bin -o hwnoint.com hwnoint.asm

org 100h

push word 0B800h ; segment of...
Forum: Assembly Nov 27th, 2007
Replies: 4
Views: 612
Posted By Evenbit
Solution Re: debugger code

Download "disasm.zip" from the Files section of AoAProgramming:

http://groups.yahoo.com/group/aoaprogramming/

It is a good place to start on coding a modern-day...
Forum: Assembly Oct 22nd, 2007
Replies: 13
Views: 1,666
Posted By Evenbit
Re: User input

That is a DOS system call... it will only work on Linux if you are running a DOS emulator. Nothing wrong with that, but since you are using Linux, why not run your programs natively? Some Linux...
Forum: Assembly Oct 15th, 2007
Replies: 2
Views: 639
Posted By Evenbit
Re: How to put internal Shell Commands in NASM?

Here is some reading material:

http://del.icio.us/Evenbit/OS

Nathan.
Forum: Assembly Oct 15th, 2007
Replies: 2
Views: 639
Posted By Evenbit
Solution Re: How to put internal Shell Commands in NASM?

You have several "int 0x21" calls in your code. These are DOS calls:

http://www.ctyme.com/intr/int-21.htm

Since DOS is not loaded (indeed, you are writing your own OS), then you cannot use these...
Forum: Assembly Oct 9th, 2007
Replies: 1
Views: 1,936
Posted By Evenbit
Re: Assembly -Boot Loader

You can find tutorials and examples here:

The Operating System Resource Center
http://www.nondot.org/sabre/os/articles

OS FAQ Wiki
http://www.osdev.org/osfaq2/

Nathan.
Forum: Assembly Oct 2nd, 2007
Replies: 0
Views: 441
Posted By Evenbit
News HLA Standard Library v2.3

http://sourceforge.net/project/showfiles.php?group_id=165727

Version 2.3 of the StdLib is now on SourceForge.

- Improvements: Linux support is now more complete.
- Includes: Automated Test...
Forum: Assembly Oct 1st, 2007
Replies: 0
Views: 514
Posted By Evenbit
Question Bill Gates puzzle

[[ re-posted from the DesktopLinuxAsm mailing list ]]
http://groups.yahoo.com/group/DesktopLinuxAsm/


<< Here is a puzzle for assembler guru's and anyone
who needs a diversion.

Bill Gates has...
Forum: Assembly Sep 20th, 2007
Replies: 0
Views: 513
Posted By Evenbit
News HLA Standard Library v2.2

http://sourceforge.net/project/showfiles.php?group_id=165727

Version 2.2 of the StdLib is now on SourceForge.

- Improvements: increases OS independance, performance, and design consistency....
Forum: Assembly Sep 15th, 2007
Replies: 2
Views: 2,373
Posted By Evenbit
Re: using nasm in ubuntu

Using the menu at the top of the screen, go to Applications > Accessories and select "Text Editor" -- when it appears, type this there:
global _start

section .data
hello db "Hello, World!",...
Forum: Assembly Aug 29th, 2007
Replies: 2
Views: 973
Posted By Evenbit
Re: SUB the contents of two arrays and move the result in a third array

You simply forgot to store the result to the final array.

loopi:
MOV AX, [SI]
MOV BX, [DI]
MOV DX, [SP]
SUB AX , BX

MOV DX, AX
MOV [SP], DX <<< add this line
Forum: Assembly Aug 21st, 2007
Replies: 8
Views: 9,670
Posted By Evenbit
Re: Assembly Language Resources

Adding this link to a blog which starts an interesting tutorial using NASM on a Linux platform.

http://jojodi.com/?p=107

Nathan.
Forum: Assembly Aug 19th, 2007
Replies: 12
Views: 8,550
Posted By Evenbit
Question Re: Let's learn assembly!

< knock, knock > Hello? Anyone home?? Is there a sequal on the way???

Nathan.
Forum: Assembly Aug 10th, 2007
Replies: 6
Views: 1,147
Posted By Evenbit
Re: I just started Assembly

"If it isn't broke, don't fix it!" ;-)

Nathan.
Forum: Assembly Aug 10th, 2007
Replies: 6
Views: 1,147
Posted By Evenbit
Re: I just started Assembly

There are some here:
http://www.asmcommunity.net/board/index.php?action=wiki

And a neat one here:
http://www.deinmeister.de/wasmtute.htm

You can download a PDF...
Forum: Assembly Aug 10th, 2007
Replies: 6
Views: 1,147
Posted By Evenbit
Re: I just started Assembly

If you insist on learning the obsolete DOS-style 16-bit code, then you need to get a 16-bit linker. One is available ( Lnk563.exe ) here:
http://website.masm32.com/microsft.htm

Nathan.
Forum: Assembly Aug 10th, 2007
Replies: 4
Views: 2,926
Posted By Evenbit
Re: x86 Assembly in Mac OS X

Since Mac OS X is based on BSD, you will have better luck making BSD-style calls instead of those Linux syscalls. BSD looks for the function parameters on the stack instead of in the registers. ...
Forum: Assembly Aug 10th, 2007
Replies: 2
Views: 1,067
Posted By Evenbit
Re: Is there a portable assembly language?

Yes, people try these ideas but they tend to go nowhere because this approach works against itself. Assembly is the language that the CPU understands ... therefore it is a highly hardware dependent...
Forum: Assembly Aug 1st, 2007
Replies: 6
Views: 2,791
Posted By Evenbit
Re: Serial Port Communication

Your best bet would probably be to look at existing (hopefully *working*) example code which you can find stored away all over the Internet. Here are some links to get you...
Forum: Assembly Aug 1st, 2007
Replies: 7
Views: 5,776
Posted By Evenbit
Re: c program convert to tasm

Yes, these programs are called compilers. You can find a nice list of C and/or C++ compilers here:
http://www.thefreecountry.com/compilers/cpp.shtml

Study the command-line options... most have a...
Forum: Assembly Jul 5th, 2007
Replies: 8
Views: 9,670
Posted By Evenbit
Re: Assembly Language Resources

I have an even bigger list of useful ASM links here:

http://del.icio.us/Evenbit

Nathan.
Forum: Assembly Jul 5th, 2007
Replies: 9
Views: 1,711
Posted By Evenbit
Re: Strings and NASM - WinXP

That's the procedure for displaying "text" in a window. Heck, it is even simpler than that -- just call MessageBox. Sadly, this was not the original poster's question.

Nathan.
Forum: Assembly Jul 5th, 2007
Replies: 9
Views: 1,711
Posted By Evenbit
Re: Strings and NASM - WinXP

The "echo" command is implemented by "CMD.EXE" [ "COMMAND.EXE" on Win95/98 ] so you will have to launch "CMD.EXE" by starting another process. You can use either ShellExecute or CreateProcess to do...
Forum: Assembly May 15th, 2007
Replies: 5
Views: 2,049
Posted By Evenbit
Re: Help with Palindrome program...

Try something like this:


mov al, 0
push al

move2stack:
mov al, theword[bx]
push al
inc bx
Forum: Assembly Apr 24th, 2007
Replies: 2
Views: 957
Posted By Evenbit
Re: Assembly Help in Programming

Simply rename one of the methods.

Having good reading material handy is always...
Forum: Assembly Apr 17th, 2007
Replies: 2
Views: 859
Posted By Evenbit
Re: Which assembler should i pick?

A good reason to pick NASM would be that you have at your disposal a great deal of resources (books, tutorials, example code, current users) to help you along the way. Of course, FASM was heavily...
Forum: Assembly Apr 12th, 2007
Replies: 12
Views: 8,550
Posted By Evenbit
Re: Let's learn assembly!

To encourage you to do more, here is a little more feedback on your tutorial. For these, I will reference section headings and paragraphs --

Prerequisites:

o Well, you know what they say about...
Forum: IT Technologies and Trends Apr 11th, 2007
Replies: 11
Views: 3,610
Posted By Evenbit
Re: India running out of skilled IT workers

Nice find! That was *very* interesting reading.

Nathan.
Forum: Assembly Apr 11th, 2007
Replies: 8
Views: 9,670
Posted By Evenbit
Re: Assembly Language Resources

I'm adding this two to the list of DEBUG tutorials:

http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html

http://www.geocities.com/thestarman3/asm/debug/debug2.htm

Nathan.
Forum: Assembly Apr 11th, 2007
Replies: 3
Views: 1,306
Posted By Evenbit
Solution Re: How to Know that code is correct in Textpad?

Well, Ancient Dragon gave a link to this short DEBUG tutorial:

http://users.easystreet.com/jkirwan/new/x86lrn03.html

A quick Google search netted a couple more nice...
Showing results 1 to 40 of 97

 
All times are GMT -4. The time now is 7:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC