x64汇编无BIOS/C环境下全屏访问及分页实现求助(自制OS)
极简操作系统全屏访问崩溃与分页实现求助
我正在开发一款极简操作系统,已编写兼具编译功能的Brainfuck解释器,目前仅需完成GUI构建,且已为此编写专属处理语言。但尝试访问全屏时系统崩溃,相关汇编代码如下:
... mov ax,118h mov bx,ax mov ax,4f02h int 16 (entering 64 bit) (some of my language) ou: sub r11, 2 ;this is part of my brainfuck interpreter, it takes the 3 bytes of color of the current and previous two bytes. mov al, [r11] mov ah, 00000000b mov edx, 1111111111111111b mul edx add eax, edx inc eax mov ax, 0000000000000000b mov ecx, eax inc r11 mov cl, [r11] mov ch, cl inc r11 mov cl, [r11] jmp ouu ... ouu: ;mov ecx, 00000000111111111111111110001000b (This is just for debugging) mov rax, 1024 mul r8 ;y coordinate add rax, rdx add rax, r9 ;x coordinate mov rdx, 3 mul rdx add rax, rdx mov rdi,rax mov [0a0000h+rax], rcx stosb
该系统为24位真彩色、无push/pop指令、16位阶段后无BIOS依赖、无内核且未使用C语言的极简程序,目标是兼容含8K在内的各类分辨率,推测需实现分页功能,恳请针对该需求提供技术帮助。
内容的提问来源于stack exchange,提问作者Xulum12
相关产品推荐
相关产品推荐

