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

📄 macros.inc

📁 自己编写的操作系统的源代码
💻 INC
字号:
;******************************************************************************
;******************************************************************************
;**                                                                          **
;**                                 macros.inc                               **
;**                                                                          **
;**               Copyright (C) 2005-2006 Universe Corporation               **
;**                                                                          **
;**                            All Rights Reserved                           **
;**                                                                          **
;**                      Lanzhou University Of Tecnology                     **
;**                                                                          **
;**                              (0931)-2975931                              **
;**                                                                          **
;******************************************************************************
;******************************************************************************
;+ macro procedure / function definitiones ++++++++++++++++++++++++++++++++++++
io_delay        macro
        jcxz    short $ + 2
        jcxz    short $ + 2
endm

jmp_if          macro dst_segment:req,dst_offset:req
        byte    0eah
        word    dst_offset
        word    dst_segment
endm

cpu_id          macro index:req
        mov     eax,index
        byte    0fh,0a2h
endm

reboot_machine  macro
        in      al,92h
        io_delay
        or      al,00000001b
        out     92h,al
        hlt
endm

⌨️ 快捷键说明

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