Search Results

Showing results 1 to 29 of 29
Search took 0.01 seconds.
Search: Posts Made By: sDJh ; Forum: Assembly and child forums
Forum: Assembly Jan 9th, 2009
Replies: 2
Views: 1,390
Posted By sDJh
Not directly. To shutdown the computer or reboot it, you can simply use direct hexcodes. Reboot for example is

DB 0EAh
DW 0000h
DW 0FFFFh


When you run your programme without an OS you can...
Forum: Assembly Oct 31st, 2008
Replies: 2
Views: 1,052
Posted By sDJh
Of course you get. X_VALUE is printed as ASCII-Character. You have to write a procedure to convert numbers to strings. Converting them to hex is quite simple. Just have a look out in the net.
Forum: Assembly Oct 23rd, 2008
Replies: 2
Views: 1,397
Posted By sDJh
yes and no.

on the one hand you could actually rewrite everything from the scratch (driver for harddisks, basic graficcardoperations etc) - BIOS is also written in ASM. This is possible of course...
Forum: Assembly Sep 23rd, 2008
Replies: 5
Views: 1,678
Posted By sDJh
Than you can't use DX or CX for indexing. Use ESI or EDI instead.
Forum: Assembly Sep 4th, 2008
Replies: 3
Views: 726
Posted By sDJh
when including source to your project the assembler's root directory is the directory of your project. So you have two or actually three choices:
1) Leave the author's libs somewhere on your HD and...
Forum: Assembly Sep 4th, 2008
Replies: 5
Views: 1,678
Posted By sDJh
I forgot to increase EDX. Just add INC EDX at the end of the loop.

If this doesn't help then try to explain the bug in more detail or write me a PM.
Forum: Assembly Aug 23rd, 2008
Replies: 6
Views: 1,788
Posted By sDJh
What OS are you using? I'm not sure if that stuff is still working under NT (Win 2000 or higher). Than you have to link it directly to an exe (with Link) and execute it.
If so than have a look at...
Forum: Assembly Aug 20th, 2008
Replies: 1
Views: 1,385
Posted By sDJh
I hope I got it as well, but I'll give it a try:
When dividing a number with DIV then it returns the result in AX and the modulo in DX.

Communicating with a microchip can easily be done via the...
Forum: Assembly Aug 20th, 2008
Replies: 5
Views: 1,678
Posted By sDJh
XOR EDX,EDX
MOV ECX,length
reverse_loop:
MOV AL,[string_remarks+EDX]
MOV [string_reverse+ECX],AL
LOOP reverse_loop


I'm pretty sure that's what you mean. If you have probs with you memory...
Forum: Assembly Jul 16th, 2008
Replies: 2
Views: 719
Posted By sDJh
get this book from amazon.com. It's really worth it. I learned assembly with it as well:...
Forum: Assembly Jun 28th, 2008
Replies: 3
Views: 1,571
Posted By sDJh
okay.
you have to export the offsets of each var. You can do it with a macro (does NASM hav a direct way to do so?) that does basically:
-> get called at the top of the file with the pointer to the...
Forum: Assembly Jun 27th, 2008
Replies: 1
Views: 1,553
Posted By sDJh
Very simple reason: When you use mov bp,#mymsg you load the pointer to that string into bp. Use MOV BP,[#mymsg] instead. For the looping see PM.
Forum: Assembly Jun 27th, 2008
Replies: 3
Views: 1,571
Posted By sDJh
ORG just leaves empty space before the assembled hex. So if you just code your stuff in NASM and then later want to place your C-code before, your can use the DOS-Funktion copy (cp in UNIX?). This...
Forum: Assembly Jun 26th, 2008
Replies: 2
Views: 2,578
Posted By sDJh
Did you already write your bootloader? If yes, than most work is already done. You just place all the following stuff at the end of the loader, load that stuff into mem and execute it by setting CS...
Forum: Assembly May 3rd, 2008
Replies: 3
Views: 894
Posted By sDJh
the simpliest way that I can find right now is saving each occurance of a char in a new array. Basically like this:


