flat assembler
Message board for the users of flat assembler.
Index
> DOS > Text mode display problem |
Author |
|
edfed 17 Dec 2007, 00:53
no problem, just try to make a wait echap loop, like this, your result rest on the screen
in al,60 cmp al,1 je exit |
|||
17 Dec 2007, 00:53 |
|
jzbl 17 Dec 2007, 07:54
Still can't figure out why it runs in a window, but not when run in fullscreen cmd.exe...
It runs every single time in a window. I've changed the "key press" wait section and it does not help :/ _________________ jzbl |
|||
17 Dec 2007, 07:54 |
|
edfed 17 Dec 2007, 08:22
i have the problem too on win98
i try to fix it |
|||
17 Dec 2007, 08:22 |
|
edfed 17 Dec 2007, 08:30
fixed
the 8020h word, is equivalent to a blinking space character, so it is invisible. i've modified with 7f20h and it's ok. Code: org 100h call mode3 call crossdraw @@: mov ax,0c00h int 21h in al,60h cmp al,1 jne @b exit: ret mode3: mov ax,3 int 10h mov ax,0b800h mov es,ax ret crossdraw: mov di,80*9*2 mov cx,80*6 xor ax,ax @@: mov ax,7f20h mov [es:di], ax add di,2 loop @b mov di,(80/2-6)*2 mov cx,25 xor ax,ax .loop: push cx mov cx, 8 @@: mov ax,7f20h mov [es:di],ax add di,2 loop @b pop cx add di,160-16 loop .loop ret try to label in english and clean your code. |
|||
17 Dec 2007, 08:30 |
|
jzbl 17 Dec 2007, 08:40
Thanks! It works now. I've missed the whole character attribute thing.
Your code makes me wanna read some fasm docs about loop construction The comments are in Polish, because it's a school project that I later want to explain to my friends. _________________ jzbl |
|||
17 Dec 2007, 08:40 |
|
edfed 17 Dec 2007, 08:42
ouah, you, polish, represent in asm as i can see.
apparently, poland is the ASM land. code in asm for school, impossible in france. |
|||
17 Dec 2007, 08:42 |
|
dap 17 Dec 2007, 11:19
edfed wrote: code in asm for school, impossible in france. In my school (in Belgium) we learn selfmodifying code during the first year. |
|||
17 Dec 2007, 11:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.