Forum: Assembly Oct 19th, 2009 |
| Replies: 10 Views: 572 Almost.
That's your initial get the code working step.
Then, once it works, since the text is alpha sorted, and the records are fixed size, do a binary search.
Look a record COUNT/2, Is it,... |
Forum: Assembly Oct 19th, 2009 |
| Replies: 10 Views: 572 There's usually hundreds of commands in a scripting language so would mean more like...
iApple = 1
iPear = 2
iCorn =3
iDog = 4
iGrape= 5
xApple db 'Apple',0
xCorn db 'Corn',0 |
Forum: Assembly Oct 19th, 2009 |
| Replies: 2 Views: 297 I think you misunderstand the syscall function. It doesn't return a four byte integer. It returns a string!
You also aren't setting $a1 to maximum number of characters to read - 1. The function... |
Forum: Assembly Sep 15th, 2009 |
| Replies: 6 Views: 340 You have a problem with the MARS library.
li $v0,1 Print integer
mov $a0,$s0 a0 is integer
syscall <--- MISSING
li $v0,10
syscall #exit |
Forum: Assembly Sep 11th, 2009 |
| Replies: 1 Views: 280 Sorry, what you need is someone with a lot of free time to help you out.
First, code tags!
Second, COMMENTS! Your code is all crammed together with no comments. One has to understand fully what... |
Forum: Assembly Aug 25th, 2009 |
| Replies: 6 Views: 555 You aren't saying what's happening, and you aren't mentioning your toolset.
See if <buffer> is in its own segment or sitting at 0100h in the code instruction pointer path!
buffer db 10,?, 10... |
Forum: Assembly Aug 21st, 2009 |
| Replies: 6 Views: 472 I realize English isn't your primary language but you need to try better as your request is not clear!
You covered up your code so we can no longer see it!
DOS used a '$' terminator so if you're... |
Forum: Assembly Aug 15th, 2009 |
| Replies: 153 Views: 2,697 Yes, $v0 $v zero $vo is a mistake!
There are many languages out there. Some companies build applications using Java. Some C, Pascal, Visual Basic, Basic, Fortran, Cobol (though fewer and... |
Forum: Assembly Aug 15th, 2009 |
| Replies: 153 Views: 2,697 Since this is no longer a school project I went in and cleaned top to bottom. You need to finish at bottom where indicated.
Review each section of code and understand how it works!
.data #... |
Forum: Assembly Aug 9th, 2009 |
| Replies: 16 Views: 1,052 Do you carry a cell phone?
Do you own a microwave oven?
Do you have a game console?
Do you have a television set?
Do you own an automobile?
etcetera
There you go! |
Forum: Assembly Jul 19th, 2009 |
| Replies: 16 Views: 1,052 Of course it doesn't work. You were suppose to analyze what I did, review your code, and single-step, etc. and make appropriate changes! One typically doesn't learn by being handed the answer. They... |