Results 1 to 6 of 6

Thread: Writing to memory registers

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Auburn,AL
    Posts
    12

    Thumbs down

    I need to send commands directly to memory registers for a stepper-motor controller and I am not sure if this is possible in VB.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    not in VB my freind, VC++ is great, you can write assembler directly along with C++.

  3. #3
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    HEARD OF VBASM.DLL ?

    I am not sure about Whether you can change registers from VB but there is a 16 bit dll (vbasm.dll) which does many low
    level stuff like calling interupts , writing to memmory etc..It may be useful to you...check out

    "VB-ASM is a DLL that was written to help Visual Basic programmers accomplish tasks that are either difficult, or impossible to do in Visual Basic alone. The DLL contains a number of helpful routines and was written entirely in assembly language making it highly optimized. In addition, VB-ASM is free and you can use and distribute VB-ASM with your own programs as long as you follow the conditions."

    http://www.softcircuits.com


  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    use the shell command to send register values to the debug.com assembler (which is in every MS OS)

    test it by typing debug at dos, you can write directly to the registers

    There's a tutorial on the net somewhere on how to use it.
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  5. #5
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    DEBUG is not that great !


    DEBUG.com is not that great to change memmory registers.
    What i mean is , you can make a simple com program that runs
    in dos/dosbox that changes 16 bit registers ax, bx, cx ,dx
    etc.. but not eax ,ebx ,ecx etc.. meaning it just cannot
    access the extended registers.Also mind you, that Debug produces code for 8086/8088 processors.which means if you have a pentium you are just wasting your resources running
    a primitive , unoptimised code. Also debug.com cannot access
    memmory beyond the 640 Kb limit.

    If you can't pronounce my name, call me GURU

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    I didn't say it was good, I said it exists. I briefly looked at it once and nevr done anything useful with it!

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width