如何将编译器masm32连接到记事本++
masm32编译器在哪里下载?我已上传此处,但我无法理解它如何实现(运行/编译)该项目。我可以在哪里下载编译器。如何运行第一个项目,实例化这个
begin
{Устанавливаем графический режим монитора 13h, 320x200, 256 цветов}
asm
mov ax,0013h
int 10h
end;
asm
mov ax,0A000h
mov es,ax
{Рисуем - раз}
mov byte ptr es:[320*10+10],12
mov byte ptr es:[320*10+11],12
mov byte ptr es:[320*10+12],12
mov byte ptr es:[320*11+10],12
mov byte ptr es:[320*11+11],12
mov byte ptr es:[320*11+12],12
mov byte ptr es:[320*12+10],12
mov byte ptr es:[320*12+11],12
mov byte ptr es:[320*12+12],12
{Рисуем - два}
mov byte ptr es:[320*100+100],1
mov byte ptr es:[320*101+101],2
mov byte ptr es:[320*102+102],3
mov byte ptr es:[320*103+103],4
mov byte ptr es:[320*104+104],5
mov byte ptr es:[320*105+105],6
end;
{Ожидаем нажатия клавиши}
asm
mov ah,0
int 16h
end;
{Устанавливаем текстовый режим монитора 03h, 80x25, 16 цветов текста и фона}
asm
mov ax,0003h
int 10h
end;
end.
请详细回答
where download masm32 compiler? I've uploaded here but I can not understand how it implement(run/compiling) the project. where I can download just the compiler. how run first project, instance this
begin
{Устанавливаем графический режим монитора 13h, 320x200, 256 цветов}
asm
mov ax,0013h
int 10h
end;
asm
mov ax,0A000h
mov es,ax
{Рисуем - раз}
mov byte ptr es:[320*10+10],12
mov byte ptr es:[320*10+11],12
mov byte ptr es:[320*10+12],12
mov byte ptr es:[320*11+10],12
mov byte ptr es:[320*11+11],12
mov byte ptr es:[320*11+12],12
mov byte ptr es:[320*12+10],12
mov byte ptr es:[320*12+11],12
mov byte ptr es:[320*12+12],12
{Рисуем - два}
mov byte ptr es:[320*100+100],1
mov byte ptr es:[320*101+101],2
mov byte ptr es:[320*102+102],3
mov byte ptr es:[320*103+103],4
mov byte ptr es:[320*104+104],5
mov byte ptr es:[320*105+105],6
end;
{Ожидаем нажатия клавиши}
asm
mov ah,0
int 16h
end;
{Устанавливаем текстовый режим монитора 03h, 80x25, 16 цветов текста и фона}
asm
mov ax,0003h
int 10h
end;
end.
Please answer in detail
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一定要阅读该帮助文件,而且,除非这是一段代码,否则您可能需要更多地阅读有关汇编的内容。你们的版块在哪里?而且,你为什么要为模式 13h 烦恼呢? MASM32 通常用于 Windows 汇编语言编程,但您却直接使用视频模式。我已经很多年没有使用 Windows,但我很确定如果您这样做,大多数现代版本的 Windows 都不会太高兴。
有多种语言版本的图形工具包,它们比您正在做的事情更容易使用。 INT 10H 特别慢,而且也不是特别便携。
如果这是您正在学习的课程,您可能需要向您的讲师询问一些有关如何启动和运行该课程的提示。
Definitely read that help file, and also, unless this is a snippet of code, you might want to do some more reading on assembly in general. Where are your sections? Moreover, why are you bothering with Mode 13h at all? MASM32 is often used for Windows assembly-language programming, yet you're mucking around directly with video modes. I haven't used Windows in years but I'm pretty sure most modern flavors of Windows won't be too happy if you do that.
There's a variety of graphics toolkits available in a number of languages that are far easier to work with than what you're doing. INT 10H in particular is sloooooow, and it's also not especially portable.
If this is for a course you're taking, you might want to ask your instructor for some hints on how to get this up and running.