⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shreg.asm

📁 一个小型的操作系统,采用gcc进行开发,几千行的代码,方便初学者学习
💻 ASM
字号:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Snixos Project version 1.0, 2003.6; (C) Copyright 2003,2004,2005 Jockeyson,KeqiangGao <Snallie@tom.com>; All Rights Reserved.; Distributed under the terms of the GNU General Public License.;; This program is a free and open source software and you can redistribute ; it and/or modify it under the terms of the GNU General Public License as; published by the Free Software Foundation. As no any liability is assumed ; for any incidental or consequential damages in connection with the ; information or program fragments contained herein,so any exception arised; is at your own risk. It is ABSOLUTELY WITHOUT ANY WARRANTY.; Bug report please send to Snallie@tom.com .;;  shreg.asm:  	show cpu registers in Snixos Project;  		protype inc C: void showreg();  Author : Snallie@tom.com;  Time   : 2003.6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;bits 32	global shregextern printfshreg:        push ebp        mov ebp,esp	push gs	push fs	push ss	push es	push ds	push cs	pushf	push ebp        push eax        mov eax,esp        add eax,9*4        xchg eax,[esp] ; value of esp send to stack when shreg is called 	push edi	push esi	push edx	push ecx	push ebx	push eax        push dword .str        call printf	add esp,68	leave        ret.str db 10,"EAX=%0X EBX=%0X ECX=%0X EDX=%0X ESI=%0X EDI=%0X",10, "ESP=%0X EBP=%0X Eflg=%0X ",10,"cs=%0X ds=%0X es=%0X ss=%0X fs=%0X gs=%0X",10,0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -