Forum: Assembly 12 Days Ago |
| Replies: 2 Views: 205 |
Forum: Assembly 15 Days Ago |
| Replies: 5 Views: 515 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 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 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 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 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 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 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 |
Forum: Getting Started and Choosing a Distro Jun 5th, 2008 |
| Replies: 1 Views: 529 |
Forum: Assembly Dec 10th, 2007 |
| Replies: 1 Views: 1,112 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 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 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 |
Forum: Assembly Oct 15th, 2007 |
| Replies: 2 Views: 639 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 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 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 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 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 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 |
Forum: Assembly Aug 21st, 2007 |
| Replies: 8 Views: 9,670 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 |
Forum: Assembly Aug 10th, 2007 |
| Replies: 6 Views: 1,147 |
Forum: Assembly Aug 10th, 2007 |
| Replies: 6 Views: 1,147 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 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 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 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 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 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 |
Forum: Assembly Jul 5th, 2007 |
| Replies: 9 Views: 1,711 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 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 |
Forum: Assembly Apr 24th, 2007 |
| Replies: 2 Views: 957 |
Forum: Assembly Apr 17th, 2007 |
| Replies: 2 Views: 859 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 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 |
Forum: Assembly Apr 11th, 2007 |
| Replies: 8 Views: 9,670 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 |