Forum: Assembly 33 Days Ago |
| Replies: 2 Views: 468 Evrika! You helped me.
i wrote (modified to)
waitk: ;getChar
mov ah, 06h ;
mov dx, 0ffh
int 21h ;
jz waitk
cmp al,0 |
Forum: Assembly 34 Days Ago |
| Replies: 2 Views: 468 Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape.
The problem is that the first message is printed again after a char... |
Forum: Assembly Nov 4th, 2009 |
| Replies: 2 Views: 376 I don't understand: why not setting BL for an attribute? It works fine for me...
I managed to fix my error,however. I was comparing ah when the character returned was in al. *oops* |
Forum: Assembly Nov 4th, 2009 |
| Replies: 2 Views: 376 hello people. I am doing an "os" (small) that's mainly a menu. It just prints some strings and highlights some words when you pres 1,2 or 3. And by pressing enter while a option is selected, it has... |
Forum: Assembly Oct 29th, 2009 |
| Replies: 6 Views: 533 Uhm. I'm confused.
I actually understood my assignment wrong. So i don't have to do that anymore... I'm sorry for bothering. But i appreciate your help! Thanx |
Forum: Assembly Oct 22nd, 2009 |
| Replies: 1 Views: 388 Hello everybody. I'm trying to get the current directory, save it, changing the current dir, then coming back to the previous one.
My code so far
TITLE ep1_7
.MODEL SMALL
.STACK ... |
Forum: Assembly Sep 29th, 2009 |
| Replies: 6 Views: 533 Thanks very much notnull. But i still don't understad how to make from all that a procedure that ends a task.
:( |
Forum: Assembly Sep 29th, 2009 |
| Replies: 6 Views: 533 Hello.
I have an assignment to make a procedure that will end a task. The manual from the university isn't quite clear about how this works. So mainly i have this problem: How does a procedure end a... |
Forum: Assembly Sep 25th, 2009 |
| Replies: 2 Views: 837 Hey guys.
I want to read from a file created by me from a specific position. But i don't know how to move the file cursor.
TITLE ep1
.MODEL SMALL
... |
Forum: Assembly Sep 25th, 2009 |
| Replies: 16 Views: 831 This may be helpful
http://www.geocities.com/siliconvalley/2072/asm.htm |
Forum: Assembly Sep 20th, 2009 |
| Replies: 5 Views: 351 Interrupt requests come from different devices like I/O . But i don't think the processes generate interruptions(except bios functions).
The way cpu's resources are handled is OS' job. The OS... |
Forum: Assembly May 5th, 2009 |
| Replies: 1 Views: 325 I don't know how to work with the cursor but looping looks like this...
cmp ax,bx ; compares the values
jng L1 ; jumps to L1 if ax is not greater (jng=Jump if Not Greater) |
Forum: Assembly May 4th, 2009 |
| Replies: 2 Views: 417 Sorry i don't understand how to get it work... :(
I try running: gdb lab4a
it gives : (no debugging symbols found)
Then i try: - files lab4a
But it says:
exec No process In: ... |
Forum: Assembly May 2nd, 2009 |
| Replies: 2 Views: 417 Hello everyone.
I'm trying to do this in nasm under linux :
cmp eax,ebx
jng .loop
and also
test eax,ebx
jng .loop
and yet also
%if eax < ebx
jmp .loop |
Forum: Assembly May 2nd, 2009 |
| Replies: 2 Views: 566 ok! That's a very good idea!
This is what i have at the moment:
section .bss
mesage resb 2
%macro print 2
mov eax, 4
mov ebx, 1
mov ecx, %1
mov edx, %2... |
Forum: Assembly May 2nd, 2009 |
| Replies: 2 Views: 566 Hello, how does division works in nasm assembly language?
I want to get the least important digits from a binary number.
ex: 1001b /10= 100.1b. The bold signed one is what i like to get.
Any... |
Forum: Assembly Apr 27th, 2009 |
| Replies: 5 Views: 1,299 Sorry, no . I did try though. I can't understand how it works.
Maybe you want to try and see what's the problem? Please?
I would really appreciate faster help, and it's not because i want to hurry... |
Forum: Assembly Apr 26th, 2009 |
| Replies: 5 Views: 1,299 Hm, i've changed everything to extended and had no problems at linking, but something else had to get in the way...
strace ./lab4a
execve("./lab4a", ["./lab4a"], [/* 37 vars */]) = 0
--- SIGSEGV... |
Forum: Assembly Apr 26th, 2009 |
| Replies: 5 Views: 1,299 Thank you. But this is what i get
ld lab4a.o -o lab4a
lab4a.o: In function `_start':
lab4a.asm:(.text+0x2): relocation truncated to fit: R_386_16 against `.data'
lab4a.o: In function... |
Forum: Assembly Apr 25th, 2009 |
| Replies: 5 Views: 1,299 Hello assemblers :) .
I am trying to sort a word backwards, like this: abcde -> edcba
This is my code
section .bss
aloc resb 10
%macro print 2
mov eax, 4
mov ebx, 1 |
Forum: Assembly Apr 25th, 2009 |
| Replies: 10 Views: 964 I'm not going to respond to a fool by his foolishness. |
Forum: Assembly Apr 25th, 2009 |
| Replies: 10 Views: 964 Well, first of all, try thinking before offending someone. You might not get help from another next time. People don't like helping jerks like you.
Secondly, yes it does matter what OS you use. At... |
Forum: Assembly Apr 24th, 2009 |
| Replies: 10 Views: 964 Hello, read this link,post #3 :
http://www.daniweb.com/forums/thread188093.html
Might be helpful to you. There are many links that can help you to initiate yourself in linux assembly. One thing i... |
Forum: Assembly Apr 24th, 2009 |
| Replies: 2 Views: 844 that code is all wrong. I have solved the problem already :
section .bss
swap resb 3
%macro print 2
mov eax, 4
mov ebx, 1
mov ecx, %1
mov edx, %2
... |
Forum: Assembly Apr 22nd, 2009 |
| Replies: 2 Views: 844 Hello! I'm trying to swap some characters in this form, in Linux+NASM:
abc -> cab -> bca -> abc
I tried the following method
section .data
string: db 'abc',10
strlen: equ $-string... |