Forum: Assembly Apr 27th, 2007 |
| Replies: 1 Views: 2,080 We're not going to do your homework for you. Show you made an effort, and then you may get some help. |
Forum: Assembly Apr 22nd, 2007 |
| Replies: 3 Views: 1,544 |
Forum: Assembly Apr 20th, 2007 |
| Replies: 3 Views: 1,544 A common fast way to do a multiply by 8 is just shift left by 3 bits. |
Forum: Assembly Apr 18th, 2007 |
| Replies: 5 Views: 5,408 Define "much" ;-> In reality, its something in the range of 30% faster on average. The prefetch queue goes a long way towards flattening the performance between the two.
In the specific case of... |
Forum: Assembly Apr 16th, 2007 |
| Replies: 2 Views: 2,439 maybe it wants: "offset message" ?
Don't forget that DS needs to be set to the segment the message is in if this code isn't already running with DS=CS |
Forum: Assembly Apr 12th, 2007 |
| Replies: 3 Views: 1,165 I see no push instructions in the code you posted.
Just push DX anyway. If DH is trash, who cares? |
Forum: Assembly Apr 10th, 2007 |
| Replies: 3 Views: 1,165 Use DL rather than DX. The group of functions you have to be calling (you didn't say which of several possibilities you're specifying in AH) don't use DH. A MOV to DX is 3 bytes, a MOV to DL is... |
Forum: Assembly Apr 8th, 2007 |
| Replies: 7 Views: 3,110 Multiply by 10, add current and repeat until you're out of numbers |
Forum: Assembly Apr 8th, 2007 |
| Replies: 7 Views: 3,110 Assuming some input character is in AL, then doing SUB AL,'0' is the traditional way to convert '0'-'9' to 0-9
This isn't your code is it? |
Forum: Assembly Apr 7th, 2007 |
| Replies: 7 Views: 3,110 If you want help, maybe you should ask a question. |
Forum: Assembly Apr 6th, 2007 |
| Replies: 7 Views: 2,374 You can hook the NPX exception on almost anything. Its not anything that requires ring 0 interactions within an OS. |
Forum: Assembly Apr 2nd, 2007 |
| Replies: 7 Views: 2,374 Almost all early DOS C compilers can generate hard 87 stuff or emulated 87'. Most assemblers can do it too. |
Forum: Assembly Apr 2nd, 2007 |
| Replies: 5 Views: 5,408 Almost everything executes faster on the 8086. It has a 16 bit bus rather than the 8088's 8 bit bus.
The execution units on the two chips are identical. The only difference is bus width and... |
Forum: Assembly Mar 23rd, 2007 |
| Replies: 3 Views: 7,261 If you use a mutant form of AAM or AAD (I forget which right now) that uses 16 as its base rather than 10, it will cleanly split the nibbles in AL into AH and AL.
IOW - 0x35 would become 0x0305 |
Forum: Assembly Mar 23rd, 2007 |
| Replies: 7 Views: 1,529 Bite me slacker. You deserve your fate. |
Forum: Assembly Mar 22nd, 2007 |
| Replies: 6 Views: 2,218 |
Forum: Assembly Mar 22nd, 2007 |
| Replies: 7 Views: 1,529 Sounds like you should be kicked out of school if you waited till the last day to start the assignment. Sympathy is a word in the dictionary. |
Forum: Assembly Feb 17th, 2007 |
| Replies: 11 Views: 3,944 The OP never said that. I still can't figure out what they want. |
Forum: Assembly Feb 16th, 2007 |
| Replies: 2 Views: 1,588 They are it.
No difference, other than errata unless you start wanting to exploit things like 3DNow or MMX/SSE stuff. Stay with the common 8086/286/386/486/Pentium subset and they're all... |
Forum: Assembly Feb 9th, 2007 |
| Replies: 7 Views: 8,970 I'd write an assembler program that just printed out "Hello World" first. In doing that, you'll find you've built 70% of what that date printer does. |
Forum: Assembly Feb 6th, 2007 |
| Replies: 1 Views: 3,303 It might be more useful to have a hardware design that will work first...since there's probably dozens of different RTC chips and dozens of 8051 variants, and hundreds of different ways one might... |
Forum: Assembly Feb 4th, 2007 |
| Replies: 34 Views: 9,842 they'll throw extra hardware at it
...and when that hardware doesn't exist? |
Forum: Assembly Feb 4th, 2007 |
| Replies: 3 Views: 2,188 a) What CPU?
b) What OS?
c) Is this a stock GUI like Windows or X, or a roll your own project where you're doing all the graphics yourself the hard way? |
Forum: Assembly Feb 3rd, 2007 |
| Replies: 34 Views: 9,842 I assure you the OS/2 kernel, KBD, MOU, VIO, and base drivers code was non-trivial. It was all done in assembler.
In the 1.X and GA 2.0 version the PM graphics engine was assembler as well. The... |
Forum: Assembly Feb 2nd, 2007 |
| Replies: 34 Views: 9,842 That's why I'm reading Vista's hardware requirements are massive right?
I have more respect for your time than you do. |
Forum: Assembly Feb 2nd, 2007 |
| Replies: 4 Views: 3,365 If you can find a copy, the Intel 386 "Operating System Writer's Guide" explains a lot of this stuff in detail. |
Forum: Assembly Feb 1st, 2007 |
| Replies: 34 Views: 9,842 OS/2 1.3 would run on a machine with well under 3M of memory, and the whole system shipped on about 8 or 9 1.44M diskettes (including display/printer drivers). |
Forum: Assembly Feb 1st, 2007 |
| Replies: 34 Views: 9,842 Its a very bold (and 100% wrong) assumption that all computer systems have an OS or one that they're CPU bound upon.
You seem to be a very GUI/desktop centric person. I assure you, there's a... |
Forum: Assembly Jan 31st, 2007 |
| Replies: 34 Views: 9,842 More quickly? Perhaps.
As well? No. I can beat any compiler on speed or space optimizations. One of the biggest problems with compilers is they must implement the semantics of the language. ... |
Forum: Assembly Jan 31st, 2007 |
| Replies: 26 Views: 5,997 take your code (or your .class file) and run it SLOWLY anywhere with a JVM ;-> |
Forum: Assembly Jan 31st, 2007 |
| Replies: 8 Views: 3,908 Bad ideas and bad advice are always free.
What I suggested is a very brute force method |
Forum: Assembly Jan 30th, 2007 |
| Replies: 34 Views: 9,842 The Space Shuttle's cockpit displays/keypad processors (an IBM SP0) were programmed in assembler as was its Heads Up Display(HUD) symbology processor (Hughs A10INS processor)
All of the kernel... |
Forum: Assembly Jan 30th, 2007 |
| Replies: 8 Views: 3,908 Load an 8 element array of bytes with 0000001B and start rotating them until you find the combination that works.
I'll write this program for $1,000. I don't do homework for free. |
Forum: Assembly Jan 29th, 2007 |
| Replies: 3 Views: 1,877 Most I've taken apart with a debugger were written by amateurs and full of bugs, so that's probably a pretty accurate statement. |
Forum: Assembly Jan 28th, 2007 |
| Replies: 15 Views: 12,930 We had assemblers though. The SP0 wasn't all that obscure (in aerospace circles that is). Shuttle uses it, and the Navy's Harpoon missile is using them somewhere.
The DOS loader stuff isn't very... |
Forum: Assembly Jan 27th, 2007 |
| Replies: 15 Views: 12,930 Patches are frequently applied in machine code. NASA's procurement process for Space Shuttle flight software had the vendor providing a "signed off" image. Subsequent fixes after image sign off... |
Forum: Assembly Jan 18th, 2007 |
| Replies: 4 Views: 3,365 Just declare them like any other segment. What their attributes are will be diddled by protected mode code somewhere, not the assembler. |
Forum: Assembly Jan 15th, 2007 |
| Replies: 11 Views: 3,047 I would suggest IFDEF'ing out most of that crap and make one small piece work at a time.
The "big bang" theory of development and debugging is a very frustrating path to take. |
Forum: Assembly Jan 15th, 2007 |
| Replies: 6 Views: 4,786 Most compilers have a switch to compile via assembler code. GCC, MS, Borland, etc can all do it. |
Forum: Assembly Jan 14th, 2007 |
| Replies: 6 Views: 4,786 Every floating point printing routine I've ever worked with for x86 scales the exponent and uses the NPX(or emulator) BCD to convert the 64 bit fraction for printing.
I think you need to take a... |