flat assembler
Message board for the users of flat assembler.
Index
> Windows > drawing |
Author |
|
edfed 19 Jan 2012, 19:32
here is windows section, you code is related to DOS (org 100h) section.
format MZ + org 100H??? to fill all the screen in red in mode 13h, ou can try that for example. and compare with your code and you'll see where it don't work by experiments. Code: RED=4 org 100h mov ax,13h int 10h push es 0a000h pop es mov al,RED mov di,0 mov cx,64000 rep stosb pop es ;mov ax,3 ;comment it to see the result at exit in console ;int 10h ;here, your first code have int 0h, maybe a typo error. ret hope it helps. |
|||
19 Jan 2012, 19:32 |
|
rens 19 Jan 2012, 20:32
Thank you for your reply.
I copied your entire program, though I still have the same problem. When I execute it, it behaves for the user exactly the same as earlier tries I had. When I execute it my screen first turns black, and later a different color of black, but no sign of any red pixels. I also have the problem that the only way I can exit the program (either with or without the mov ax,3 int 10h), is by pressing the windows-button and crtl-alt delete. The problem doesn't solve itself if I run it from flat assembler (version 1.69.35) Could it be that my computer is in some kind of mode, (or not), where drawing this way is disabled. Or that I might need something witch isn't in a every day computer? |
|||
19 Jan 2012, 20:32 |
|
JohnFound 20 Jan 2012, 07:03
It is probably problem of DOS compatibility. The programs above are not windows programs, they are DOS programs. Try booting FreeDOS and use FASM for DOS for ultimate test.
|
|||
20 Jan 2012, 07:03 |
|
AsmGuru62 20 Jan 2012, 15:25
The DOS INT 10h should work fine in NTVDM.
It is emulated by Windows, but should be OK (before Win7, I think). I tried it. |
|||
20 Jan 2012, 15:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.