dos

DOS:基本汇编语言开发环境配置及其增强

本秂侑毒 提交于 2019-12-17 03:41:47
DOS:基本汇编语言调试环境配置及其增强 前言(可跳过) 具体需求 基本要求的实现 1.安装并配置DOSBox 2.MASM 2.0的安装 开发环境的增强 1.Windows 3.2的安装 2.MASM 6.11的安装 图形界面下的运行 在Windows 3.2中安装MASM 6.11 安装Turbo C 2.0 总结与反思(可跳过) 前言(可跳过) DOS,磁盘操作系统的缩写,一类古老的操作系统,如今的人们甚至可能都未曾听闻。但是,在三十年前,计算机上还没有普及图形界面的操作系统,人们依靠命令行来完成对文件的操作。 无数程序员们戴着眼镜,在茶色窗户的大楼内,坐在显像管显示器前,依靠着简单的调试程序,打出一行行黑白的代码,这些代码共同构成了今天展现在我们眼前的五彩斑斓的图形界面的基础。 在那些缺乏便捷工具的日子里,人们依靠勤劳的双手,创造出了更加便捷的工具,这些工具更进一步帮助人们完成了更为复杂而高效的工具。通过这些更加高效的工具,程序员们最终打造出了如今精彩纷呈的计算机世界。 那是一段枯燥的日子,终日只有黑白字符相伴,但那也是一段精彩的日子,如今多彩的世界就是建立在那些日子的基础之上。 当如今我们用着极为便捷的编程工具时,是否有意识到,在那些缺乏高效工具的日子里,老一辈程序员是如何依靠简陋的工具以及命令行界面来打造出如今呈现在我们眼前的如此复杂而高效的集成开发环境的。那一代程序员

How to create empty text file from a batch file?

北战南征 提交于 2019-12-17 02:39:09
问题 Can somebody remember what was the command to create an empty file in MSDOS using BAT file? 回答1: echo. 2>EmptyFile.txt 回答2: copy NUL EmptyFile.txt DOS has a few special files (devices, actually) that exist in every directory, NUL being the equivalent of UNIX's /dev/null : it's a magic file that's always empty and throws away anything you write to it. Here's a list of some others; CON is occasionally useful as well. To avoid having any output at all, you can use copy /y NUL EmptyFile.txt >NUL

黑客入门必须掌握8个DOS命令

孤者浪人 提交于 2019-12-16 20:03:12
黑客入门必须掌握8个DOS命令 【2006-09-25 10:11】 【】 http://searchsmallbizit.techtarget.com.cn/tips/406/2592906.shtml 【IT专家网论坛】    一,ping   它是用来检查网络是否通畅或者网络连接速度的命令。作为一个生活在网络上的管理员或者黑客来说,ping命令是第一个必须掌握的DOS命令,它所利用的原理是这样的:网络上的机器都有唯一确定的IP地址,我们给目标IP地址发送一个数据包,对方就要返回一个同样大小的数据包,根据返回的数据包我们可以确定目标主机的存在,可以初步判断目标主机的操作系统等。下面就来看看它的一些常用的操作。先看看帮助吧,在DOS窗口中键入:ping /? 回车,。所示的帮助画面。在此,我们只掌握一些基本的很有用的参数就可以了(下同)。   -t 表示将不间断向目标IP发送数据包,直到我们强迫其停止。试想,如果你使用100M的宽带接入,而目标IP是56K的小猫,那么要不了多久,目标IP就因为承受不了这么多的数据而掉线,呵呵,一次攻击就这么简单的实现了。   -l 定义发送数据包的大小,默认为32字节,我们利用它可以最大定义到65500字节。结合上面介绍的-t参数一起使用,会有更好的效果哦。   -n 定义向目标IP发送数据包的次数,默认为3次。如果网络速度比较慢

DOS攻击之详解

你离开我真会死。 提交于 2019-12-16 01:12:46
DoS到底是什么?接触 PC机 较早的同志会直接想到 微软 磁盘 操作系统 的DOS--DiskOperationSystem?不,此DoS非彼DOS也,DoS即DenialOfService,拒绝服务的缩写。 DoS是Denial of Service的简称,即拒绝服务,造成DoS的攻击行为被称为DoS攻击,其目的是使计算机或网络无法提供正常的服务。最常见的DoS攻击有计算机网络带宽攻击和连通性攻击。 一、概念理解: 作个形象的比喻来理解DoS。街头的餐馆是为大众提供餐饮服务,如果一群地痞流氓要DoS餐馆的话,手段会很多,比如霸占着餐桌不结账,堵住餐馆的大门不让路,骚扰餐馆的服务员或厨子不能干活,甚至更恶劣……相应的计算机和网络系统则是为 Internet 用户提供互联网资源的,如果有 黑客 要进行DoS攻击的话,可以想象同样有好多手段!今天最常见的DoS攻击有对计算机网络的带宽攻击和连通性攻击。带宽攻击指以极大的通信量冲击网络,使得所有可用 网络资源 都被消耗殆尽,最后导致合法的用户请求无法通过。连通性攻击指用大量的连接请求冲击计算机,使得所有可用的 操作系统 资源都被消耗殆尽,最终计算机无法再处理合法用户的请求。 传统上, 攻击者所面临的主要问题是 网络带宽 ,由于较小的网络规模和较慢的 网络速度 的限制,攻击者无法发出过多的请求。虽然类似“the ping of death

