Trying to clear the screen using '0' for test purpose. The Key press seems to work and the set cursor position work, but I moving a bunch of zero somewhere. Does not show up on the screen. Code compiles ok and executes on 32bit system, but does not execute on a 64bit system. So my two questions are how do I get a screen full of zeros from the code below. And 2nd is how do I compile this code so that I will execute on a 64bit system running windows 8.

On 64 bit OS you need DOSBox to run the 16-bit code.
The code writing zeroes seems ok - I do not see any issues.

26 Oct 2014, 17:01

Kmogi

Joined: 26 Oct 2014
Posts: 2

Kmogi

I was trying to avoid DOSBox. I was hoping that It would be possible to compile a program compatible with 64bit system. Is that not possible? As for the 0's , I do not see them. I just have a black screen. The coded seemed correct to me as well.

26 Oct 2014, 17:29

DOS386

Joined: 08 Dec 2006
Posts: 1901

DOS386

1. Welcome to the FASM forum

2. Please use {code} {/code} (I edited your post)

> possible to compile a program compatible with 64bit system

Brew a Win32 app (and use Windows subforum).

> I just have a black screen

Did you try in DOS?

27 Oct 2014, 00:13

AsmGuru62

Joined: 28 Jan 2004
Posts: 1412
Location: Toronto, Canada

AsmGuru62

Kmogi:
You can write a Win32 Console program and fill the screen with 0s.
But that would be different code. The code you have is decades old MS DOS code
and it will no longer run on x64, unless using DOSBox.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum