Problem with debug.exe

Discussion in 'Rare and Obscure Gaming' started by Anonymous, Jun 25, 2004.

  1. Anonymous

    Anonymous Guest

    Hello! First of all sorry because of my bad English.

    These days I'm having my first contact with assembler, so I tried the debug.exe included with MS-DOS 6.22.

    I start debug typing 'debug' in the prompt.
    I type 'a' in order to start assembling.
    I type, for example, 'mov ax,4'
    I type '[enter]' in order to end entering code.
    I type 'g' to execute it.

    AND NOTHING HAPPENS. The message 'Program terminated normally' doesn't appears and I have to reset my computer.

    Do you know what's and where's the problem?

    Thank you very much.

    Ã￾lvaro.
     
  2. Codeman1

    Codeman1 Guest

    Wrong forum, altough some members here might be able to help you, this forum has nothing to do with the assembler programing language.

    rare, prototype, and developers video game systems


    PS: És Português? Brasileiro?
     
  3. AntiPasta

    AntiPasta Guest

    I know what's your problem, you need to put a 'RET' in as your last instruction or else the CPU will go "into the weeds" (run garbage code). If you want to execute single opcodes, I think you can use debugs "T" (for "trace") command.
     
  4. Calpis

    Calpis Champion of the Forum

    Joined:
    Mar 13, 2004
    Messages:
    5,906
    Likes Received:
    21
    debug is such a powerful tool, it needs to gain recognition :)
     
  5. AntiPasta

    AntiPasta Guest

    There is, in the form of DEBUG32 (a remake that also does MMX and stuff, so I heard). Debug is where the *real* 31337-ness is, not with using Kazaa and playing CS :axe:
     
  6. Anonymous

    Anonymous Guest

    Thank you

    AntiPasta, thak you very much.

    I put a 'ret' in the end of my code and then I can execute it without any problem. I also have tried a 'trace' and works as well.

    Thanks, Ã￾lvaro.
     
  7. AntiPasta

    AntiPasta Guest

    No probs :)
    If you need help with assembly again, send me a PM or something.
     
  8. Johnny

    Johnny Gran Turismo Freak and Site Supporter 2013,2015

    Joined:
    Mar 14, 2004
    Messages:
    6,230
    Likes Received:
    397
    :prayer: Antipasta, the master of Assembly! :smt024
     
  9. Calpis

    Calpis Champion of the Forum

    Joined:
    Mar 13, 2004
    Messages:
    5,906
    Likes Received:
    21
    Thats good to know, maybe sometime I might have some questions. Do you do 6502 or just x86? :)
     
  10. AntiPasta

    AntiPasta Guest

    Never really got into 6502, but I do x86, Z80, MIPS (R3000A) and K.A.A.S. (my virtual machine) :smt024
    Tried to do SH2 too but got stuck on the Saturn hardware :Hangman:
     
  11. antime

    antime Guest

    If you want to learn 6502 one good source is Jim Butterfield's Machine Language for the Commodore 64 and Other Commodore Computers. There's an obvious CBM slant to it, but his books are very good learning material and was almost required reading in the early 80s. As a bonus you'll learn something about the C64!

    Another book (which I think I might actually own a copy of) is Richard Mansfield's Machine Language For Beginners. It's more platform-neutral in that the examples are provided for most 6502-based 8-bitters of the time.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page