|
s11ss
银牌会员
    
积分 2098
发帖 566
注册 2007-9-11
状态 离线
|
   『楼 主』:
[原创]初试debug绘制图形
使用 LLM 解释/回答一下
@more /e +1 "%~f0"|debug>nul&goto:eof
a100
mov al,12
int 10 ;图形, 640 * 480, 16
mov ah,c ;写像素的功能号,默认bx=0,即页号
mov dx,1e1 ;初识值:行编号
mov al,10 ;初识值:像素颜色值(0 - f)
dec dx ;--------10b
test al,al
jnz 112
mov al,10 ;颜色循环
dec al ;--------112
mov cx,280 ;初识值:列编号
int 10 ;--------117
loop 117
test dx,dx
jnz 10b
int 20
g
q
```@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
```
此帖被 +55 点积分 点击查看详情 评分人:【 moniuming 】 | 分数: +15 | 时间:2009-7-11 08:54 | 评分人:【 yishanju 】 | 分数: +15 | 时间:2009-7-11 11:11 | 评分人:【 zh159 】 | 分数: +10 | 时间:2009-7-12 22:18 | 评分人:【 523066680 】 | 分数: +15 | 时间:2009-7-13 21:21 |
|
|
|
2009-7-11 08:10 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
对我来说是太强大了,加分鼓励!!!
It's too powerful for me, add points for encouragement!!!
|
|
2009-7-11 08:54 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
看不懂,所以加分
I can't understand, so add points
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2009-7-11 11:11 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
|
2009-7-12 22:18 |
|
|
heheguai
初级用户
 
积分 30
发帖 18
注册 2008-5-11
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
真 的很佩服啊,只是小小的问一下,这些知识都是哪里学的?如果我也想学习这个 debug的话,该如何学习?
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?
|
|
2009-7-13 10:51 |
|
|
s11ss
银牌会员
    
积分 2098
发帖 566
注册 2007-9-11
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by heheguai at 2009-7-13 10:51 AM:
真 的很佩服啊,只是小小的问一下,这些知识都是哪里学的?如果我也想学习这个 debug的话,该如何学习?
看8086汇编的书
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
|
|
2009-7-13 11:34 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
罗云彬的 Windows.环境下32位汇编语言程序设计(第2版)完整高清晰PDF版.pdf
我看前面一点,不错。推荐
"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
|

有问题请发论坛或者自行搜索,再短消息问我的统统是SB |
|
2009-7-13 12:46 |
|
|
523066680
银牌会员
     SuperCleaner
积分 2362
发帖 1133
注册 2008-2-2
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
幸好今天我有上网啊!没错过好东西。
看样子可以写特效了哦
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!
|

综合型编程论坛
我的作品索引 |
|
2009-7-13 21:21 |
|
|
523066680
银牌会员
     SuperCleaner
积分 2362
发帖 1133
注册 2008-2-2
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
s11ss 能否对这方面的操作详细解释下
因为进制不同,这些没接触过的同学更难理解啊
刚刚瞎搞了一下,只觉得 列编号是 - 列的条数 , 行编号是 - 行的条数
@more /e +1 "%~f0"|debug>nul&goto:eof
a100
mov al,12
int 10 ;图形, 640 * 480, 16
mov ah,c ;写像素的功能号,默认bx=0,即页号
mov dx,150 ;初识值:行编号 (决定有都少行)
mov al,10 ;初识值:像素颜色值(0 - f)
dec dx ;--------10b
test al,al
jnz 112
mov al,05 ;颜色循环 (这里瞎改成05)
dec al ;--------112
mov cx,100 ;初识值:列编号 (决定有多少列)
int 10 ;--------117
loop 117
test dx,dx
jnz 10b
int 20
g
q
又瞎搞了 把 后面 loop 117 改成了101,然后就成了一个小点,一直闪~到结束
Last edited by 523066680 on 2009-7-13 at 21:46 ]
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
@more /e +1 "%~f0"|debug>nul&goto:eof
a100
mov al,12
int 10 ;Graphics, 640 * 480, 16
mov ah,c ;Function number to write pixels, default bx=0, that is, page number
mov dx,150 ;Initial value: row number (Determines how many rows)
mov al,10 ;Initial value: pixel color value (0 - f)
dec dx ;--------10b
test al,al
jnz 112
mov al,05 ;Color cycle (Changed randomly to 05 here)
dec al ;--------112
mov cx,100 ;Initial value: column number (Determines how many columns)
int 10 ;--------117
loop 117
test dx,dx
jnz 10b
int 20
g
q
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 ]
|

综合型编程论坛
我的作品索引 |
|
2009-7-13 21:41 |
|
|
s11ss
银牌会员
    
积分 2098
发帖 566
注册 2007-9-11
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
s11ss 能否对这方面的操作详细解释下
1、先设置图形模式
2、写像素
(1)一行一行的从下往上写,行号=0时退出
(2)对于每一行,一列一列的从右往左写
(3)对于每一行,像素颜色相同;不同行不同颜色,值f ~ 0循环。(具体哪个值对应什么颜色,请查看color /?)
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 /?)
|
|
2009-7-14 01:26 |
|
|
yishanju
银牌会员
     [b]看你妹啊[/b]
积分 1488
发帖 1357
注册 2006-5-20
状态 离线
|
|
2009-7-14 12:07 |
|
|
xswdong
中级用户
  
积分 216
发帖 129
注册 2007-2-14
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
debug已经被我删除了 可惜运行不了了
The debug has been deleted by me. Unfortunately, it can't run.
|
|
2009-7-14 12:48 |
|
|
rootkit
初级用户
 
积分 63
发帖 32
注册 2007-12-21
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
这下学习汇编有动力了!
Now I have motivation to learn assembly!
|
|
2009-7-27 04:08 |
|
|
rootkit
初级用户
 
积分 63
发帖 32
注册 2007-12-21
状态 离线
|
|
2009-7-27 04:09 |
|
|
s11ss
银牌会员
    
积分 2098
发帖 566
注册 2007-9-11
状态 离线
|
|
2009-7-31 07:04 |
|