- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 21
- Posts with Upvotes
- 15
- Upvoting Members
- 17
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
98 Posted Topics
Re: [QUOTE=rsu;433522]i have installed nasm in ubuntu in linux but dont know how to and where to write code of assembly language and run my code please give me information as soon as possible.[/QUOTE] Using the menu at the top of the screen, go to Applications > Accessories and select "Text … | |
Re: [QUOTE=Narue;197884]Just for fun, I wrote up a quick tutorial for basic assembly. At present, it's only in the form of a PDF document, but I'll eventually get around to adding it to my website.[/QUOTE] Just a couple of quick notes: o You might want to talk about the structure of … | |
It is about time we start building a Sticky in this forum listing some resources so the newbies will have an easier time finding the information they need. I will start with these valuable links: x86 Assembly Language FAQs Wikipedia: Assembly Language Wikipedia: List of assemblers Links at Webster MASM … | |
Re: Well, you can assemble your code in memory and run it from there...a perfect place to start for small DOS programs...you probably already have the tool (Debug), just need the tutorial: [url]http://www.datainstitute.com/debug1.htm[/url] The IO.H file that your book wants is just assembly code for handling the input/output functions so you … | |
Re: [QUOTE=mytime19;324019]well i think you can't use much C lang stuff with tasm.. the reason is that it uses DOS and you know that it can only program 16 bit stuff not 32-bit.. so i got the same problem but just upgraded to masm.. there's inbuilt libraries available in that. or … | |
It is my understanding that with over 115,000 signed-up, it constitutes the largest MOOC [ [url]http://en.wikipedia.org/wiki/Massive_open_online_course[/url] ] ever. Certainly an historical experiment with possible future changes in delivery of University-level education: [url]http://www.reddit.com/r/aiclass/comments/kp1wb/amazing_we_can_probably_offer_a_masters_degree_of/[/url] I've decided to take the Basic track so that I only take the quizzes, but get to miss … | |
Re: [url]http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/Windows/HTML/AoATOC.html[/url] Scroll down that page to the "Volumn 2" section. Gives lots of information about the architecture side. Also, research Compilers, Linkers, and Loaders -- lots of learning involved in that. These should be a good start: [url]http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/[/url] [url]http://en.wikipedia.org/wiki/Compiler[/url] And this should give you a start on conceptualizing what an … | |
Re: Some links and other resources that might help you newbies... Lot of links at assemblylanguage.net: [url]http://www.cheapersunglasses.com//asm.html[/url] More links at the Open Directory Project: [url]http://dmoz.org/Computers/Programming/Languages/Assembly/[/url] - ASSEMBLERS - MASM32 [url]http://www.movsd.com[/url] NASM: The Netwide Assembler [url]http://nasm.sourceforge.net[/url] HLA: High Level Assembly Language [url]http://webster.cs.ucr.edu/AsmTools/HLA/index.html[/url] FASM: The Flat Assembler [url]http://flatassembler.net/[/url] GoAsm [url]http://www.godevtool.com/[/url] A86 (DOS) [Free]/A386 … | |
Re: At one time (not sure if they're still in the current version), Randall Hyde had highly-efficient 'Roman Numeral' output/conversion functions in the Standard Library for his HLA compiler. You might find it interesting to dig through his source. [url]http://hla-stdlib.svn.sourceforge.net/viewvc/hla-stdlib/[/url] [url]http://hla-stdlib.sourceforge.net/[/url] | |
Re: Use GIMP. These tutorials: [url]http://www.makeuseof.com/tech-fun/search/?cx=009717636731598800244%3Aqhe4rh7wuxs&cof=FORID%3A11&q=gimp&sa=%C2%A0#1260[/url] It certainly runs circles around Photoshop. | |
Re: Your test page must also have 'session_start()' at the top before any output. For compatibility with old versions of IE, you'll also want to add the P3P header. [I]index.php[/I][CODE]<?php header('P3P CP="CAO PSA OUR"'); session_start(); $_SESSION['gallery'] = 42; ?> <!DOCTYPE html> <html> <h1>Setting cookie!</h1> <a href="/test.php">test</a><br> <html>[/CODE] [I]test.php[/I][CODE]<?php header('P3P CP="CAO PSA … | |
You can test your connection here: [url]http://ipv6test.google.com/[/url] Apparently, Wednesday, June 8th is "World IPv6 Day" when major websites and CDNs will be sending their content over IPv6. For instance, if you cannot connect to Google on that day, you will need to surf to [url]http://ipv4.google.com[/url] to do your searches. My … | |
Re: [QUOTE=AJ_Allmendinger]I'm a newbie at writing DOS batch files. I've tried to look for it, but I can't seem to figure out how to read from an input file. Is there an equivalent of a [I]cin[/I] statement in DOS Batch programming.[/QUOTE] Some people have figured out how to do quite a … | |
Re: While you are at it, you might as well spray some bullets toward the other types of malware (spyware, trojans, etc.) since this would be an easy feature to add: startup files [url]http://www.lafn.org/webconnect/mentor/startup/PENINDEX.HTM[/url] trojans [url]http://www.megasecurity.org/files_all.html[/url] | |
Re: Something to the effect of... LEFT CLICK on the upper-left corner of the window... on the pop-up menu, select Properties... on the dialog, CLICK the Screen tab... CLICK the "Full-screen" radio button... "Apply" button.... "OK" button... that is it... | |
Re: [QUOTE=Narue] <<snip>> A .exe file is actually a file format called PE (Portable Executable). [/QUOTE] Not necessarily! ".exe" files were very common under DOS for applications. The ".com" files were mainly used for small utilites and simple commands because they were limited to a small memory footprint [code + data … | |
Re: You can find tutorials and examples here: The Operating System Resource Center [url]http://www.nondot.org/sabre/os/articles[/url] OS FAQ Wiki [url]http://www.osdev.org/osfaq2/[/url] Nathan. | |
Re: I believe that it really doesn't matter what language you learn because your skills are easily transferable. The major difference between languages is syntax, so once you understand the syntax of a new language, you can start programming in it with ease. After you have learned a few languages, they … | |
Re: Yes. Please post the code. I would like to see it. Nathan. | |
Re: One option you can try is to write a script that launches QBasic and loads/runs your program. Check out AutoIt. It will compile to an EXE. Something like the following should work: $ret = runwait("qbasic yourprg.bas", ... , ... ) | |
Re: I happen to have a good memory for odd things, so, in the interest of holiday fun, allow me to add another log onto this conspiracy fire. Clever use of the Wayback Machine netted me this pseudo-confession: "I also enjoy studying interpersonal relations among online personalities, which is probably why … | |
This exercise is designed to get you familiar with the Ubuntu command-line editing features. It also introduces you to the concept of command-line history. [B]Follow these steps[/B] [LIST=1] [*]Type the words "We all love Ubuntu" (without the quotation marks) but do not press Enter. [*]Press the left arrow key to … | |
[i]Taking the "fright" out of Opcodes and Hex-numbers.[/i] High Level Assembly (HLA) is a modern [b]assembler[/b] + [b]standard library[/b] package that allows a programmer to ease his way toward ASM coding by leveraging concepts already learned from typical high-level languages. By using HLA, one can investigate and play with a … | |
Re: [QUOTE=nateuni;1042622]Hi, I am just finishing up a semester at Uni that touched on Assembly with the LC-3 (Limited to around 16 instructions). I would like to look more into assembly. Specifically getting a better grasp on assembly opcodes (their purpose), and how they map to HL processes. As opcodes like … | |
Re: Try this:[CODE]MOV AL, DAY CBW DIV DIVISOR[/CODE] | |
Re: Yes, DWORD alignment is always preferred. But check with the standard literature on optimization: [url]http://www.agner.org/optimize/[/url] | |
Re: Just a quick note about this "unaurthaurised distribution" of a protected product: Microsoft [b]has[/b] provided an authorized download (including a valid install key) of its OSs in certain instances. For instance, for enterprise clients who purchase licenses in bulk, they provided a CD ISO of Windows XP at their website … | |
Re: [QUOTE=tifka;454146]Well yea, So I try to do like [code] mov ah,01h int 16h [/code] Shouldn't that let the user in put whatever he/she wants?[/QUOTE] 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 … | |
[CODE]Using 'common sense' to clear the Microsoft fog of illusion.[/CODE] [[ ...Continued from previous post [url]http://www.daniweb.com/blogs/entry1527.html[/url] ]] 4. Unable to comprehend security issues. Even when the United States government warns people to avoid using specific software for personal security reasons, the Microsoft sheep act like they don't understand the reasons. … | |
[CODE]Addressing some of the typical arguments we hear from the "Microsoft fanboy" crowd.[/CODE] One can debate until you turn blue in the face. It never fails that *some* concepts and facts just fly right over the heads of *some* people. But when the person doing the arguing is supposedly well-educated … | |
Re: [QUOTE]to help one's neighbor by distributing copies as he wishes, and finally to distribute modified code as he wishes.[/QUOTE] Do you ever do any research on the subject of your blog posts? The GPL license applies specific *restrictions* to how one may distribute the software. [url]http://www.gnu.org/copyleft/gpl.html[/url] | |
Re: Which gcc port are you using? If it is cygwin, then that might be your problem. Try MingW -- I've always had success with it. [url]http://www.mingw.org/[/url] | |
Re: An alternative is to use the Alink downloads: [url]http://alink.sourceforge.net/download.html[/url] [CODE]; To assemble: nasm -f obj hw.asm ; To link: alink -oPE hw .obj win32.lib extern MessageBoxA extern ExitProcess segment .data USE32 title db 'My First Win32 ASM Program', 0 message db 'Hello, World!', 0 segment .text USE32 ..start push dword … | |
Re: Here is a wonderful resource to help you understand the proper use of FPU instructions: [url]http://webster.cs.ucr.edu/AoA/Windows/HTML/RealArithmetic.html#998833[/url] | |
Re: For 64-bit specific information, look here: [url]http://www.turboirc.com/asm/[/url] [url]http://www.vikaskumar.org/wiki/index.php?title=X86-64_Tutorial[/url] [url]http://www.x86-64.org/[/url] [url]http://www.viva64.com/links/64-bit-development/[/url] | |
Re: Well, clock cycles certainly [b]do not[/b] equate to execution time on modern processors. But, if you still think you need to know this information, then go directly to the source: [url]http://www.intel.com/design/corei7/documentation.htm[/url] [url]http://www.intel.com/products/processor/manuals/index.htm[/url] Those are free downloads! | |
Re: Microsoft has good C code with excellent descriptions at its Win32 API reference library: [url]http://msdn.microsoft.com/en-us/library/aa373078(VS.85).aspx[/url] Click on the "Performance Counters Functions" category. Calling the Windows API functions from assembly language is a bit more work than doing it in either C or C++, but it certainly isn't impossible and modern … | |
Re: To write text to the console, first use GetStdHandle: [url]http://msdn.microsoft.com/en-us/library/ms683231(VS.85).aspx[/url] Use that to get the handle for the StdOut device. Then you can use this handle in a call to WriteFile: [url]http://msdn.microsoft.com/en-us/library/aa365747(VS.85).aspx[/url] There are some tutotials and examples: [url]http://www.deinmeister.de/wasmtute.htm[/url] [url]http://win32assembly.online.fr/index.html[/url] | |
Re: [url]http://www.viva64.com/links/64-bit-development/[/url] [url]http://www.vikaskumar.org/wiki/index.php?title=X86-64_Tutorial[/url] [url]http://msdn.microsoft.com/en-us/library/ms794533.aspx[/url] [url]http://www.x86-64.org/[/url] [url]http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_869_875[/url]... [url]http://www.intel.com/products/processor/manuals/index.htm[/url] | |
Re: [QUOTE=loudstil;770662]Hi to all, I wrote a code, and it gives me divide overflow, but the issue here is that when I run the program trough the debugger it works fine, but when I run the program in the dos mode it gives me Divide overflow error. here the code: tnx[/QUOTE] … | |
Re: You will need to tweak 'termios' to get non-buffered input to work. Read this thread for code and discussion of the issue: [url]http://sourceforge.net/mailarchive/forum.php?thread_name=814462.63171.qm%40web65510.mail.ac4.yahoo.com&forum_name=hla-stdlib-talk[/url] Nathan. | |
Re: There is a nice tutorial in this thread: [url]http://www.daniweb.com/forums/thread41309.html[/url] For 64-bit, you'll find resources (and Linux examples) here: [url]http://www.vikaskumar.org/wiki/index.php?title=X86-64_Tutorial[/url] Windows examples here: [url]http://groups.google.com/group/alt.lang.asm/browse_frm/thread/da219540368d7587/0866bdd1d5f508a3[/url] Nathan. | |
Re: These tutorials will show you how: [url]http://win32assembly.online.fr/tutorials.html[/url] | |
Re: [b]Some Assemblers that have 64-bit support:[/b] FASM [url]http://flatassembler.net/[/url] NASM [url]http://www.nasm.us/[/url] YASM [url]http://www.tortall.net/projects/yasm/[/url] Poasm (an offshoot of Pelle's C Compiler) [url]http://www.masm32.com/board/index.php?PHPSESSID=3414441112dc1a8d61ea22ed1e202d90&board=42.0[/url] [b]Some IDEs to try:[/b] Eclipse [url]http://www.eclipse.org/[/url] Bloodshed [url]http://www.bloodshed.net/[/url] SciTE [url]http://www.scintilla.org/SciTE.html[/url] For more information, look at this thread: [url]http://www.daniweb.com/forums/thread67183.html[/url] Nathan. | |
Re: Some resources and existing code to learn from: [url]http://asm.sourceforge.net/[/url] [note: the AsmUtils package has not been updated for years, so some of those examples will not work on modern kernels] [url]http://linuxasmtools.net/[/url] Hope that helps. Nathan. | |
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 of the number and for the multiples of five print “Buzz”. For numbers which are … | |
Re: Some suggested reading material: [url]http://www.drpaulcarter.com/pcasm/[/url] [url]http://www.kipirvine.com/asm/[/url] [url]http://savannah.nongnu.org/projects/pgubook[/url] [url]http://webster.cs.ucr.edu/AoA/index.html[/url] Nathan. | |
Re: 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 found here: [url]http://msdn.microsoft.com/en-us/library/aa383749.aspx[/url] It is a good idea to study the Iczelion tutorials first: [url]http://win32assembly.online.fr/tutorials.html[/url] Nasm … | |
Here is a nice "cheat sheet" for getting "up and running" quickly: [url]http://freeengineer.org/learnUNIXin10minutes.html[/url] |
The End.