Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by AmkG

  1. AmkG

    ASCII TO HEX TO ASCII

    Using a 2dim array is not worth it. Strings ARE in ASCII, so if you have the ascii code as an integer somewhere, you just print it directly to screen, which outputs it as an ascii character. For instance, if al=65, you output an 'A.' Your problem is much easier if you were to go directly to...
  2. AmkG

    Help with a database program

    Where's the array? If you're doing a lot of repititive code, chances are you're doing it inefficiently. Also, I suggest you sort INDEXES and not the actual records, moving records around can be *** time-consuming. "Information has a tendency to be free. Which means someone will always...
  3. AmkG

    Help in a design of compressor program

    It would be nice to know WHERE it doesn't work, too... Does it assemble okay? Does it link okay? Does it load and run okay? Does it load, print a lot of computer-understandable curse words, then go beeping until you press the reset button? Does it toast your computer? "Information has a...
  4. AmkG

    String Input

    There is no string input function in BIOS. If you want an input function more flexible than DOS's, you want to build your own. If you're using Windows... hey, you probably aren't. "Information has a tendency to be free. Which means someone will always tell you something you don't want to...
  5. AmkG

    Screen Refresh/ Display

    The flicker is probably caused by not using direct video access. If you're doing BIOS access (omg!) it'll be ridiculously slow even on later processors. Also, drawing pixel by pixel is not recommended for any 16-color video mode, especially for horizontal lines since you can draw up to 8...
  6. AmkG

    Using Linked Lists in ASM...

    You might also try to *SEARCH* on win32asmboard.cjb.net . Some of the people there have had to face problems of interfacing C++ to ASM, and they may have posted some things you can use. The point though is to use the *SEARCH* function on win32asmboard.cjb.net since if you ask, you stand a...
  7. AmkG

    Using Linked Lists in ASM...

    Interfacing between C++ and ASM can be ridiculously difficult. The difficulty lies in the fact that in C++, the compiler puts more in each class than you put in. What is more, (at least in the past) different C++ compilers did not necessarily compile in the same manner. If you are using...
  8. AmkG

    Incrementing a 64-bit memory location in assembly

    No. "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
  9. AmkG

    Incrementing a 64-bit memory location in assembly

    add lowdword,1 adc hidword,0 "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
  10. AmkG

    16-bit mode and 32-bit mode

    Yes, if the OS supports it. As it happens I saw some OLD Windows code once which allowed a 16-bit real mode DOS program to send information to a 16-bit protected mode Windows program, through the clipboard... "Information has a tendency to be free. Which means someone will always tell you...
  11. AmkG

    Largest Number

    It's easier if you convert the hex string into a binary number first. "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
  12. AmkG

    New to Assembly

    Do some research on binary to string conversions, this forum has a 'search' feature ;-). "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
  13. AmkG

    N! up to 71 digits

    No, multi-word maths will still work. The only problem is that you have a LOT of work to do to implement it. In fact, using unpacked BCD (which is what you suggested, storing a single digit in one byte is unpacked BCD...) may be more difficult than using multi-word maths. The problem you have...
  14. AmkG

    how to center a word on the screen?

    You prolly shouldn't have put it as matthew6is2good.5, unless you have an array somewhere that tells you where each word ends and/or starts... so how would YOU know where each word ends or starts? To center a string: NumSpaces = (ScreenWidth - StringSize)/2 Where NumSpaces is the number of...
  15. AmkG

    compiler for nt based os

    If you're doing Win32Asm programming, you can prolly work with hutch's MASM32 package, however I think you are probably doing DOS16 asm programming? "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."

Part and Inventory Search

Back
Top