It's actually not help with the code, it's help finding an assembler and linker that will work on 64 bit windows 07... Not only that, but I'd like to be able to be able to debug it. But since windows dropped debug from 64 bit.

Any help?

P.S.: I have YASM, but it won't let me compile code that I know for a fact works (I copied it directly from the book).

DOSSEG
.MODEL SMALL
.STACK 100h
.DATA
	cat		DW	5
	dog		DW	4
	mouse	DB	1

.CODE
	startup:
		mov ax,@data	;Must always
		mov ds,ax		;do this first

		mov ax,dog		;move the contents of dog into the ax register
		add cat,ax		;move the contents of the ax register into cat

		mov bl,mouse	;move the contents of mouse into the low b register
		
		mov al,01h		;example of a "literal"
		mov bh,0Ch		;another example of a "literal"
	
		mov ah,4ch		;terminate the program.
		int 21h			;DO THIS OTHERWISE YOU WILL HAVE TO HARD REBOOT
	END startup

Does 64-bit Windows still run 32-bit applications?
The code your showing is for 16-bit DOS, and I believe
DOS emulation is not available under 64-bit Windows.
Try this: get DOS Box if available for Windows 7,
, and mount the directory containing your 16-bit assembler,
your code and your linker. Insight is a good DOS debugger.
DOS Box is a Dos emulator for Windows.

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.