Linux磁盘术语描述

亡梦爱人 提交于 2019-12-14 21:57:01
文章目录 Linux磁盘术语描述 什么是磁盘 软盘(Floppy Disk) 硬盘 硬盘的接口类型 IDE SATA SCSI 光纤通道 SAS 非DOS分区 主分区 扩展分区 分区格式 FAT16 FAT32 NTFS ext2、ext3 什么是格式化 低级格式化低级格式化 高级格式化高级格式化 Linux磁盘术语描述 什么是磁盘 磁盘就是计算机的外部存储器设备,即将圆形的磁性盘片装在一个方的密封盒子里,这样做的目的是为了防止磁盘表面划伤,导致数据丢失。简单地讲,就是一种计算机信息载体,也可以反复地被改写。磁盘有软盘和硬盘之分: 软盘(Floppy Disk) 软盘是个人计算机(PC)中最早使用的可移介质。软盘的读写是通过软盘驱动器完成的。软盘驱动器设计能接收可移动式软盘,目前常用的就是容量为1.44MB的3.5英寸软盘。软盘存取速度慢,容量也小,但可装可卸、携带方便。作为一种可移贮存方法,它是用于那些需要被物理移动的小文件的理想选择。 硬盘 硬盘是电脑主要的存储媒介之一,由一个或者多个铝制或者玻璃制的碟片组成。碟片外覆盖有铁磁性材料。硬盘有固态硬盘(SSD 盘,新式硬盘)、机械硬盘(HDD 传统硬盘)、混合硬盘(HHD 一块基于传统机械硬盘诞生出来的新硬盘)。SSD采用闪存颗粒来存储,HDD采用磁性碟片来存储,混合硬盘(HHD: Hybrid Hard Disk

Want to save value from a variable into register

妖精的绣舞 提交于 2019-12-14 04:14:17
问题 I m using MASM compilor and DOSBOX. I want to Want to save value from a variable into register. i want to save num1 value into cx register. How can i do that? .MODEL SMALL .STACK 50H .DATA num1 db '5' NL DB 0DH, 0AH, '$' msg db ?,0AH,0DH,"Enter an odd number between 0 to 10:$" nxtline db 0Ah,0DH,"$" .CODE MAIN PROC MOV AX, @DATA MOV DS, AX LEA DX,msg mov ah,9 int 21H LEA DX,nxtline mov ah,9 int 21H MOV AH,1 INT 21H LEA DX,nxtline mov ah,9 int 21H mov bl,al ;save the value from input mov num1

Assembly INT 13h - read disk problem

只谈情不闲聊 提交于 2019-12-14 03:57:21
问题 I need to be able to write a program in assembly to read the first sector of a disk (The MBR) and write it to a floppy disk or at least show the data. I understand that INT 13h and 25h do not work in the windows protected mode and i even tried my code in Dos but the dos system hangs when I run the program. This is the code: MOV byte ptr es:[bx], offset result MOV AL,1 ;number ofsectors to read MOV Cl,1 MOV ch,0 mov dl,80h ;the HDD mov dh,1 mov ah,02h INT 13h result is the buffer variable.

How to count the occurence of specific characters in a string in emu8086

痴心易碎 提交于 2019-12-14 03:36:15
问题 Please. .kindly help me on this problem. . Output: Enter string: already A - 2 B - 0 C - 0 D - 1 E - 1 回答1: Write a procedure that loops over the entire string in search of a specific character. For each match increment a counter. Upon return display the result as character DL occurs DH times : e.g. "A - 2". mov dl, "A" call CountChar ... print result ... mov dl, "B" call CountChar ... print result ... CountChar: mov dh, 0 mov cx, ... length of the input string ... jcxz Ready mov bx, ...

8086 listen to keyboard while drawing

半世苍凉 提交于 2019-12-14 02:29:30
问题 I'm familiar with INT 16h that waits for keyboard input, but I'm developing a game and I would like there to be a game loop, that animates things on the screen, and whenever there is a keyboard hit, the 8086 should go to my interrupt handler and tell me which key has been pressed to update my data accordingly. How could I do so ? 回答1: You can also poll for input with 1 in AH instead of 0, when calling INT 16. INT 16h / AH = 01h - check for keystroke in the keyboard buffer. return: ZF = 1 if

FOR /f in DOS alternative

百般思念 提交于 2019-12-13 19:51:06
问题 As it appears there is no version of DOS (6.22 to WinME "DOS") or FreeDOS that allows you to take part of a text file and make it a variable, I'm going to just keep collecting the data I get in DOS mode into one very large file but I can't think of a way to get each asset and UUID and add them together in a third file... Here is what I get at the moment: SMBIOS.TXT ~~~~~~~(usually 27 lines of stuff I don't need)~~~~~~~ Asset Number: ABC12345 ~~~~~~~(usually 37 lines of stuff I don't need)~~~~