bios

x86 asm graphics settings for resolutions higher than 640x480?

半世苍凉 提交于 2020-01-01 14:46:35
问题 I've just started using assembly language (felt like learning something new), and have run into a few questions (so far) that all the tutorials I've been looking through don't answer, or are too old to know. 1) I've tried a few searches (maybe I just don't know the right keywords), but I can't find an updated list of graphics modes for changing screen resolutions, etc. The best I've found is: Assembler Tutorial, and I'd hardly think that 640x480 is the best resolution assembly language can

x86 asm graphics settings for resolutions higher than 640x480?

安稳与你 提交于 2020-01-01 14:46:11
问题 I've just started using assembly language (felt like learning something new), and have run into a few questions (so far) that all the tutorials I've been looking through don't answer, or are too old to know. 1) I've tried a few searches (maybe I just don't know the right keywords), but I can't find an updated list of graphics modes for changing screen resolutions, etc. The best I've found is: Assembler Tutorial, and I'd hardly think that 640x480 is the best resolution assembly language can

Linux Ubuntu 18.04 + win10 双系统安装

喜你入骨 提交于 2020-01-01 14:27:00
Linux Ubuntu 18.04 + win10 双系统安装 安装参考 遇到的问题 分区 制作Ubuntu系统盘 EasyBCD 创建一个 Ubuntu 的引导 安装参考 安装过程参考: https://zhuanlan.zhihu.com/p/82351771 博主是UEFI启动模式,我是Lagecy。其实没按照这个步骤的来做,只是看看他的安装过程的一些截图。唯一参考的是UltralSO 制作系统U盘结果还失败了。 如何查看自己系统启动模式: 查看系统信息: 按下win+r打开运行,输入msinfo32,确定,打开系统信息 查看BIOS模式 大多步骤是跟着这篇https://blog.csdn.net/tichimi3375/article/details/82597363 遇到的问题 分区 我win10的几个磁盘分得比较均匀,每个盘都剩下几十个G,但想给Linux分120G,就只能用DiskGenius调整分区大小了:e.g: Disk02(F:) -> 右键 ->扩容分区 ,我分别从它的前一个和后一个分区分了一部分,凑了120G。 分区后的F盘,在压缩卷那一步,可压缩空间远小于剩余空间(剩144G 只能压缩80G),https://jingyan.baidu.com/article/1709ad808a599f4634c4f082.html 用了这个的第一个方法,没用

Finding out which drive was booted in x86 bootloader

家住魔仙堡 提交于 2019-12-31 07:00:14
问题 I'm writing a game bootloader for x86. At one point, early in the booting, I need to load some sectors from my boot drive into memory. I do this with interrupt 0x13 (ah=02), and when I try it in my virtual machine it works like a charm. However when I burn the image to a usb drive, the machine fails to boot, and I pinned it down to the sector loading instructions, apparently my usb drive isn't drive 0 (Floppy A), so the read fails. How can I determine which drive was used to boot? Thanks! 回答1

Accessing the mouse via assembly x86

我是研究僧i 提交于 2019-12-31 02:55:25
问题 I am using assembly-x86 on a DOS emulator (dosbox). I want to use the graphic mouse on video mode but I can't find a way to access it, in order to find its position and react to clicks. I have found several examples of using int 33h but they did not have a proper explanation with the code. What interrupt or port can I use to access it, and where can I find a documentation of all of its functions? 回答1: But without using a mouse driver: For a PS2-mouse (and additional for an USB-mouse with USB

Unable to keep a square a full square while moving it

寵の児 提交于 2019-12-31 02:55:19
问题 I have been trying to draw a box in assembly and move it horizontally across the screen. The code of printing the square itself works for me but when I try to make it move it is not working very well. I can see it moving but not as a full square, if you get my point. My code: in Assembly Tasm STA SEGMENT STACK DB 0FFFeH DUP(?) STA ENDS DATA SEGMENT ;----------- ;VARIABLES HERE xpos dw 50h ypos dw 50h color db 9h constat equ 0ffffh siNum dw ? diNum dw ? numOFtime dw 0h ;------------- DATA ENDS

简述linux操作系统启动流程

孤人 提交于 2019-12-30 19:15:34
Linux启动流程 POST-->BootSequence(BIOS)->Bootloader(MBR,grub)-->kernnel(ramdisk,initrd)-->rootfs(只读)-->switchroot-->/sbin/init-->社会默认运行级别-->运行系统初始化脚本,完成系统初始化-->关闭对应级别下需要停止的服务,启动对应级别下需要开启的服务-->设置登录终端-->启动图形端 init程序的类型: * SysV:init,CentOS 5之前,配置文件:/etc/inittab * Upstart:init,Centos 6,配置文件:/etc/inittab,/etc/init/*.conf * Systemd:systemd,Centos7,配置文件:/usr/lib/systemd/system、/etcsystemd/system POS power on self test,即加电自检,它是BIOS功能的一部分,完成对cpu、主板、内存、软硬盘子系统、显示子系统(包括显示缓存)、串并行接口、键盘、CD-ROM光驱等的检测,主要检测硬件的好坏。 BootSequence bootsequence为启动顺序,可在BIOS中设置,BIOS会根据次序查找各引导设备,其查找到第一个有引导程序(bootloader)的设备即为本次启动要用到的设备

10. linux 系统启动流程

爱⌒轻易说出口 提交于 2019-12-30 19:15:11
POST-->BIOS(Boot Sequence)-->MBR(bootloader,446)-->Kernel-->initrd-->(ROOTFS)/sbin/init(/etc/inittab) POST:Power On Self Test 简称POST,加电自检 BIOS自检-->从BIOS中读取启动顺序-->读取MBR中的bootloader-->加载内核-->读取伪根-->读取根文件中的init Step1 :BIOS自检 步骤1: 上电自检POST(Power-on self test),主要负责检测系统外围关键设备(如:CPU、内存、显卡、I/O、键盘鼠标等)是否正常。例如,最常见的是内存松动的情况,BIOS自检阶段会报错,系统就无法启动起来; 步骤2: 步骤1成功后, 便会执行一段小程序用来枚举本地设备并对其初始化 。这一步主要是根据我们在BIOS中设置的系统启动顺序来搜索用于启动系统的驱动器,如硬盘、光盘、U盘、软盘和网络等。我们以硬盘启动为例,BIOS此时去读取硬盘驱动器的第一个扇区(MBR,512字节),然后执行里面的代码。实际上这里BIOS并不关心启动设备第一个扇区中是什么内容,它只是负责读取该扇区内容、并执行。 至此,BIOS的任务就完成了,此后将系统启动的控制权移交到MBR部分的代码。 Step 2: 系统引导 我们首先来了解一下MBR

Displaying characters with DOS or BIOS

人盡茶涼 提交于 2019-12-30 09:55:11
问题 Looking through Ralph Brown's interrupt list, I discovered that there are many different ways to output text characters to the screen. The ROM BIOS API offers these functions: AH=09h – Write Character and Attribute at Cursor Position AH=0Ah – Write Character Only at Cursor Position AH=0Eh – Teletype Output AH=13h – Write String The DOS API offers the following functions: AH=02h – Write Character to Standard Output AH=06h – Direct Console Output AH=09h – Write String to Standard Output What do

超频

ε祈祈猫儿з 提交于 2019-12-29 14:50:54
超频 超频(源自英文Overclocking,简称OC,直译为超频)是免费提升电脑硬件性能的最便捷途径,超频是指将CPU、显卡、内存等硬件设备的额定频率提升一定幅度,使之在更高频率下运行以达到更好的性能。所以超频也被认为是DIY玩家技术水平的体现,同时也是DIY厂商研发功底很能力的衡量指标。具体超频等级和衡量技术水平的方法可以咨询小超哥(微信:18680462854)了解。 超频一词诞生已经有几十年历史,世界上第一块可超频的CPU已经无从考证,微星80286超频主板让这个概念深入人心。 那么现在的硬件应该如何超频? 除了硬件层面的BIOS直接调试之外,超频软件在整个过程中往往扮演了重要的角色,CPU超频主要看主板厂商提供的软件,显卡超频则通过NVIDIA和AMD还有第三方提供的超频软件来进行。CPU通过BIOS提升外频是主要的超频方式,显卡通过软件提升核心和显存频率是主要的超频方式,超频的同时注意微幅提升电压,同时做好散热,就可以让我们的硬件跑得更快。 今天就让超能网和大家聊聊关键字:超频,超频软件,CPU超频,显卡超频。 超频可以提升电脑性能,那么超频需要做哪些准备工作呢? 首先是良好的硬件体制,CPU、内存和显卡都必须是健康的,在100%负荷下工作也能拥有合理的温度和功耗。其次就是硬件准备,超频需要一块强大的主板做支撑,特别是主板供电部分,考虑到CPU和内存超频后功耗大增