jetamay 0 Newbie Poster

DOSSEG
.MODEL SMALL
.STACK 100h
.DATA
.CODE

start:
MOV AX,01h
MOV DX,0Fh

XCHG AX,DX

PUSHF
POP AX

INC AX
DEC AX

PUSH AX
POP DX


ADD AX,0Ah
MOV DX,02h
SUB AX,DX
DIV AX
INT 20

END start

I was hoping that after I compiled that I would be able to debug it, however it isn't working the way I thought it would. And when I run exe, It just opens, then nothing happens =/ It doesn't even close.

BTW : DOSSEG is ignored when linking.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.