Re: debug.com push b800




Jim Carlock wrote:

| How do you push a number onto the stack when using debug.com?

You may enter hex db-entries (key: "E")
use16: (assumed)

68 21 43 PUSH 4321h
66 68 21 43 65 87 PUSH 87654321h
6A c0 PUSH w -40 ;sign-extended byte
66 6A ff PUSH dw -1 ; -"-


| Is there a reference manual on how to use debug.com anywhere? The
| list of instructions supported?

DOS-Debug(com/exe) seems to know only, but all 8086 instructions.

| I'm trying to push a 32-bit number onto the stack and debug.com
| seems to be expecting something different.

I'm afraid it wont understand at all, you can use as above ..

| I was thinking to use the Intel manual and it's displaying:
| Opcode Instruction
| FF /6 PUSH r/m16
| FF /6 PUSH r/m32

they push only memory/register operands, but never an immediate value
the latter would need a 66 prefix.

| It looks like there's a lot of stuff that debug doesn't know about.

Yes.

| I know I've downloaded another command-line debugger from somewhere
| to replace debug.com. If anyone knows of a link to one thanks for the help.

Haven't seen one which fully supports all IA-32 instructions,
a working opportunity could be FASM together with OllyDebug.

__
wolfgang


.



Relevant Pages

  • Re: Linux, X, ld, gcc, linking, shared libraries and stuff
    ... >> to solve the problem with the two different push instructions. ... But here the answer maybe is: I will show you that RosAsm ... a 32 bit offset or simple a "br" if the assembler should decide. ...
    (alt.lang.asm)
  • Re: on reduce instruction lenght
    ... "mov eax, ebx" to ... push r1, r2, r3; ... map to all instructions, which will make any complete implementation ... the source download for my compiler does include the complete ...
    (alt.lang.asm)
  • debug.com push b800
    ... list of instructions supported? ... I'm trying to push a 32-bit number onto the stack and debug.com ... I know I've downloaded another command-line debugger from somewhere ...
    (comp.lang.asm.x86)
  • Re: debug.com push b800
    ... Jim Carlock wrote: ... > I'm trying to push a 32-bit number onto the stack and debug.com ... you could put the bytes for the push constant instruction into the ...
    (comp.lang.asm.x86)
  • Re: Learning Assembly with an HLL
    ... push Title ... Which would only introduce confusions since none of these instructions ... Introducing a page of HLL Source never did that job. ...
    (comp.lang.asm.x86)