string DB 'Hello Demonoid2008!",$
yourloop:
XOR EAX,EAX
MOV...
Forum: Assembly May 2nd, 2008
Replies: 9
Views: 1,170
Posted By sDJh
Of course it is. You have to write your own lib with functions for in- and output. It just is quite a fuss.

Try to google a bit, because C-Compilers can convert the code to assembly. This actually...
Forum: Assembly May 2nd, 2008
Replies: 2
Views: 838
Posted By sDJh
You can use any of these registers. The data is stored until you/your generated code that overwrites or chages it by some functionst. eg.
MOV EAX,100h ;<- stores 100h in EAX
some code here
MOV...
Forum: Assembly Apr 30th, 2008
Replies: 3
Views: 699
Posted By sDJh
Is it for an examination?

1) Go to microsoft.com and look for the official FAT32-documentation (it's quite good for microsoft-standart).

2) Some basic information:
The first sector which...
Forum: Assembly Apr 30th, 2008
Replies: 4
Views: 974
Posted By sDJh
I was just working with my normal computer and tryin to access my keyboard. Unfortunately I don't have time to realize that project even though it still interests me.

When using one of these small...
Forum: Assembly Apr 28th, 2008
Replies: 3
Views: 699
Posted By sDJh
FDisk should work. A floppy is a normal FAT32-partition.

If not, I believe, you can find good codes for formating disks in FAT.
Forum: Assembly Apr 24th, 2008
Replies: 4
Views: 974
Posted By sDJh
Personally, I haven't. But I am interested in writing USB-programmes as well. A very good place to start is usb.org. It is the official website for the USB-interface and provides many useful...
Forum: Assembly Apr 20th, 2008
Replies: 2
Views: 1,082
Posted By sDJh
???

When you access and search through a file you need a pointer anyway.

MOV AL,[file+EBX]

So write a routine that compares a string and a string (file) with an offset.
;ESI: string1...
Forum: Assembly Apr 20th, 2008
Replies: 1
Views: 571
Posted By sDJh
is that programme already running? Guess you have to solve that with C using events. Can't imagine that using the Linux-Kernel/the WinAPI with ASM is done in a few minutes.
Win and Linux are sending...
Forum: Assembly Apr 20th, 2008
Replies: 2
Views: 798
Posted By sDJh
First of all, and this is my personal opinion, is assembly much more logical. When fussing around with pointers in C++ I always mess around after a while and don't have a clou which variable stands...
Forum: Assembly Apr 20th, 2008
Replies: 1
Views: 645
Posted By sDJh
I prefer NASM. It is totally free, has a very good performace and supports the native Intel-Syntax. The code is very clear.

Many examples in the internet (and also programmes) are written in the...
Forum: Assembly Apr 20th, 2008
Replies: 1
Views: 1,103
Posted By sDJh
I'm sorry, but I didn't understand your first question.

To print a string backwards, you can use two ways. First you print it directly the other way round:
MOV ECX,stringlength
MOV EBX,ECX ...
Forum: Assembly Mar 20th, 2008
Replies: 1
Views: 2,216
Posted By sDJh
I don't have a code on the fly. You basically do it as follows.

You have a string with the execution (static or via user input). You go through the string to seperate the functions +,-,*,/ from...
Forum: Assembly Aug 17th, 2005
Replies: 1
Views: 2,624
Posted By sDJh
I found the solution for myself. I put the function ID in AL and not AH as BIOS expect me to do. Working now the way as I want to =)
Forum: Assembly Aug 16th, 2005
Replies: 1
Views: 2,624
Posted By sDJh
Hello everybody,
I just signed up, 'cause I looked through the internet over days to find a solution for the BASIC function GetKey(). It simply returns the Scancode of a key pressed by the user or 0...
Showing results 1 to 29 of 29

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC