中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 05:30
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Original] First Attempt at Drawing Graphics with debug
Printable Version  3,569 / 17
Floor1 s11ss Posted 2009-07-11 08:10
银牌会员 Posts 566 Credits 2,098
```@more /e +1 "%~f0"|debug>nul&goto:eof
a100
mov al,12
int 10 ;Graphic, 640 * 480, 16
mov ah,c ;Function number to write pixels, default bx=0, which is page number
mov dx,1e1 ;Initial value: row number
mov al,10 ;Initial value: pixel color value (0 - f)
dec dx ;--------10b
test al,al
jnz 112
mov al,10 ;Color cycle
dec al ;--------112
mov cx,280 ;Initial value: column number
int 10 ;--------117
loop 117
test dx,dx
jnz 10b
int 20

g
q
```
Floor2 moniuming Posted 2009-07-11 08:54
银牌会员 Posts 574 Credits 1,335 From 广西
It's too powerful for me, add points for encouragement!!!
Floor3 yishanju Posted 2009-07-11 11:11
银牌会员 Posts 1,357 Credits 1,488
I can't understand, so add points
Floor4 zh159 Posted 2009-07-12 22:18
金牌会员 Posts 1,467 Credits 3,687
Floor5 heheguai Posted 2009-07-13 10:51
初级用户 Posts 18 Credits 30
Really admire it. Just a small question, where did you learn all these knowledge? If I also want to learn this debug, how should I study?
Floor6 s11ss Posted 2009-07-13 11:34
银牌会员 Posts 566 Credits 2,098
Originally posted by heheguai at 2009-7-13 10:51 AM:
Really admire, just a small question, where did you learn these knowledge? If I also want to learn this debug, how should I learn?

Read books on 8086 assembly
Floor7 yishanju Posted 2009-07-13 12:46
银牌会员 Posts 1,357 Credits 1,488
"Programming in 32-bit Assembly Language under Windows Environment (2nd Edition) by Luo Yunbin" Complete High-Definition PDF Edition.pdf
I read the beginning a bit, it's good. Recommendation
Floor8 523066680 Posted 2009-07-13 21:21
银牌会员 Posts 1,133 Credits 2,362
Fortunately, I was able to get online today! I didn't miss out on something good.
It seems like I can write special effects now!
Floor9 523066680 Posted 2009-07-13 21:41
银牌会员 Posts 1,133 Credits 2,362
s11ss Can you explain the operations in this regard in detail?
Because the number systems are different, it's more difficult for students who haven't been exposed to this to understand.

Just messed around a bit earlier, only feeling that the column numbering is - the number of columns, and the row numbering is - the number of rows




Also messed around a bit, changed the subsequent loop 117 to 101, and then it became a small dot that kept flashing until the end

[ Last edited by 523066680 on 2009-7-13 at 21:46 ]
Floor10 s11ss Posted 2009-07-14 01:26
银牌会员 Posts 566 Credits 2,098
s11ss Can you explain the operations in this regard in detail?


1. First set the graphics mode
2. Write pixels
(1) Write row by row from bottom to top, exit when the row number = 0
(2) For each row, write column by column from right to left
(3) For each row, the pixel colors are the same; different rows have different colors, cycling from f to 0. (For which value corresponds to what color, please check color /?)
Floor11 yishanju Posted 2009-07-14 12:07
银牌会员 Posts 1,357 Credits 1,488
Friend's written VGA graphics mode access (hint version) (1) http://huangxiangkui.spaces.live.com/blog/cns!1A2CBFE8EE1DCCA3!126.entry
Floor12 xswdong Posted 2009-07-14 12:48
中级用户 Posts 129 Credits 216
The debug has been deleted by me. Unfortunately, it can't run.
Floor13 rootkit Posted 2009-07-27 04:08
初级用户 Posts 32 Credits 63
Now I have motivation to learn assembly!
Floor14 rootkit Posted 2009-07-27 04:09
初级用户 Posts 32 Credits 63
Floor15 s11ss Posted 2009-07-31 07:04
银牌会员 Posts 566 Credits 2,098
Does it support paragraph breaking?
?
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023