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.
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?
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.
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:
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.
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:
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.