Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: Ancient Dragon ; Forum: Assembly and child forums
Forum: Assembly Jun 15th, 2008
Replies: 1
Views: 864
Posted By Ancient Dragon
Now that you have posted your homework assignments, what are you asking from us ?
Forum: Assembly Jan 6th, 2008
Replies: 5
Views: 2,077
Posted By Ancient Dragon
what operating system ? what version assembly language? what assembler?

Essentually you have to open two files -- input file for input and result (output) file for output. In a loop, read a...
Forum: Assembly Jul 22nd, 2007
Replies: 10
Views: 5,139
Posted By Ancient Dragon
what you are doing is attempting to print the binary value of the number. It has to be converted to ASCII before it can be printed. If you look at an ascii chart...
Forum: Assembly Jun 10th, 2007
Replies: 4
Views: 2,864
Posted By Ancient Dragon
my guess is the screen is not 24x79. Try increasing the value of dx to test that out unless, of course, you have already thought of that and tried it.
Forum: Assembly May 5th, 2007
Replies: 12
Views: 3,423
Posted By Ancient Dragon
>>What I am trying now is to reduce the number of lines.
That doesn't mean you have a poor program. Pure assembly programs are typically very huge.

one way to do it is to write a small program...
Forum: Assembly Apr 29th, 2007
Replies: 12
Views: 3,423
Posted By Ancient Dragon
how to draw a line depends on the operating system. If you are using MS-Windows you can use the win32 api graphics functions. If you are in MS-DOS you could probably just use a line drawn with...
Forum: Assembly Jan 16th, 2007
Replies: 2
Views: 2,410
Posted By Ancient Dragon
did you try any of these google links (http://www.google.com/search?hl=en&q=sparc+assembly+programs)?
Forum: Assembly Dec 12th, 2006
Replies: 13
Views: 5,579
Posted By Ancient Dragon
>>may you explain it plaese ?
If you look at a standard ascii chart (http://www.asciitable.com/) you will see that the letter '0' has a decimal value of 48. So, to convert a binary value all you...
Forum: Assembly Dec 12th, 2006
Replies: 13
Views: 5,579
Posted By Ancient Dragon
Well I think you are making things worse, not better. Here is one way to do what you want. I have not assembled or tested this.


;----
; ---- start of loop reading the keyboard
; ---- one...
Forum: Assembly Dec 12th, 2006
Replies: 13
Views: 5,579
Posted By Ancient Dragon
JMP Count
CMP al,'Z'
JMP Count
LOOP TOP

The jumps are incorrect -- please see my previous post. jmp instruction is an unconditional jump meaning that the program will go regardless of any...
Forum: Assembly Dec 12th, 2006
Replies: 13
Views: 5,579
Posted By Ancient Dragon
cmp al,'A'
CMP al,'Z'
JMP Count


you have to put a jump after every comparison -- see my previous code for example.

>>LOOP TOP
you can not use that construct in this program because you...
Forum: Assembly Dec 12th, 2006
Replies: 13
Views: 5,579
Posted By Ancient Dragon
That loop needs to check for al = 13H ( <Enter> key) to stop the loop. As coded now the loop will never stop.

>> Mov bl,al
Why do that? just use al for tests



cmp bl,'A'

JGE Count
Forum: Assembly Nov 9th, 2006
Replies: 11
Views: 3,369
Posted By Ancient Dragon
I got into the habbit of pushing all registers that I want to save before calling any interrups or functions because (1) general purpose registers ax, bx, cx and dx are subject to change without...
Forum: Assembly Nov 9th, 2006
Replies: 11
Views: 3,369
Posted By Ancient Dragon
xor ax,ax
is the same as this
mov ax,0
except that xor is a tiny bit faster
Forum: Assembly Nov 9th, 2006
Replies: 11
Views: 3,369
Posted By Ancient Dragon
I think it should be something like this -- I didn't assemble or test it.
;
mov bx,1 ; row counter
loop_start::
xor cx,cx ; column counter
l1:
mov al,'*'
mov ah,0eh ;prints to screen
int...
Forum: Assembly Nov 9th, 2006
Replies: 11
Views: 3,369
Posted By Ancient Dragon
you need two counters -- the first counter counts the number of lines to be printed, the second counter counts the number of stars that are printed on the current line. Your code is putting a CR/LF...
Showing results 1 to 16 of 16

 


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

©2003 - 2009 DaniWeb® LLC