Changeset 245 in xtideuniversalbios


Ignore:
Timestamp:
Feb 13, 2012, 12:17:51 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Added functions to reboot computer.
  • Added JMP_DELAY macro.
Location:
trunk/Assembly_Library
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/BiosData.inc

    r119 r245  
    126126
    127127
     128; Warm Boot Flags for BDA.wBoot
     129BOOT_FLAG_COLD          EQU 0
     130BOOT_FLAG_WARM          EQU 1234h   ; Same effect as CTRL + ALT + DEL, skips memory tests
     131BOOT_FLAG_PRESERVE_RAM  EQU 4321h   ; No mem test, leave memory unchanged (AT+)
     132
     133
    128134%endif ; BIOSDATA_INC
  • trunk/Assembly_Library/Src/AssemblyLibrary.asm

    r186 r245  
    8181    %include "Math.asm"
    8282    %include "Registers.asm"
     83    %include "Reboot.asm"
    8384    %include "Memory.asm"
    8485    %include "Size.asm"
  • trunk/Assembly_Library/Src/Time/Delay.asm

    r139 r245  
    44; Section containing code
    55SECTION .text
     6
     7;--------------------------------------------------------------------
     8; Clears prefetch queue by jumping to next instruction.
     9; This delays much more than nop instruction of fast systems.
     10;
     11; JMP_DELAY
     12;   Parameters
     13;       Nothing
     14;   Returns:
     15;       Nothing
     16;   Corrupts registers:
     17;       Nothing
     18;--------------------------------------------------------------------
     19%macro JMP_DELAY 0
     20    jmp     SHORT %%NextInstruction
     21%%NextInstruction:
     22%endmacro
     23
    624
    725;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.